Problem building bullet Demos

abdd0e77
Posts: 2
Joined: Tue Feb 12, 2013 1:05 am

Problem building bullet Demos

Post by abdd0e77 »

Hello, I'm having issues building the Demos. I successfully built bullet itself but then I cd to Demos

Code: Select all

anthony@xi:~/DATA/Code/bullet-2.81-rev2613/Demos$ ./configure
bash: ./configure: No such file or directory
anthony@xi:~/DATA/Code/bullet-2.81-rev2613/Demos$ cmake . -G "Unix Makefiles"
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/anthony/DATA/Code/bullet-2.81-rev2613/Demos
Seems fine so I make:

Code: Select all

anthony@xi:~/DATA/Code/bullet-2.81-rev2613/Demos$ make
[100%] Building CXX object HelloWorld/CMakeFiles/AppHelloWorld.dir/HelloWorld.o
/home/anthony/DATA/Code/bullet-2.81-rev2613/Demos/HelloWorld/HelloWorld.cpp:17:36: fatal error: btBulletDynamicsCommon.h: No such file or directory
compilation terminated.
make[2]: *** [HelloWorld/CMakeFiles/AppHelloWorld.dir/HelloWorld.o] Error 1
make[1]: *** [HelloWorld/CMakeFiles/AppHelloWorld.dir/all] Error 2
make: *** [all] Error 2
I know that header is in ../src why can't it find it?

So I try this:

Code: Select all

anthony@xi:~/DATA/Code/bullet-2.81-rev2613/Demos$ cd AllBulletDemos/
and try making there:

Code: Select all

anthony@xi:~/DATA/Code/bullet-2.81-rev2613/Demos/AllBulletDemos$ make
[  4%] Building CXX object CMakeFiles/AppAllBulletDemos.dir/Main.o
/home/anthony/DATA/Code/bullet-2.81-rev2613/Demos/AllBulletDemos/Main.cpp:21:26: fatal error: glui/GL/glui.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/AppAllBulletDemos.dir/Main.o] Error 1
make[1]: *** [CMakeFiles/AppAllBulletDemos.dir/all] Error 2
make: *** [all] Error 2
again, glui comes with the lib in ../Extras

Do I have to insert new environment variables? Why can't the build script figure out where these files are?

Any tips appreciated!


-A
rtrius
Posts: 43
Joined: Sat May 26, 2012 1:09 am

Re: Problem building bullet Demos

Post by rtrius »

Are you running Linux?

When building with CMake, it is only necessary to run 'cmake -G "Unix Makefiles"' and 'make' once.

Both commands should be executed in /bullet-2.81-rev2613/.

After running ' cmake -G "Unix Makefiles" ' in /bullet-2.81-rev2613, does it display

Code: Select all

	OPENGL FOUND
	GLUT FOUND
?

If not, then it may be necessary to install OpenGL and GLUT.
The demos will not build without those libraries.


It might be easier to build using premake.
(make sure to enable execution for premake4_linux)

Go to
/bullet-2.81-rev2613/build/
and generate makefiles by running
./premake4_linux gmake
then run make in
/bullet-2.81-rev2613/build/gmake
abdd0e77
Posts: 2
Joined: Tue Feb 12, 2013 1:05 am

Re: Problem building bullet Demos

Post by abdd0e77 »

Thanks!

I didn't notice that it said GLUT NOT FOUND in the cmake process so I went ahead and made sure that was fixed by:
sudo apt-get install freeglut3 freeglut3-dev
and:
sudo apt-get install binutils-gold (some website said this was necessary due to linker issues on newer versions of linux)

redid the cmake process and make and they all built and are running!