Author Topic: Building a server on Ubuntu  (Read 2965 times)

Doshot

  • Traveller
  • *
  • Posts: 10
    • View Profile
Building a server on Ubuntu
« 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
 
Code: [Select]
jam -aq libs plugins cs-config walktest
I get the following error:

Code: [Select]
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

Code: [Select]
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
« Last Edit: March 27, 2008, 05:02:17 am by Doshot »

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: Building a server on Ubuntu
« Reply #1 on: March 27, 2008, 04:58:13 am »
you dont have to worry about warnings like that, just worry about errors if you see them.

Doshot

  • Traveller
  • *
  • Posts: 10
    • View Profile
Re: Building a server on Ubuntu
« Reply #2 on: March 27, 2008, 05:02:45 am »
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

Code: [Select]
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

Code: [Select]
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
Code: [Select]
echo $CRYSTAL
I get the following reply
Code: [Select]
/home/ruaan/development/cs
So the enviroment variable is fine, I am missing something somewhere ::|
« Last Edit: March 27, 2008, 06:32:34 am by Doshot »

Tulkhan

  • Guest
Re: Building a server on Ubuntu
« Reply #3 on: March 27, 2008, 08:08:43 am »
When I try to configure CEL I get the following error

Code: [Select]
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
Code: [Select]
echo $CRYSTAL
I get the following reply
Code: [Select]
/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:

Code: [Select]
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

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: Building a server on Ubuntu
« Reply #4 on: March 27, 2008, 08:19:43 am »
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.