Box2D for GNU/Linux with cmake

kavaler : I have already made cmake files to compile the svn version plus a patch to apply against the svn trunk.

You can retreive it right here : viewtopic.php?f=2&t=246
Are you planing to do a cmake thing for version2.0?

that would be awesome! 😀
I'll try to update my patch against the last version of Box2D now that the 2.0 is out. I'll also update the wiki page.
Here is a version of Box 2.0.1 with cmake support. This version can compile under Linux (ubuntu 8.10).

Regards,

Yannig
Thanks Yannig, this works perfectly, and saved me hours of work 😀
Hi Yannig
Thanks again for all the cmake-d support 😉

However, i'm not being able to successfully run the cmake, as i end up with the following message. Please Help !

===========================================================================================

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLUT_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/suvash/Desktop/Box2D_v2.0.1-cmake/Box2D
used as include directory in directory /home/suvash/Desktop/Box2D_v2.0.1-cmake/Box2D/Examples

-- Configuring incomplete, errors occurred!

===========================================================================================
Had same error on Ubuntu 8.04. The following fixed it for me:

Code:
sudo apt-get install freeglut-dev
sudo apt-get install libglui-dev
cmake .
make


- Davi
I have a question :
Is it possible to have some official minor release for the cmake patch ?

It saves me a lot of time as I'm trying to include it into the next official Ubuntu version (9.04).

I have to finish it and have it included before the package freeze on february the 19th of 2009 !!

Right now I will work with the package from the forum, but if a minor release could be made of it on sourceforge, it could be great 🙂

Thanks !
We're actually restructuring to make it easier for package developers like you. See here, we could really do with your input!

Due to this discussion, I don't think we'll have anything released by the 19th. Is it necessary to have something committed and/or released before you can make a package out of it.
Not it is not mandatory, but it is better to have an official package instead of a .tar.gz embedded in the forum 🙂

In debian/ubuntu, we have some sort of automated "new release checking system" base on url. I won't create it for one archive in the forum, an official archive on sf.net should be better 🙂

But no problem, I'll try to create a package anyway, and will update when the new release comes out.
(right now, the package is nearly finished, just changed the static lib build into shared lib with SONAME support thanks to cmake which easy the whole thing, I need to add the whole includes. And I'll give my input for the includes since I think it need a little work 🙂)
The problem is not to create the package, it is to make it being accepted 🙂 Without watch file (to automatically check new version), it has less chance to get into, etc etc. Maybe with good explanations, it could be added into ubuntu 9.04. Otherwise, I need to put it on a ppa, which is far less user friendly 🙁

Original thread: https://box2d.org/forum/viewtopic.php?t=105