PlaneShift

Development => Development Deliberation => Topic started by: Ikarsik on February 14, 2004, 09:58:20 pm

Title: initialization error
Post by: Ikarsik on February 14, 2004, 09:58:20 pm
Xlib:  extension \"XFree86-DRI\" missing on display \":0.0\".

planeshift.application.client:
  Planeshift Molecular Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.97 rdev [Unix-x86-GCC]
  psEngine initialized.
DLERROR (/home/craig/development/cel/pftest.csplugin): /home/craig/development/cel/pftest.so: undefined symbol: _ZN11celPcCommon14QueryInterfaceEji

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'cel.pcfactory.test\'

crystalspace.application.celtest:
  CEL \'cel.pcfactory.test\' plugin missing!


um i get this when trying to start up psclient. any ideas what is wrong? i know the test dosnt really matter
Title:
Post by: Xandria on February 15, 2004, 09:49:30 pm
Quote
Originally posted by Ikarsik
Xlib:  extension \"XFree86-DRI\" missing on display \":0.0\".


Are you sure you have 3d accelleration working okay?  I\'m pretty sure DRI is a part of 3d hardware rendering, so that\'s why I\'m asking.
Title:
Post by: tangerine on February 16, 2004, 12:51:21 am
try to run glxinfo
Title:
Post by: Ikarsik on February 16, 2004, 07:17:48 am
ok ill try that
Title:
Post by: Ikarsik on February 16, 2004, 07:38:32 am
[craig@localhost planeshift]$ glxinfo
name of display: :0.0
Xlib:  extension \"XFree86-DRI\" missing on display \":0.0\".
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: http://www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
    GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  1 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x24 24 tc  1 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x25 24 tc  1 24  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  1 24  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x27 24 dc  1 24  0 r  y  .  8  8  8  0  0 16  0  0  0  0  0  0 0 None
0x28 24 dc  1 24  0 r  y  .  8  8  8  0  0 16  8 16 16 16  0  0 0 None
0x29 24 dc  1 24  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x2a 24 dc  1 24  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
Title:
Post by: Xandria on February 16, 2004, 09:48:59 am
Quote
Originally posted by Ikarsik
direct rendering: No


As I suspected, you don\'t have 3d hardware accelleration set up correctly in your OS.  Either figure out how to get it set up (look up various guides on the web; it will depend on your video card, Linux distro, etc.) or try setting the app to run in software mode (really, really slow).
Title:
Post by: tangerine on February 16, 2004, 10:55:37 am
What videocard do you have ?

If not nvidia, read this http://dri.sourceforge.net/cgi-bin/moin.cgi/Documentation
Title:
Post by: Ikarsik on February 16, 2004, 11:37:57 am
i think the problem is actually in CS. take a look at my ./configure in CS directory and tell me if i need anything to build CS so that it will work with PS


