Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crystal space3d engine, anyone compiled it?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Wed May 04, 2005 5:36 pm    Post subject: crystal space3d engine, anyone compiled it? Reply with quote

Have anyone compiled with sucess the crystal space 3d game enine/motor ?
im trying it but the compile always fails (have to use x86 keyword to try).
_________________
------------------------------------
Tiago Scolari
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Wed May 04, 2005 7:59 pm    Post subject: Reply with quote

The ebuild in portage is very very old. A new one is being prepared I think.

It's best to get crystalspace from cvs anyway. The project is changing so much than you can be out of date very quickly. The cvs usually works fine on amd64, I use it a lot.
Back to top
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Wed May 04, 2005 10:44 pm    Post subject: Reply with quote

xordan wrote:
The ebuild in portage is very very old. A new one is being prepared I think.

It's best to get crystalspace from cvs anyway. The project is changing so much than you can be out of date very quickly. The cvs usually works fine on amd64, I use it a lot.


thanks a lot :)
i give it a try!
_________________
------------------------------------
Tiago Scolari
Back to top
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Thu May 05, 2005 1:50 pm    Post subject: Reply with quote

can you give me a help?
which commands you use to download from the cvs??

Does the dependencies are the same from the ebuild package?
_________________
------------------------------------
Tiago Scolari
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Thu May 05, 2005 2:09 pm    Post subject: Reply with quote

emerge jam
emerge cvs

Then in the parent dir of where you want crystalspace to be downloaded:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal login
( just hit enter for password )
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co CS
Back to top
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Wed May 18, 2005 1:37 pm    Post subject: Reply with quote

xordan wrote:
emerge jam
emerge cvs

Then in the parent dir of where you want crystalspace to be downloaded:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal login
( just hit enter for password )
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co CS


does this login takes too long?

i got an error :(

Code:
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401/cvsroot/crystal
CVS password:
cvs [login aborted]: unrecognized auth response from cvs.sourceforge.net: M -!- Client or Server timeout occurred!

_________________
------------------------------------
Tiago Scolari
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Wed May 18, 2005 10:16 pm    Post subject: Reply with quote

ebuilds should be available within the next day or so.
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Sat May 21, 2005 11:11 pm    Post subject: Reply with quote

A working ebuild is in portage now. :)
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Sun May 22, 2005 12:34 pm    Post subject: Reply with quote

Updated ebuilds for cal3d, cel, crystal space and planeshift! :D

But bad news quickly came in "emerge planeshift" (on ~amd64):

cel emerge fails with many errors like this one:

