Author Topic: compilation error  (Read 728 times)

Valmaar

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
compilation error
« on: July 31, 2004, 08:47:21 pm »
Hi to all .
I\'ve got this error compiling , on a slack 9.1 system ...



Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/scan32a.o
plugins/video/renderer/software/i386/scan32a.asm:23: fatal: unable to open include file `cs.ash\'

  nasm -f elf -Iplugins/video/renderer/software -Iplugins/video/renderer/software/i386 -I./include -I. -I./include -I./plugins -I./apps -I./libs -o ./out/linuxx86/optimize/plugins/video/renderer/software/scan32a.o plugins/video/renderer/software/i386/scan32a.asm

...failed Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/scan32a.o ...
Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/scan16a.o
plugins/video/renderer/software/i386/scan16a.asm:23: fatal: unable to open include file `cs.ash\'

  nasm -f elf -Iplugins/video/renderer/software -Iplugins/video/renderer/software/i386 -I./include -I. -I./include -I./plugins -I./apps -I./libs -o ./out/linuxx86/optimize/plugins/video/renderer/software/scan16a.o plugins/video/renderer/software/i386/scan16a.asm

...failed Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/scan16a.o ...
Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/cpuid.o
plugins/video/renderer/software/i386/cpuid.asm:23: fatal: unable to open include file `cs.ash\'

  nasm -f elf -Iplugins/video/renderer/software -Iplugins/video/renderer/software/i386 -I./include -I. -I./include -I./plugins -I./apps -I./libs -o ./out/linuxx86/optimize/plugins/video/renderer/software/cpuid.o plugins/video/renderer/software/i386/cpuid.asm

...failed Nasm ./out/linuxx86/optimize/plugins/video/renderer/software/cpuid.o ...
...skipped soft3d.so for lack of scan32a.o...
...failed updating 3 target(s)...
...skipped 1 target(s)...


nasm version is the latest ... :

root@caffeina:/usr/local/src# nasm -v
NASM version 0.98.38 compiled on Mar 22 2004


and cs.ash is just there ...



Any hint ?

thx in advance

David

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #1 on: July 31, 2004, 09:40:27 pm »
Hmm... I had the same error earlier today  when I wanted to compile the MB server on my Slack 10 machine. Dunno what caused it, but fortunately I had a copy of the CS binaries from Arch Linux ;)

However, if you don\'t use Software mode in PS you can ignore this error, it doesn\'t affect PS if you are running it in OpenGL mode.


Back to Planeshift again \\o/

Valmaar

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
compilation error
« Reply #2 on: July 31, 2004, 10:27:43 pm »
i have this error if I try \"sh ./make_distro.sh\" :

cp: cannot stat `cel/*.so\': No such file or directory
cp: cannot stat `planeshift/*so\': No such file or directory
cp: cannot stat `planeshift/psclient\': No such file or directory
cp: cannot stat `planeshift/pssetup\': No such file or directory
cp: cannot stat `planeshift/updater\': No such file or directory

:\'(

Karosh_Steinkatz

  • Hydlaa Citizen
  • *
  • Posts: 486
    • View Profile
(No subject)
« Reply #3 on: August 01, 2004, 03:02:40 am »
Huh? make_distro.sh? What\'s that? That\'s not a PS thingy ?(
Just run jam and you are done


Back to Planeshift again \\o/

Valmaar

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
(No subject)
« Reply #4 on: August 01, 2004, 09:03:07 pm »
no ? that\'s what there is in the README ... :-0
I thought was right ...

-----------------------------------------------------------
Here is a little HowTO for this \'automated\' source package
for PlaneShift Linux. I will make it short but I hope to
find the time to complete this document later.

Now this is how to proceed:


1) Decompress/un-tar the archive if it\'s not done yet.
 ie: tar -xvf archivename.tar.gz

2) Enter the archive main directory.
 ie: cd my_planeshift

3) Now it\'s time to build everything. Type \'sh build.sh\'
  If any error stops you, then try to solve it (missing
 libraries or such things) and retry to build the game.

4) Once you have successfully compiled everything, type
  \'sh make_distro.sh\'
  If no error message appears, then you are ready to
  play.

5) It\'s time to play PS!!!!
  go to distro/planeshift folder.
5) It\'s time to play PS!!!!
  go to distro/planeshift folder.
  type \'./pssetup\' in order to change your display
  settings. Now type \'./psclient\' and the game should
  start. Contact the Planeshift Team if any problem
  happens.
--------------------------------------------------------

anyway ... i\'ve solved the nasm problem , downgrading nasm to 0.98.37 ... ( not a thing i liked to do ) ...

So i think this problem has to be corrected , because nasm 0.98.38 is the stable version sin March 2004 ...
( I know that the other distros always upgrade later than Slack  ... :-P  )

Anyway ,if i run makefile.sh ( or do \"jam\" ) , I\'ve got this error :


C++ ../out/linuxx86/updater.o
In file included from updater/httpclient/updater.cpp:32:
updater/httpclient/download.h:55: syntax error before `*\' token

g++ -c -o ../out/linuxx86/updater.o -I/usr/local/src/my_planeshift/CS/include -I/usr/local/src/my_planeshift/cel/include -fexceptions   -Iupdater/httpclient -I.. -I../include -I../src/common -I../src/client -I../src/server updater/httpclient/updater.cpp

...failed C++ ../out/linuxx86/updater.o ...
...skipped updater for lack of updater.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...


and then in /pleneshift I\'ve no psclient-bin ... and when I  try \"pssetup\" :

Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
Couldn\'t load vfs plugin!
Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
Warning: Failed to load `csfont\'; use \'-verbose\' argument for details.
Warning: Failed to load `csfont\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.font.server.default\'
Warning: Failed to load `soft3d\'; use \'-verbose\' argument for details.
Warning: Failed to load `soft3d\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.graphics3d.software\'
Warning: Failed to load `imgplex\'; use \'-verbose\' argument for details.
Warning: Failed to load `imgplex\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.graphic.image.io.multiplex\'
Warning: Failed to load `aws\'; use \'-verbose\' argument for details.
Warning: Failed to load `aws\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.window.alternatemanager\'
Couldn\'t load iGraphics3D plugin!
Error initializing system!

And if I try psclient :


no CEL environment variable set!
Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
Warning: Failed to load `vfs\'; use \'-verbose\' argument for details.
WARNING: could not load plugin \'crystalspace.kernel.vfs\'
Couldn\'t load vfs plugin!
csInitializer::SetupConfigManager failed!
Is your CRYSTAL environment var set?



:(

icebr4kr

  • Hydlaa Resident
  • *
  • Posts: 128
    • View Profile
(No subject)
« Reply #5 on: August 01, 2004, 09:25:54 pm »
Ok, don\'t worry about the updater not compiling, you are just using a too recent version of CURL (if you want it to compile, edit the file and change the #include from to ).

You need to have the CRYSTAL and CEL environment variables set correctly and they must point to a CS and cel installation respectively. Please read the relevant section of the compile guide for more information. Personally, I created a script to set the vars and run PS so I don\'t have to do that each time. All CS apps require you to set CRYSTAL (and cel apps CEL), so make sure to do that for pssetup too.

zabeal

  • Hydlaa Citizen
  • *
  • Posts: 369
    • View Profile
(No subject)
« Reply #6 on: August 02, 2004, 05:05:30 am »
Right- the updater is almost useless on linux, as it mainly downloads dlls, plus you\'ve already goten the most upto date version, if you got it from cvs with the MB tag.
Psclient-bin is the pre-compiled binary.
I guess Ice is right about not setting the variables, even tho it would also have complained during compiling, so you must have closed the window or somethign else to reset the variables. If exporting them still gives the same error, I would recommend seeing what it gives with the -verbose flag, as that gives us more hints as to what is wrong :)
Good luck on getting it to work, looks like you are almost there!

Lux perpetua luceat eis

Valmaar

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
(No subject)
« Reply #7 on: August 02, 2004, 06:02:02 pm »
ok , thx mates ...
But my problems are not ended :)

I\'ve set $CRYSTAL  and $CEL ... but now when i run pssetup :
( with -verbose )


root@caffeina:/usr/local/src/my_planeshift/planeshift# ./pssetup -verbose
Warning: Failed to load `soft3d\'; reason(s):
DLERROR (soft3d): /usr/local/src/my_planeshift/CS/soft3d.so: undefined symbol: csDetectCPU
Warning: Failed to load `soft3d\'; reason(s):
DLERROR (soft3d): /usr/local/src/my_planeshift/CS/soft3d.so: undefined symbol: csDetectCPU
WARNING: could not load plugin \'crystalspace.graphics3d.software\'
Warning: Failed to load `cspngimg\'; reason(s):
/usr/local/src/my_planeshift/CS/cspngimg.so: File not found
/usr/local/src/my_planeshift/CS/lib/cspngimg.so: File not found
./cspngimg.so: File not found
/usr/local/src/my_planeshift/planeshift/cspngimg.so: File not found
Warning: Failed to load `cspngimg\'; reason(s):
/usr/local/src/my_planeshift/CS/cspngimg.so: File not found
/usr/local/src/my_planeshift/CS/libcspngimg.so: File not found
/usr/local/src/my_planeshift/CS/lib/cspngimg.so: File not found
/usr/local/src/my_planeshift/CS/lib/libcspngimg.so: File not found
./cspngimg.so: File not found
./libcspngimg.so: File not found
/usr/local/src/my_planeshift/planeshift/cspngimg.so: File not found
/usr/local/src/my_planeshift/planeshift/libcspngimg.so: File not found
WARNING: could not load plugin \'crystalspace.graphic.image.io.png\'
aws-debug: Couldn\'t find iGraphics2D plugin!!
Couldn\'t load iGraphics3D plugin!
Error initializing system!



... so seems a libpng problem ... So I\'ve run configure-jam again to see if libpng was found ... but not ... :

checking for libz... yes
checking for libpng... no
checking for libjpeg... yes
checking for libmng... yes
checking for libmikmod... yes
checking for libogg... yes
checking for libvorbis... yes
checking for libvorbisfile... yes
checking for lib3ds... no
checking for libode... no
checking for OpenAL... no


and why this ?
It\'s just there !

root@caffeina:/usr/local/src/my_planeshift/CS# ls /usr/lib/libpng*
/usr/lib/libpng.a@           /usr/lib/libpng12.a
/usr/lib/libpng.so@          /usr/lib/libpng12.so@
/usr/lib/libpng.so.3@        /usr/lib/libpng12.so.0@
/usr/lib/libpng.so.3.1.2.5*  /usr/lib/libpng12.so.0.1.2.5*

*sigh*

Ah ! and another thing ... the link to \"guide to compilation for linux\" is not working ...

thx all

ciao

zabeal

  • Hydlaa Citizen
  • *
  • Posts: 369
    • View Profile
(No subject)
« Reply #8 on: August 03, 2004, 07:01:32 pm »
Hmm, not sure about the sorft3d error... never seen it before. But the libpng sounds like it\'s looking ofr a simpler name, you need to make a linked file named something like libpng1.a, search the forum for examples of how to do that.
Also, check if there were any slack problems that are like yours.

Lux perpetua luceat eis