[root@localhost CS]# ./configure --enable-debug
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for dlltool... no
checking for dllwrap... no
checking for windres... no
checking for objcopy... objcopy
checking for flex... flex
checking for bison... bison
checking if bison version >= 1.35... yes (version 1.875)
checking for doxygen... no
checking for texi2dvi... texi2dvi
checking for dvips... dvips
checking for dvipdf... dvipdf
checking for makeinfo... makeinfo
checking for install... install
checking for swig... no
checking for jam... no
checking for gnumake... no
checking for gmake... gmake
checking whether gmake sets $(MAKE)... yes
checking for cslibs-config... no
checking for cslibs package... no
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for nasmw... no
checking for nasm... no
checking for makedep... no
checking for pow in -lm... yes
checking for dlopen in -ldl... yes
checking for gethostbyname in -lnsl... yes
checking for pthread... yes
checking for pthread recursive mutexes... PTHREAD_MUTEX_RECURSIVE
checking for RTLD_NOW... yes
checking for perl5... perl5
checking for python... python
checking for python distutils module... yes
checking for python SDK... yes
checking if python SDK is usable... no
checking how to enable compilation warnings... -Wall
checking how to treat warnings as errors... -Werror
checking how to ignore unused variables... -Wno-unused
checking how to ignore unknown #pragma directives... -Wno-unknown-pragmas
checking how to enable C++ exceptions... -fexceptions
checking how to disable C++ exceptions... -fno-exceptions
checking if -multiply_defined suppress is needed... no
checking if -force_cpusubtype_ALL is needed... no
checking if -pipe is accepted... -pipe
checking if -shared is accepted... -shared
checking if -soname is accepted... yes
checking whether to use CPU-specific optimizations... minimum
checking for code generation flags... -mcpu=pentium -march=i586
checking how to enable optimizations... -O3
checking if g++ recognizes -fomit-frame-pointer... -fomit-frame-pointer
checking if g++ recognizes -ffast-math... -ffast-math
checking how to enable compiler debug output... -g3
checking if -I/usr/local/include is usable... -I/usr/local/include
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for libXxf86vm... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for int32... no
checking for windows.h... no
checking for OpenGL... yes
checking for GLU... yes
checking for GLUT... no
checking for GLX... yes
checking for GLX extensions... yes
checking for int32... (cached) no
checking for DirectX... no
checking for libz... yes
checking for libpng... yes
checking for libjpeg... yes
checking for libmng... yes
checking for libmikmod... no
checking for libogg... yes
checking for libvorbis... yes
checking for libvorbisfile... yes
checking for libpgserver... no
checking for lib3ds... no
checking for libode... no
checking for OpenAL... no
checking for freetype-config... freetype-config
checking for FreeType2... yes
checking if freetype2 is sufficiently recent... yes
checking for libvga... no
checking for libcal3d... no
checking for sdl12-config... no
checking for sdl11-config... no
checking for sdl-config... no
checking for SDL... no
checking for pkg-config... pkg-config
checking for VOS... no
checking for Linux joystick API... yes
checking for cgc... no
checking for libCg... no
checking if plugins require main()... yes
checking whether byte ordering is bigendian... no
checking for bool... yes
checking for stdint.h... (cached) yes
checking if INT64_C is available... yes
checking for long... yes
checking size of long... 4
checking how to run the C++ preprocessor... g++ -E
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for wchar_t... yes
checking for wcslen... yes
checking for wchar_t... (cached) yes
checking size of wchar_t... 4
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for winsock.h... no
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for socket support... yes
checking for socklen_t... yes
checking for C++ `explicit\' keyword... yes
checking for C++ `typename\' keyword... yes
checking for C++ new-style casts... yes
checking for C++ explicit template<> specialization... yes
checking if g++ recognizes -fPIC... -fPIC
checking if qsqrt() compiles... yes
checking if qint() functions correctly... yes
checking whether to build plugins... yes
checking whether to embed plugin meta-information... no
checking build mode... debug
checking whether to use extensive memory debugger... no
checking whether to use new renderer... no
checking whether to cache makefiles... yes
checking whether to auto-refresh cached makefiles... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Jamfile
config.status: executing include/volatile.h commands
config.status: include/volatile.h is unchanged
config.status: executing config.mak commands
config.status: config.mak is unchanged
config.status: executing Jamconfig commands
config.status: Jamconfig is unchanged
config.status: executing cache.mak commands
Refreshing makefile cache.
Title:
Post by: Ikarsik on February 16, 2004, 11:41:01 am
when running ./celtst it gives me this

[root@localhost cel]# ./celtst
SCF ERROR: \'/home/craig/development/cel/bltest.csplugin\' doesn\'t export \'celBlTest_scfInitialize\'
DLERROR (celBlTest_scfInitialize): ./celtst: undefined symbol: _celBlTest_scfInitialize
DLERROR (celBlTest_Create): ./celtst: undefined symbol: _celBlTest_Create
SCF ERROR: \'/home/craig/development/cel/bltest.csplugin\' doesn\'t export \'celBlTest_scfFinalize\'
DLERROR (celBlTest_scfFinalize): ./celtst: undefined symbol: _celBlTest_scfFinalize
crystalspace.application.celtest:  CEL test behaviour layer missing!
ALERT: crystalspace.application.celtest:  CEL test behaviour layer missing!