Code:
LinkPlugin addon_celentity.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: /opt/crystal/lib/libcrystalspace.a(scfstr.o): relocation R_X86_64_PC32 against `csArrayCmp<iBase**, iBase**>::DefaultCompare(iBase** const&, iBase** const&)' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Mauvaise valeur
collect2: ld a retourné 1 code d'état d'exécution

    g++ -o addon_celentity.so ./out/linux/optimize/plugins/addons/celentity/celentity.o  -shared -L/opt/crystal/lib -lcrystalspace -lpthread -lz -fPIC -lm -ldl -lnsl -L/usr/local/lib ./out/linux/optimize/libs/libceltool.a -L/opt/crystal/lib -lcrystalspace -lpthread -lz -fPIC -lm -ldl -lnsl -L/usr/local/lib  \
      -Wl,-soname,addon_celentity.so

...failed LinkPlugin addon_celentity.so ...


I checked the configure steps, and it looks like -fPIC was set accordingly. I tried adding it to CXXFLAGS (and also CFLAGS LDFLAGS CPPFLAGS in despair) and rebuild crystalspace, but I still get the same errors...
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Sun May 22, 2005 6:54 pm    Post subject: Reply with quote

It's probably a problem with your flags because it compiles fine for me and a few other people. Can you post your make.conf? Make sure you don't have -fvisibility-inlines-hidden in your CXXFLAGS.
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Sun May 22, 2005 11:30 pm    Post subject: Reply with quote

Here are the uncommentend lines of my make.conf:
Code:

USE="X aalib acpi aim alsa apache2 -apm -arts avi berkdb bonobo bzlib cdb cdr crypt cups curl curlwrappers dga dio dvb dvd dvdr dvdread -emacs encode -esd exif fam fastcgi ffmpeg fftw flac foomaticdb ftp gb gcj gd gif glut gnome gnustep gnutls gphoto2 gpm gtk gtk2 gtkhtml -hal iconv imagemagick imap imlib ipv6 jabber java joystick jpeg junit kde -ldap libcaca live mad matroska mbox mikmod mime mng mono mozilla mpeg msn multilib nas ncurses nls nptl nptlonly nvidia objc offensive ogg oggvorbis openal opengl oscar pcmcia pcre pda pdflib perl php pic png posix ppds python qt quicktime readline real recode samba scanner sdl shared sharedmem simplexml snmp sockets socks5 speex spell ssl svg tcltk tetex theora threads tiff truetype unicode usb v4l vcd vorbis wifi wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xv xvid yahoo zlib"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="amd64 ~amd64"
PORTDIR_OVERLAY=/usr/local/portage
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
MAKEOPTS="-j2"
CCACHE_SIZE="2G"
LINGUAS="fr fr_FR"


Nothing too fancy I guess...

I also tried manualy compiling CS and cel from CVS, but I got the same problem

Could it be caused by the pic flag or something like that?
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 1:53 am    Post subject: Reply with quote

Same problem here, I filled a bugreport.
Back to top
View user's profile Send private message
jimbojetset
n00b
n00b


Joined: 01 Feb 2004
Posts: 67
Location: UK

PostPosted: Mon May 23, 2005 11:32 am    Post subject: Reply with quote

I was having the same problem and couldn't get it to compile with various USE flags set. Then just now got it to compile with:

Code:
USE="debug" MAKEOPTS="-j1" emerge planeshift


So maybe this will work for other people?
James
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Mon May 23, 2005 12:53 pm    Post subject: Reply with quote

That was a good suggestion, I managed to emerge everything by adding
Code:
dev-games/crystalspace debug
to /etc/portage/package.use

I will see tonight if it runs well and what this will cost in terms of performance (at least, cal3D, cel, ... do not need the debug flag)

Maybe the -fPIC flag is ignored/removed by jam when compiling without debug...
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 6:19 pm    Post subject: Reply with quote

Another thank you from me, it worked :) I updated the bugreport.
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 6:43 pm    Post subject: Reply with quote

So after it seemed to compile quite fine I wanted to test it and this is what I get when I execute 'planeshift' :cry:
Code:

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 0x000000000000002a, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon.driverdb:
  Could not open driver database file '/config/gldrivers.xml'

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce 6800/PCI/SSE2 (vendor: NVIDIA Corporation) version
  1.5.3 NVIDIA 71.74
  Using windowed mode at resolution 1024x768.
  Pixel format: Color: 24 Alpha: 0 Depth: 0 Stencil: 0 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0
  Multisample: disabled

crystalspace.sound.software:
  Software Sound Renderer selected

crystalspace.sound.oss:
  SoundDriver OSS selected

crystalspace.sound.software:
    Playing 22050 Hz, 16 bits, Stereo
    Volume: 1

crystalspace.engine.notify:
  WARNING: Shader std_lighting.xml not available  Failure imminent!
/usr/games/bin/planeshift: line 5: 19424 Speicherzugriffsfehler  ./psclient $@

Any ideas on this one?
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Mon May 23, 2005 7:42 pm    Post subject: Reply with quote

Make sure you've got the latest ebuild. emerge sync, then emerge planeshift. If it happens again, check your /usr/games/bin/planeshift for exports which should then be there. (They are added with the latest ebuild)
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Mon May 23, 2005 7:52 pm    Post subject: Reply with quote

Mostly the same thing here, this is output from planeshift-setup:
Code:
WARNING: could not load plugin 'crystalspace.graphic.image.io.multiplex'
No image loader. Loading images will fail.

crystalspace.canvas.glx2d:
  Opening GLX2D
  Creating Context
  Video driver GL/X version (direct renderer)
  Visual ID: 0x0000000000000021, 24bit TrueColor
  R8:G8:B8:A0,
  level 0, double buffered

crystalspace.canvas.openglcommon:
  OpenGL renderer: GeForce FX Go5700/AGP/SSE2 (vendor: NVIDIA Corporation)
  version 1.5.3 NVIDIA 71.74
  Using windowed mode at resolution 600x400.
  Pixel format: Color: 24 Alpha: 0 Depth: 24 Stencil: 8 AccumColor: 24
  AccumAlpha: 0 MultiSamples: 0
  Multisample: disabled

crystalspace.sound.software:
  Software Sound Renderer selected

crystalspace.sound.oss:
  SoundDriver OSS selected

crystalspace.sound.software:
    Playing 44100 Hz, 16 bits, Stereo
    Volume: 1
Skipping 'YesNo' because it's already loaded
/usr/games/bin/planeshift-setup: line 8: 11753 Erreur de segmentation  ./pssetup $@


And planeshift itself segfaults after login, while loading world. Apart from the segfault line, the output is just warning on missing lights and this sort of things

I'm going to rebuild cal3d, cel, ode and planeshift with USE=debug, I'll see if that helps
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 8:01 pm    Post subject: Reply with quote

xordan wrote:
Make sure you've got the latest ebuild. emerge sync, then emerge planeshift. If it happens again, check your /usr/games/bin/planeshift for exports which should then be there. (They are added with the latest ebuild)

Code:

cat /usr/games/bin/planeshift
#!/bin/sh

cd /opt/planeshift

./psclient $@

Which exports do you mean?
Voyageur wrote:

I'm going to rebuild cal3d, cel, ode and planeshift with USE=debug, I'll see if that helps

I'm doing the same thing at the moment.
Back to top
View user's profile Send private message
jimbojetset
n00b
n00b


Joined: 01 Feb 2004
Posts: 67
Location: UK

PostPosted: Mon May 23, 2005 8:20 pm    Post subject: Reply with quote

Mine looks like this:
Code:
cat /usr/games/bin/planeshift
#!/bin/sh

cd /opt/planeshift

export CRYSTAL=/opt/crystal/lib/crystalspace
export CEL=/opt/crystal/lib/cel

./psclient $@


Does not appear to help though - having the same problem as everyone else :(

James
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 9:15 pm    Post subject: Reply with quote

I added the exports and recompiled everything with the "debug" useflag on, no difference.
Now I'm at the same point as you, game starts up but segfaults as soon as the world map finishes loading.
Back to top
View user's profile Send private message
jimbojetset
n00b
n00b


Joined: 01 Feb 2004
Posts: 67
Location: UK

PostPosted: Mon May 23, 2005 9:41 pm    Post subject: Reply with quote

hmm thats odd:

ode will not compile for me with the debug flag set but will without it.

James
Back to top
View user's profile Send private message
tgurr
Retired Dev
Retired Dev


Joined: 27 Jan 2004
Posts: 571
Location: germany

PostPosted: Mon May 23, 2005 9:46 pm    Post subject: Reply with quote

Same here, sorry for not beeing accurate. So to avoid further confusion these are the ones I recompiled with "debug" useflag set
Code:
USE="debug" emerge cal3d cel crystalspace planeshift --oneshot
. But no change at all.
Back to top
View user's profile Send private message
xordan
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2004
Posts: 148

PostPosted: Tue May 24, 2005 8:13 am    Post subject: Reply with quote

Quote:
Now I'm at the same point as you, game starts up but segfaults as soon as the world map finishes loading.


There's a bug in planeshift which seems to be causing segfaults as you finish loading the game. It's being looked at by one of the devs now.
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Tue May 24, 2005 9:47 am    Post subject: Reply with quote

My problem with planeshift-setup is solved I guess: running as user it segfaults, but it runs fine as root.

Something funny (or not): I managed to break some config files, and now my planeshift only wants to use molecular blue-era images, only proposing localhost server :? Guess it's time for a re-emerge/re-update

xordan, is there a post about this problem on planeshift forums? I didn't find any relevant (bad search terms maybe)
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum