PostBuild Error,version hieroglyph3-83248

May 5, 2013 at 2:05 PM
When IDE Compiled code and do postBuild macro,it shows:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: 命令“copy Application*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Events*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Mathematics*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Scripting*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Utility*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Utility*.inl ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Rendering*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Rendering*.inl ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Geometry*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Intersection*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Objects*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy Animation*.h ..\SDK\Include
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy “C:\Program Files (x86)\Windows Kits\8.0\redist\d3d\x86\D3DCompile*.DLL” “F:\code\hieroglyph3-83248\trunk\Hieroglyph3\Applications\Bin”
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: :VCEnd”已退出,代码为 1。
May 5, 2013 at 2:11 PM
sorry i forgot telling detail info.
I use WIN7 x64, VS2012, I Run VS in Admin privilege
Coordinator
May 5, 2013 at 3:12 PM
Hmmm... that is strange. Well, can you double check to see if the actions have been carried out? For example, if you have a successful build, are the *.exe files being copied to Hieroglyph3/Applications/Bin? If they are not, then we can check to see if it is a permissions issue by creating a batch file with the same contents as the post build event. Create a batch file and run it with the same contents as the Hieroglyph3 project's post build command.

That should tell us if it is a permissions issue or if it is a command issue (possibly something to do with localization and path issues?).
May 6, 2013 at 3:13 AM
Hi jzink, Thanks for reply.
I had use .bat with the same contents as the post build event and it works.
Coordinator
May 6, 2013 at 1:24 PM
Ok - so I think it must be something to do with permissions then (although I haven't ever seen this issue...).

Which directory do you keep your copy of the code in? Is it in the root directory? If so, try moving it to your 'Documents' folder and see if that helps.
May 7, 2013 at 4:16 AM
It fixed, I check the post-build macro one more again, and the evil is “Quotation marks”. In non-english OS(like chinese), every character has two representations.
For Period, we have [.] or [。];
For Comma, we have [,] or [,];
And For Quotation marks, we have ["] and ["];
So the problem cause by this line:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy “C:\Program Files (x86)\Windows Kits\8.0\redist\d3d\x86\D3DCompile*.DLL” “F:\code\hieroglyph3-83248\trunk\Hieroglyph3\Applications\Bin”

i change it to this and the problem be fixed:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(134,5): error MSB3073: copy "C:\Program Files (x86)\Windows Kits\8.0\redist\d3d\x86\D3DCompile*.DLL" "F:\code\hieroglyph3-83248\trunk\Hieroglyph3\Applications\Bin"

They really slightly different. I guess you use ENG OS and I use CHINESE OS, when i copied your code, the character encoding changed with some default setting.

Hope this could help other guys who encounter the same problem.
Coordinator
May 8, 2013 at 1:10 AM
Thanks for the response - that will indeed be helpful if someone else has the issue. So is this something that I can modify in the post build command, or would I need to have the Chinese language OS in order to use the correct quotation mark characters?

Anyways, thanks again for posting the solution!
May 8, 2013 at 3:29 AM
er....
I think you didn't need to use a Chinese language OS to generate the cmd line.
Do you copy the cmd to cmd line from somewhere or you just type them directly in to the cmd line?
If you ensure the charater set is UNICODE, It should be works well.
Mar 23, 2014 at 1:32 PM
Thanks! Baeskey, jzink

I'm using a Chinese OS, and I met the same problem.
This post really helps!