erwincoumans / dynamica

Automatically exported from code.google.com/p/dynamica
8 stars 3 forks source link

Build problems using CMake #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Perhaps my inexperince with CMake is the cause or contributed to my problems, 
but I had alot of issues getting a working project file to generate with CMake 
so that I could build the Dynmica MLL file. This was using CMake 2.8 on XP 
building for MSDEV 2008 Express.

First off there were no out of the box MSVC project files so CMake was 
required. Not a big deal considering how few people need to build it themselves 
(infact this whole Issue could be ignored on that grounds). 

Next CMake could not "Configure" successfully when browsing to the 
BulletMayaPlugin source directory. I had to manually add the Entry 
BULLET_PHYSICS_SOURCE_DIR to CMake and set it to C:\Bullet to get it Configure 
succesfully. 

Then the MSDEV project files were generated but would not compile as the libs 
for OpenGL were missing from the project. I had to add OpenGL32.lib & GlU32.Lib 
to the Additional Dependicies field in the project settings for both Release 
and Debug (didn't play with any other configurations).

Last, the project would compile but no MLL file would be produced. The Post 
build steps (which involed using CMake to copy a bunch of files) seemed to not 
have translated well to MSDev as there appeared to be no carriage returns 
between commands, but deleting the post build step didn't fix the problem. It 
ended up being caused by the "Output File" & PDB File fields starting with 
backslashes for the subdirectories they were supposed to build in (I guess 
MSDev is too finicky). Changing "\libs\etc etc" to "libs\etc etc" fixed the 
final issue.

Original issue reported on code.google.com by cont...@vicariousentertainment.com on 13 Sep 2011 at 11:50

GoogleCodeExporter commented 9 years ago
You should not browse to the BulletMayaPlugin directory to configure CMake, but 
use the root of the Bullet source tree. It should work out-of-the-box.

Can you try this again, and report any issues you encounter?

Original comment by erwin.coumans on 19 Sep 2011 at 3:29

GoogleCodeExporter commented 9 years ago
Ah there you go. Yeah like I said, I had a feeling it was due to the way I was 
using CMake, hence why I sent you a PM about this before posting.

Yeah once I got all off the CMakeLists.txt files from the dynamica codesource 
and replaced the standard ones with them, it all worked fine. Sorry for the 
confusion, please delete this issue!

Original comment by cont...@vicariousentertainment.com on 19 Sep 2011 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 17 Feb 2012 at 5:01