PlaneShift
Development => Development Deliberation => gcc => Topic started by: Doshot on March 27, 2008, 04:49:23 am
-
Hi guys
Hope someone can help. I am trying to build a server on Ubuntu 8.04. I was able to compile cal3d without any problems and I was able to configure CS. When I start with the
jam -aq libs plugins cs-config walktest
I get the following error:
C++ ./out/linuxx86/optimize/libs/cstool/smartfileopen.o
libs/cstool/smartfileopen.cpp:83: warning: ‘bool IsVfsDir(iVFS*, const char*)’ defined but not used
cc1plus: error: unrecognized command line option "-Wno-long-double"
-c -o ./out/linuxx86/optimize/libs/cstool/smartfileopen.o -I. -I./include -I./include -pipe -Wall -Wno-unknown-pragmas -fvisibility=hidden
-march=i586 -mtune=generic -I/usr/local/include -Wno-long-double -fno-exceptions -fvisibility-inlines-hidden -O3 -fomit-frame-pointer
-ffast-math -g2 -fPIC -DCS_CRYSTALSPACE_LIB -Ilibs/csutil/ptmalloc -Ilibs/csutil/ptmalloc/sysdeps/pthread -DCS_CONFIGDIR='"
/usr/local/etc/crystalspace-1.2"' -DCS_PLUGINDIR='"/usr/local/lib/crystalspace-1.2"' libs/cstool/smartfileopen.cpp
...failed C++ ./out/linuxx86/optimize/libs/cstool/smartfileopen.o ...
...skipped libcrystalspace-1.2.a for lack of libcrystalspace-1.2.a(smartfileopen.o)...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 177 target(s)...
Copy cs-config
...updated 1 target(s)...
I made a script to load all sources which is below
export LD_LIBRARY_PATH=/home/ruaan/development/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH
export CRYSTAL=/home/ruaan/development/cs
export CEL=/home/ruaan/development/cel
export CSCONFPATH=/home/ruaan/development/cel
export CAL3D=/home/ruaan/development/cal3d
Any help will be greatly appreciated :)
Thanks in advance
-
you dont have to worry about warnings like that, just worry about errors if you see them.
-
Ah, ok thanks Caarrie \\o//
It is just that if I use the above mentioned Jam command it stops the compiling as soon as it hits this warning. If I just do a
Jam
I get a bunch more warnings but at least it continues compiling. I assume that is ok. And thanks again for the help :D
:'(
When I try to configure CEL I get the following error
checking if Crystal Space version >= 1.1... yes (version 1.2)
Failed to detect directory containing Crystal Space link libraries; aborting!
Did you build Crystal Space? Did you set the CRYSTAL environment variable
correctly?
configure: error:
*** Crystal Space could not be found or was unusable. The latest version is
*** always available from http://www.crystalspace3d.org/
*** Also, be sure that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.
When I do
echo $CRYSTAL
I get the following reply
/home/ruaan/development/cs
So the enviroment variable is fine, I am missing something somewhere ::|
-
When I try to configure CEL I get the following error
checking if Crystal Space version >= 1.1... yes (version 1.2)
Failed to detect directory containing Crystal Space link libraries; aborting!
Did you build Crystal Space? Did you set the CRYSTAL environment variable
correctly?
configure: error:
*** Crystal Space could not be found or was unusable. The latest version is
*** always available from http://www.crystalspace3d.org/
*** Also, be sure that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.
When I do
echo $CRYSTAL
I get the following reply
/home/ruaan/development/cs
So the enviroment variable is fine, I am missing something somewhere ::|
Judging from the above, your CS wasn't properly built. The problem is here:
cc1plus: error: unrecognized command line option "-Wno-long-double"
-Wno-long-double probably comes from CS build flags, but isn't valid for C++ AFAIK.
It could be a GCC issue; what's your GCC version (check with "gcc -v")?
I haven't updated my CS sources in a while, but it compiled fine just yesterday with
GCC 4.2.1.
Cheers,
-tulk
-
Doshot does ./walktest work? [in the cs directory] If that does not work then we are sure that cs is the issue. Easiest to catch someone on irc later and work there to fix then on the forum.