Compiler can't find boost library

Compiler can't find boost library

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
computergee
Posts: 3
Joined: 22 Feb 2007, 05:21

Compiler can't find boost library

Post 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?
own3d
Posts: 129
Joined: 25 Aug 2006, 16:31

Post 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.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post 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)
computergee
Posts: 3
Joined: 22 Feb 2007, 05:21

Post 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
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Which version of gcc is that?

It looks quite old (or a weird architecture?), if it doesn't support those commandline arguments.
computergee
Posts: 3
Joined: 22 Feb 2007, 05:21

Post 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 :-).
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

installing build-essential should give you exactly the C/C++ which you need.. no need to mess with individual compiler packages then...
Post Reply

Return to “Linux”