Can't get basic HelloWorld example to compile

Post Reply
big00
Posts: 1
Joined: Wed Feb 29, 2012 3:40 am

Can't get basic HelloWorld example to compile

Post by big00 »

Hi,

I can't get the HelloWorld example from the wiki to compile, because it can't find the headers. I don't think it's (only) a problem with my path, because I can't find the headers myself...

I followed the directions here: http://bulletphysics.org/mediawiki-1.5. ... ake_Recipe

After running "sudo make install", I saw "Installing /usr/local/lib/pkgconfig/bullet.pc" toward the end of the output. So, I looked at that file to see the flags that I would need to set when compiling the HelloWorld demo via gcc. This file contains the following line, among other things:

Code: Select all

Cflags:  -I/usr/local/include/bullet/
However, /usr/local/include/bullet/ does not exist on my system:

Code: Select all

$ sudo ls /usr/local/include/bullet/
ls: cannot access /usr/local/include/bullet/: No such file or directory
I downloaded bullet-2.79-rev2440.tgz from here, if that makes any difference.

Does anyone know what could be causing this problem?

Thanks.
jauthu
Posts: 12
Joined: Tue Feb 28, 2012 7:34 pm

Re: Can't get basic HelloWorld example to compile

Post by jauthu »

Consider searching precompiled bullet package for your system.

For now you can try to find bullet:

sudo find / -name btBulletDynamicsCommon.h


(can take minutes)

If you get no result, you may try to reinstall bullet with -DCMAKE_INSTALL_PREFIX=/usr option on cmake:

Code: Select all

 mkdir bullet-build
 cd bullet-build
 cmake ../path/to/bullet -G "Unix Makefiles" -DINSTALL_LIBS=ON  -DCMAKE_INSTALL_PREFIX=/usr
 make -j4
 sudo make install
Post Reply