Page 1 of 1

Compiler can't find boost library

Posted: 22 Feb 2007, 05:23
by computergee
I'm having trouble compiling this game, but It gives me the following error:

Checking for C++ header file boost/cstdint.hpp... no
Boost library must be installed

I have the boost and boost-devel packages installed, but I'm still getting this error. Anyone know how I can get this thing to compile?

Posted: 22 Feb 2007, 07:56
by own3d
get this lot
build-essential libsdl-dev libopenal-dev libglew-dev libboost-dev libboost-thread-dev libboost-regex-dev libdevil-dev libfreetype6-dev python2.4-dev scons subversion zip

build essential is debian/ubuntu only.

Posted: 22 Feb 2007, 08:57
by Tobi
Also check config.log (in the directory where SConstruct is), it may give a clue on the actual reason for the error. (could be something different then not finding the header file)

Posted: 22 Feb 2007, 17:14
by computergee
Thanks for the replies. I'm on PCLinuxOS 2007, which is a test release, it's hard to find all those packages (the repositories don't have much). But I do have the boost libraries installed. Here is what is left in the config.log file.

Code: Select all

scons: Configure: Checking for C++ header file boost/cstdint.hpp... 
build/sconf_temp/conftest_8.cpp <-
  |
  |#include "boost/cstdint.hpp"
  |
  |
g++ -o build/sconf_temp/conftest_8.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -fvisibility=hidden -mfpmath=387 -pthread -DNDEBUG -D_REENTRANT -D_SZ_ONE_DIRECTORY -Irts -Irts/System -Ilua/luabind -Ilua/lua/include -I/usr/include -I/usr/include/GL -I/usr/include/freetype2 -I/usr/include/SDL -I/usr/include/python2.4 build/sconf_temp/conftest_8.cpp
cc1plus: error: unrecognized option `-frounding-math'
cc1plus: error: unrecognized option `-fvisibility=hidden'
scons: Configure: no

Posted: 23 Feb 2007, 01:38
by Tobi
Which version of gcc is that?

It looks quite old (or a weird architecture?), if it doesn't support those commandline arguments.

Posted: 24 Feb 2007, 00:46
by computergee
Looking through synaptic, I have both 4.1.1 and 3.3 installed. What version should I have?

EDIT: I figured it out. I had to install a package named "gcc-c++", I had "gcc3.3-c++" installed, but I now I see thats for the old gcc. This packaged gave C++ support to my gcc 4.1, and allowed me to configure. Thanks for the help :-).

Posted: 25 Feb 2007, 16:29
by Tobi
installing build-essential should give you exactly the C/C++ which you need.. no need to mess with individual compiler packages then...