jmpep
08-09-2006 23:27:40
Hi to all!
I'm new to the forum. I've been reading posts for about one week, and I'm really amazed about how supportive this community is. It's wonderful!
Well, to the topic. I've been trying to build OgreODE using Visual C++ 2005, and everytime I got this problem:
In other post I've read something about it, which didn't helped me. The thing is that I've finally worked out the problem.
Every project of OgreOde_SDK but tinyxml had a post-build event defined, specifically a copy of the generated DLLs to a OGRESDK\bin subdirectory. If the directory OGRESDK is installed into contains any spaces (like "Program Files", in my own case), you'll get the error I said.
In order to solve it, either you can reinstall the SDK in a directory whose name have no spaces (arg!) or you can do the following for each project:
Go to the project properties.
Go to Build Events -> Post-build events
There, in "Command line", add quotes, so
becomes
That way, spaces won't be a problem.
Also, won't it be a good idea to change this in the next release? It's easy to do and you will save a headache to people as new as I am...
I'm new to the forum. I've been reading posts for about one week, and I'm really amazed about how supportive this community is. It's wonderful!
Well, to the topic. I've been trying to build OgreODE using Visual C++ 2005, and everytime I got this problem:
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
In other post I've read something about it, which didn't helped me. The thing is that I've finally worked out the problem.
Every project of OgreOde_SDK but tinyxml had a post-build event defined, specifically a copy of the generated DLLs to a OGRESDK\bin subdirectory. If the directory OGRESDK is installed into contains any spaces (like "Program Files", in my own case), you'll get the error I said.
In order to solve it, either you can reinstall the SDK in a directory whose name have no spaces (arg!) or you can do the following for each project:
Go to the project properties.
Go to Build Events -> Post-build events
There, in "Command line", add quotes, so
copy $(OutDir)\$(TargetFileName) $(OGRE_HOME)\bin\$(ConfigurationName)
becomes
copy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\bin\$(ConfigurationName)"
That way, spaces won't be a problem.
Also, won't it be a good idea to change this in the next release? It's easy to do and you will save a headache to people as new as I am...