if this is any help..
Title:
Post by: Ikarsik on February 16, 2004, 11:54:29 am
wait how do i change to software rendering =P i just want to get this working even if it is really really slow
Title:
Post by: Ikarsik on February 17, 2004, 09:20:29 am
[craig@localhost planeshift]$ ./psclient

planeshift.application.client:
  Planeshift Molecular Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.97 rdev [Unix-x86-GCC]
  psEngine initialized.
DLERROR (/home/craig/development/cel/pftest.csplugin): /home/craig/development/cel/pftest.so: undefined symbol: _ZN11celPcCommon14QueryInterfaceEji

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'cel.pcfactory.test\'

crystalspace.application.celtest:
  CEL \'cel.pcfactory.test\' plugin missing!
Segmentation fault

ive gotten rid of the xfree-DRI problem up the top and installed DRI but it still gives me no direct rendering when i type glxinfo
Title:
Post by: Xandria on February 17, 2004, 09:45:02 am
There are several steps to getting DRI fully set-up in your system.  I would recommend going over the guide (and perhaps finding a different one to check against as well) again and make sure you performed all the correct steps.  I\'m not exactly sure how to get software mode running, but trust me, getting hardware accelleration to work will be much more rewarding :)
Title:
Post by: Ikarsik on February 18, 2004, 11:36:54 am
it there like a DRI irc channel that i can join for help?
Title:
Post by: Xandria on February 19, 2004, 09:17:46 am
The main DRI webpage is http://dri.sourceforge.net/.

It looks like their end-user IRC channel (which is what you want) is #dri (and also #xfree86 is listed as another one for help) on irc.openprojects.net.
Title:
Post by: vknecht on February 20, 2004, 12:44:25 am
The missing symbol is disturbing, it looks like CEL build got wrong somewhere...

Some ideas:

- Check you use jam for building (CS,CEL & PS)
- Check your python SDK install, it does not seem to be usable
   (look for dist-utils or something like this)
   (however, python is not required for PS, but helps for celtst)
- Update CEL and/or CS and rebuild

Anyway, to use software rendering explicitly, use
-video=software on the command line of any CS app

Good luck
Title:
Post by: Ikarsik on February 22, 2004, 12:09:31 am
so wait to use software rendering for planeshift i do
./psclient -video=software
?
also if DRI has a savage branch would that mean that it supported savae 4 (generic) chipset? or just savage and savage (generic) chipsets?
Title:
Post by: Ikarsik on February 22, 2004, 06:41:15 am
ok so now i get

[root@localhost planeshift]# ./psclient -video=software
NOTIFY: Using alternative 3D driver: crystalspace.graphics3d.software

planeshift.application.client:
  Planeshift Molecular Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.97 rdev [Unix-x86-GCC]
  psEngine initialized.
DLERROR (/home/craig/development/CS/sndmod.csplugin): libmikmod.so.2: cannot open shared object file: No such file or directory

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'crystalspace.sound.loader.mod\'
DLERROR (/home/craig/development/cel/pftest.csplugin): /home/craig/development/cel/pftest.so: undefined symbol: _ZN11celPcCommon14QueryInterfaceEji
  WARNING: could not load plugin \'cel.pcfactory.test\'

crystalspace.application.celtest:
  CEL \'cel.pcfactory.test\' plugin missing!


and then it just freezes on the loading screen using software renderer. im trying updating cel and cs now. my version of jam is 2.5 . ill also look at the python SDK thing. also how would having python make a difference if planeshift dosnt use it?


also if it is any help


