Building just the libs

Post Reply
Posts: 6
Joined: Sat Apr 28, 2012 10:11 am

Building just the libs

Post by toolforger » Thu Feb 07, 2013 8:56 am

Hi all,

I have zero knowledge of cmake, and I'm having serious trouble finding out which options to set and which options to leave alone. (I'm using a cmake gui tool so at least I see what options are there, phew.)

Here's my use case:
1) Needs to use doubles.
2) Just compile the libs. Don't install them anywhere.
3) Not sure how to get debug symbols. Is there a large performance difference between builds with and without debug info?
4) I'll want to wrap the lib in Java later on. Probably not of any direct relevance to the question, I'm mentioning this to better define the use case.

I have looked in the docs but came up empty.
In case I overlooked it, a pointer would do nicely, otherwise, I'll need a short run-down of what options to set.

Thanks in advance.

Posts: 9
Joined: Mon Feb 04, 2013 12:12 pm

Re: Building just the libs

Post by LJS » Thu Feb 07, 2013 11:43 pm

If you use vs2005, 2008 or 2010 just navigate to BulletDir\build\YOURVERSION, start up the solution and hit build.

The libs end up in BulletDir\lib which you need to include in your own project.

User avatar
Posts: 10
Joined: Fri Jan 25, 2013 1:51 pm

Re: Building just the libs

Post by nullChar » Fri Feb 08, 2013 4:49 am

I just generated a solution for very similar build requirements. Here's a pretty thorough story of what I did:

1. Open CMakegui, and point to the source code and binary build directories. The source dir is the local svn repo, and the build is just some new folder the projects/solution will be dumped to.
2. Make sure you have the "Grouped" and "Advanced" checkboxes checked.
3. In the "Use" group, make sure USE_DOUBLE_PRECISION is checked off.
4. Check off other stuff/provide paths for options you want. Just make sure to look through each group to make sure you don't miss anything.
5. Click configure to run a few iterations, watching for red sections @ the bottom panel. Try to correct what you can if you missed a checkbox/path.
6. Click "Generate," and projects/solution file will be dumped to the directory specified in step 1.

In the generated project, the default "Rebuild Solution" will simply build the libs to the output dir, but won't install them to the install dir. There's a separate project you can build for installing the libs.
I'm pretty sure the default Debug and ReleaseWithDebInfo build configurations will dump the symbols along with the libs. Not sure about the performance differences, though, sorry.

Good luck. I hope this helps at least someone!

Post Reply