Forums

Full Version: bullet-2.73 "cannot find -lbulletcollision" (patch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
http://wiki.vdrift.net/Compiling

The Bullet build method has changed for 2009-02-15.
I tried scons without building Bullet. The output is:
Code:
....
o bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.o -c -Wall -Wextra -Wno-unused-parameter -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
sh: o: not found
....
And there is lot of such output. Scons install ends with:
Code:
Install file: "build/vdrift" as "/usr/share/games/vdrift/bin/vdrift"
scons: *** [/usr/share/games/vdrift/bin/vdrift] build/vdrift: No such file or directory
scons: building terminated because of errors.

VDrift in build dir is missing.
All libs are installed
mageaster: Looks like you do not have the compiler (g++) installed.
mageaster Wrote:I tried scons without building Bullet. The output is:
Code:
....
o bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.o -c -Wall -Wextra -Wno-unused-parameter -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
sh: o: not found
....

Here's how this is supposed to look:

Code:
g++ -o bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.o -c -Wall -Wextra -Wno-unused-parameter -g3 -D_GNU_SOURCE=1 -D_REENTRANT -Iinclude -Ibullet-2.73/src -I/usr/include/SDL bullet-2.73/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp

For some reason the beginning of the line is getting cut off on your computer. Have you successfully been able to build other programs from source? Can you double check your versions of scons and python? What operating system distribution are you using?
Joe, I've seen this happen before, when g++ is not installed. Basically SCons looks for the C++ compiler using the environment variable, and it is empty because none is installed. In the SConstruct file I notice that CC and CXX are directly set under most of the build platforms, but not under the POSIX build. I think this is to inherit the compiler from the environment, in case the user has something different; however I think this could be changed since only the GNU compilers are tested, and others may well not work anyway. I've committed a fix, r2357.
Yahoooooooooo!!! Thanks to thelusiv, installing g++ have solved the problem. I think it should be added into wiki.

PS. It's very nice poject! I wish you further evolution.
Thanks, I have updated the wiki a little bit to reflect the need for g++ and scons.
Pages: 1 2