[craig@localhost planeshift]$ ./pssetup
DLERROR (/home/craig/development/CS/aws.csplugin): /home/craig/development/CS/aws.so: undefined symbol: _Z6awslexP7YYSTYPE
WARNING: could not load plugin \'crystalspace.window.alternatemanager\'
Couldn\'t load iAws plugin!
Error initializing system!
Title:
Post by: vknecht on February 22, 2004, 11:13:53 pm
I\'m getting CS/aws.so: undefined symbol: _Z6awslexP7YYSTYPE too; to get rid of it, go into CS/ directory and launch \"jam aws\"
Title:
Post by: Ikarsik on February 23, 2004, 12:04:06 pm
[root@localhost planeshift]# ./pssetup
Crystal Space X windows driver
(Using SHM extension plugin)
Using 16 bit TrueColor visual
Using windowed mode 640x480 (internal rendering at 640x480).
Using truecolor mode with 2 bytes per pixel and 5:6:5 RGB mode.
        loading definitions file /this/data/config/psclient-setup.def...
        load successful (1 windows, 1 skins loaded.)
aws-debug: setting up global AWS palette...
aws-debug: finished palette setup.
Segmentation fault
 

hmm... running gdb gives me this

[root@localhost planeshift]# gdb pssetup
GNU gdb 5.3-25mdk (Mandrake Linux)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type \"show copying\" to see the conditions.
There is absolutely no warranty for GDB.  Type \"show warranty\" for details.
This GDB was configured as \"i586-mandrake-linux-gnu\"...
(gdb) run
Starting program: /home/craig/development/planeshift/pssetup
Crystal Space X windows driver
(Using SHM extension plugin)
Using 16 bit TrueColor visual
Using windowed mode 640x480 (internal rendering at 640x480).
Using truecolor mode with 2 bytes per pixel and 5:6:5 RGB mode.
        loading definitions file /this/data/config/psclient-setup.def...
        load successful (1 windows, 1 skins loaded.)
aws-debug: setting up global AWS palette...
aws-debug: finished palette setup.

Program received signal SIGSEGV, Segmentation fault.
0x4047960a in csGraphics2D::DrawLine(float, float, float, float, int) ()
   from /home/craig/development/CS/x2d.so
(gdb) bt
#0  0x4047960a in csGraphics2D::DrawLine(float, float, float, float, int) ()
   from /home/craig/development/CS/x2d.so
#1  0x40459160 in vtable for csRect () from /home/craig/development/CS/aws.so
Cannot access memory at address 0xce59
(gdb) Quit

i ran aws with jam.. it updated 4 targets.. so ya any ideas?
Title:
Post by: vknecht on February 23, 2004, 07:53:05 pm
i\'m afraid i won\'t be able to help you with this...
Please tell us when/where you got CS & CEL, if these were snapshots or CVS export with -D or ... ?
Title:
Post by: Ikarsik on February 23, 2004, 08:47:09 pm
cvs like

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal login

enter password:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co CS

and like that for all of them
Title:
Post by: vknecht on February 23, 2004, 10:21:15 pm
the needed detail was almost when you got them...
i\'ve just used these packages and could build PS :

http://crystal.sourceforge.net/cvs-snapshots/bzip2/cs-2004-02-23.093701.tar.bz2
(use jam aws trick)

(cvs login, then)
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel export -D 2004-02-24 cel

those showed no problem at building stage for me (apart aws)

if you still get some cel missing symbol, make sure you rebuild it from clean state (ie. building, then updating, then re-building only modified files can lead to missing symbols issue)

anyway, when running almost up-to-date PS (recent anonymous cvs checkout), i get this when loggin on my local server:

planeshift.application.client:
  PSLoader: step 2: success
/usr/include/csutil/array.h:358:  failed assertion \'n >= 0 && n < count\'
trace/breakpoint trap

probably it\'s just temporary. Maybe someone of the staff could point out a date when all packages (CS+CEL+PS) are known to work together ?

last time i could get them all in sync and working was 20040203 but i didn\'t try later until now...
Title:
Post by: Ikarsik on February 27, 2004, 11:51:41 pm
so wait to get crystal space i use
cvs -d -z3:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co -r2004-2-24 CS?

or do i just get the current snapshot?
Title:
Post by: vknecht on February 28, 2004, 01:38:32 pm
I think you can use latest snapshots for both CS & CEL.
http://crystal.sourceforge.net/cvs-snapshots/
and
http://cel.sourceforge.net/cvs-snapshots/