Author Topic: pslaunch_static: WARNING: could not load plugin 'crystalspace.window.x'  (Read 1185 times)

bugmenot

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Hello,
after compiling pslaunch_static it fails to start and exists with these messages:
Quote
WARNING: could not load plugin 'crystalspace.window.x'
Could not create an instance of crystalspace.window.x!
WARNING: failed to initialize plugin 'crystalspace.graphics2d.glx'
Error loading Graphics2D plugin.
WARNING: failed to initialize plugin 'crystalspace.graphics3d.opengl'
WARNING: could not load plugin 'crystalspace.engine.3d'
Checking for updates to the updater: ERROR: Duplicate tag 'iFontServer.1' found for plugin 'crystalspace.font.server.freetype2'!
iGraphics3D failed to Init!

This revision of PS was used: https://planeshift.svn.sourceforge.net/svnroot/planeshift/stable
I checked it out yesterday.

I used revision 32140 of CS.

CS is compiled so:
Code: [Select]
./configure --without-java --without-perl --without-python
jam -aq libs staticplugins cs-config walktest_static

And PS so:
Code: [Select]
CRYSTAL=$(CURDIR)/crystalspace_svn32140 jam psclient_static
CRYSTAL=$(CURDIR)/crystalspace_svn32140 jam pslaunch_static

//edit
This is the output of configure:
Quote
cd crystalspace_svn32140 && ./configure --without-java --without-perl --without-python
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable -mno-cygwin... no
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 ISO C89... none needed
checking if gcc accepts -pipe... -pipe
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to treat C++ warnings as errors... -Werror
checking how to enable C++ PIC generation... -fPIC
checking for ld... ld
checking if binutils version >= 2.17... yes (version 2.19.1)
checking if -shared is accepted... -shared -fPIC
checking if -soname is accepted... yes
checking if response files are accepted... yes
checking if --as-needed is supported... -Wl,--as-needed
checking if --no-as-needed is supported... -Wl,--no-as-needed
checking if --gc-sections is supported... -Wl,--gc-sections
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking for dlltool... no
checking for dllwrap... no
checking for windres... no
checking for strings... strings
checking for objcopy... objcopy
checking for libtool... no
checking for glibtool... no
checking for gnulibtool... no
checking for libtool... no
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for install... install
checking whether ln -s works... yes
checking for texi2dvi... texi2dvi
checking for texi2pdf... texi2pdf
checking for dvips... no
checking for dvipdf... dvipdf
checking for makeinfo... makeinfo
checking for doxygen... doxygen
checking for dot... no
checking for flex... flex
checking for bison... bison
checking if bison version >= 1.35... yes (version 2.3)
checking for hhc... no
checking for swig... swig
checking if swig version >= 1.3.21... yes (version 1.3.36)
checking for rsvg... no
checking for icotool... no
checking for convert... no
checking for relaytool... ./bin/relaytool
checking for jam... /usr/bin/jam
checking if jam version >= 2.4... yes (version 2.5)
checking for gnumake... no
checking for gmake... no
checking for make... make
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 cmath usability... yes
checking cmath presence... yes
checking for cmath... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for fopen in -lc... yes
checking for pow in -lm... yes
checking for cosf in -lm... yes
checking for cosf in -lmx... no
checking for dlopen in -ldl... yes
checking for gethostbyname in -lnsl... yes
checking for dladdr in -ldl... yes
checking for pthread... yes
checking for pthread recursive mutexes... PTHREAD_MUTEX_RECURSIVE
checking for pthread_atfork support... yes
checking whether to link base g++ libraries statically... no
checking for RTLD_NOW... yes
checking for -mmmx flag... -mmmx
checking for -msse flag... -msse
checking for -msse2 flag... -msse2
checking for -mfpmath=sse flag... -mfpmath=sse
checking checking for mmintrin.h... yes
checking for perl5... no
checking for perl... perl
checking how to suppress C++ `long double' warnings... no
checking for python... python
checking for java... no
checking for javac... no
checking for ant... no
checking for STL... yes
checking how to enable C++ compilation warnings... -Wall
checking how to treat C++ warnings as errors... -Werror
checking how to suppress C++ unused variable warnings... -Wno-unused
checking how to suppress C++ uninitialized variable warnings... -Wno-uninitialized
checking how to suppress C++ unknown #pragma warnings... -Wno-unknown-pragmas
checking how to suppress C++ `long double' warnings... (cached) no
checking how to suppress C++ non-virtual destructor warnings... -Wno-non-virtual-dtor
checking for flag to disable string-aliasing... -fno-strict-aliasing
checking how to enable C++ exceptions... -fexceptions -fno-omit-frame-pointer
checking how to disable C++ exceptions... -fno-exceptions
checking how to enforce C++ standards conformance... -ansi -pedantic
checking if -force_cpusubtype_ALL is needed... no
checking how to export all dynamic symbols... -Wl,-E
checking if --kill-at is accepted... no
checking if reporting missing symbols is supported... -Wl,-z,defs
checking if missing symbols can be reported as warnings... -Wl,--warn-unresolved-symbols
checking how to disable function inlining... -fno-inline-functions
checking how to treat C warnings as errors... -Werror
checking how to treat C++ warnings as errors... (cached) -Werror
checking how to treat C++ warnings as errors... (cached) -Werror
checking how to enable C++ PIC generation... (cached) -fPIC
checking for inline visibility flag... -fvisibility-inlines-hidden
checking if configuration supports -fvisibility-inlines-hidden... yes
checking if -fvisibility-inlines-hidden is buggy... no
checking for hidden symbol visibility flag... -fvisibility=hidden
checking for default symbol visibility flag... -fvisibility=default
checking how to declare hidden visibility... __attribute__((visibility("hidden")))
checking how to declare default visibility... __attribute__((visibility("default")))
checking whether to use CPU-specific optimizations... minimum
checking for code generation flags... -march=k8
checking how to enable optimizations... -O3
checking if -fomit-frame-pointer is accepted... -fomit-frame-pointer
checking if -ffast-math is accepted... -ffast-math
checking build mode... optimize
checking if binutils version >= 2.17... (cached) yes (version 2.19.1)
checking whether to split debug information... yes
checking how to enable debug mode debugging symbols... -g3
checking whether to enable debug information in optimize mode... yes
checking how to enable optimize mode debugging symbols... -g2
checking if -I/usr/local/include is usable... -I/usr/local/include
checking for va_copy... no
checking for __va_copy... yes
checking for pkg-config... pkg-config
checking if pkg-config recognizes x11... yes
checking for x11-config... no
checking for libx11... yes
checking if pkg-config recognizes xext... yes
checking for xext-config... no
checking for libxext... yes
checking if pkg-config recognizes xxf86vm... yes
checking for xxf86vm-config... no
checking if pkg-config recognizes Xxf86vm... no
checking for Xxf86vm-config... no
checking for libxxf86vm... yes
checking if pkg-config recognizes xaw7... no
checking for xaw7-config... no
checking if pkg-config recognizes Xaw... no
checking for Xaw-config... no
checking for libxaw7... no
checking for int32... no
checking for windows.h... no
checking for OpenGL... yes
checking for GLhandleARB... yes
checking for GLcharARB... yes
checking for GLchar... yes
checking for GLintptr... yes
checking for GLsizeiptr... yes
checking for GLU... yes
checking for GLX... yes
checking for GLX extensions... yes
checking if pkg-config recognizes z... no
checking for z-config... no
checking if pkg-config recognizes zlib... no
checking for zlib-config... no
checking for libz... yes
checking if pkg-config recognizes png... no
checking for png-config... no
checking if pkg-config recognizes libpng... yes
checking for libpng-config... libpng-config
checking for libpng... yes
checking if pkg-config recognizes jpeg... no
checking for jpeg-config... no
checking if pkg-config recognizes libjpeg... no
checking for libjpeg-config... no
checking for libjpeg... yes
checking if pkg-config recognizes lcms... yes
checking for lcms-config... no
checking for liblcms... yes
checking if pkg-config recognizes mng... no
checking for mng-config... no
checking if pkg-config recognizes libmng... no
checking for libmng-config... no
checking for libmng... yes
checking if pkg-config recognizes cairo... no
checking for cairo-config... no
checking for libcairo... no
checking if pkg-config recognizes cairomm... no
checking for cairomm-config... no
checking if pkg-config recognizes cairomm-1... no
checking for cairomm-1-config... no
checking if pkg-config recognizes cairomm-1.0... no
checking for cairomm-1.0-config... no
checking for libcairomm... no
checking if pkg-config recognizes vgvm... no
checking for vgvm-config... no
checking for libvgvm... no
checking if pkg-config recognizes ogg... yes
checking for ogg-config... no
checking for libogg... yes
checking if pkg-config recognizes vorbis... yes
checking for vorbis-config... no
checking for libvorbis... yes
checking if pkg-config recognizes vorbisfile... yes
checking for vorbisfile-config... no
checking for libvorbisfile... yes
checking if pkg-config recognizes speex... yes
checking for speex-config... no
checking for libspeex... yes
checking for speex_header_free()... yes
checking if pkg-config recognizes 3ds... no
checking for 3ds-config... no
checking if pkg-config recognizes lib3ds... no
checking for lib3ds-config... lib3ds-config
checking if pkg-config recognizes lib3ds-120... no
checking for lib3ds-120-config... no
checking for lib3ds... yes
checking if lib3ds is sufficiently recent... yes
checking for generic lib3ds data I/O callbacks... yes
checking if pkg-config recognizes ode... no
checking for ode-config... ode-config
checking for libode... yes
checking if libode is built with OPCODE support... yes
checking if libode is sufficiently recent... yes
checking if pkg-config recognizes bullet... no
checking for bullet-config... no
checking if pkg-config recognizes bulletdynamics... no
checking for bulletdynamics-config... no
checking for libbullet... no
checking for OpenAL... yes
checking if pkg-config recognizes freetype2... yes
checking for freetype2-config... no
checking if pkg-config recognizes freetype... no
checking for freetype-config... freetype-config
checking for libfreetype2... yes
checking if freetype2 is sufficiently recent... yes
checking if pkg-config recognizes cal3d... yes
checking for cal3d-config... no
checking for libcal3d... yes
checking if cal3d is sufficiently recent... yes
checking if pkg-config recognizes sdl... yes
checking for sdl-config... sdl-config
checking for libsdl... yes
checking if SDL is sufficiently recent... yes
checking if pkg-config recognizes wx... no
checking for wx-config... wx-config
checking for libwx... yes
checking if wxWidgets is built with OpenGL support... yes
checking if pkg-config recognizes CEGUI... yes
checking for CEGUI-config... no
checking if pkg-config recognizes CEGUIBase... no
checking for CEGUIBase-config... no
checking for libCEGUI... yes
checking if CEGUI is sufficiently recent... yes
checking if pkg-config recognizes GTK... no
checking for GTK-config... no
checking if pkg-config recognizes gtk+-2.0... no
checking for gtk+-2.0-config... no
checking for libGTK... no
checking for GNU/Linux joystick API... yes
checking if pkg-config recognizes Cg... no
checking for Cg-config... no
checking if pkg-config recognizes cg... no
checking for cg-config... no
checking if pkg-config recognizes CG... no
checking for CG-config... no
checking for libCg... yes
checking if Cg is sufficiently recent... yes
checking if pkg-config recognizes CgGL... no
checking for CgGL-config... no
checking if pkg-config recognizes cggl... no
checking for cggl-config... no
checking if pkg-config recognizes cgGL... no
checking for cgGL-config... no
checking if pkg-config recognizes CGGL... no
checking for CGGL-config... no
checking if pkg-config recognizes Cg... (cached) no
checking for Cg-config... no
checking if pkg-config recognizes cg... (cached) no
checking for cg-config... no
checking if pkg-config recognizes CG... (cached) no
checking for CG-config... no
checking for libCgGL... yes
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 if pkg-config recognizes jackasyn... no
checking for jackasyn-config... no
checking for libjackasyn... no
checking if pkg-config recognizes asound... no
checking for asound-config... no
checking for libasound... yes
checking if pkg-config recognizes cucul... yes
checking for cucul-config... no
checking if pkg-config recognizes libcucul... no
checking for libcucul-config... no
checking for libcucul... yes
checking if pkg-config recognizes caca... yes
checking for caca-config... caca-config
checking if pkg-config recognizes libcaca... no
checking for libcaca-config... no
checking for libcaca... yes
checking for regexp support... yes
checking for backtrace... yes
checking for setenv... yes
checking for putenv... yes
checking for _aligned_malloc... no
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking for sysinfo()... yes
checking for struct sysinfo.totalram... yes
checking if <malloc.h> can be included... yes
checking cxxabi.h usability... yes
checking cxxabi.h presence... yes
checking for cxxabi.h... yes
checking for abi::__cxa_demangle... yes
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for perl5... (cached) perl
checking for TemplateToolkit... no
checking for ttree... no
checking if pkg-config recognizes cppunit... no
checking for cppunit-config... no
checking for libcppunit... no
checking if plugins require main()... yes
checking for long... yes
checking size of long... 8
checking whether byte ordering is bigendian... no
checking for stdint.h... (cached) yes
checking for INT64_C... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for intptr_t... yes
checking for intmax_t... yes
checking for inttypes.h... (cached) yes
checking for PRIx99 macros... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for wint_t... yes
checking for wchar_t... yes
checking for wcslen... yes
checking for fputws... yes
checking for fwide... yes
checking for wcsnrtombs... yes
checking for wchar_t... (cached) yes
checking size of wchar_t... 4
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for MAXPATHLEN... 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 byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking how to declare deprecation... __attribute__((deprecated))
checking how to declare allocation function... __attribute__((malloc))
checking how to declare object initialization priority... __attribute__((init_priority(PRI)))
checking if assembly-coded csQsqrt() compiles... yes
checking for isfinite... no
checking for finitef... yes
checking for finite... yes
checking for _finite... no
checking for std::isfinite... yes
checking for isnan... yes
checking for isnanf... yes
checking for _isnan... no
checking for std::isnan... yes
checking for isnormal... no
checking for normalf... no
checking for std::isnormal... yes
checking for strtof... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking whether to embed plugin meta-information... yes
checking for windres... no
checking for elf.h... (cached) yes
checking whether to enable ptmalloc... yes
checking whether to use extensive memory debugger... no
checking whether to use memory tracker... no
checking whether to use reference tracker... no
checking whether to use leak guard... no
checking whether to build shared libraries... yes
checking whether to emulate makefiles... yes
configure: creating ./config.status
config.status: creating Jamfile
config.status: executing include/csconfig.h commands
config.status: executing Jamconfig commands
config.status: executing Makefile commands
« Last Edit: August 20, 2009, 04:00:29 pm by bugmenot »

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: pslaunch_static: WARNING: could not load plugin 'crystalspace.window.x'
« Reply #1 on: August 20, 2009, 04:52:48 pm »
Try to run the psclient_static with the option "--verbose" and with the modified LD_LIBRARY_PATH you use for psclient. Then look for messages like these:
Quote
SCF_NOTIFY: loading plugin /home/nakem/Documents/builds/planeshift/cs/gmeshldr.so to satisfy request for csGeneralFactoryLoader

You then have to modify the "src/client/Jamfile" and add the missing plugin below this line:
Code: [Select]
STATIC.PLUGINLIST =
Afterwards it should look like this:
Code: [Select]
#
# The plugins that we need
#
STATIC.PLUGINLIST =
  bindoc
  bruteblock
  csddsimg
  csfont
  csbmpimg

Or you can just use my patched file:
Code: [Select]
SubDir TOP src client ;
SubInclude TOP src client sound ;
SubInclude TOP src client gui ;

local extrafiles ;
if [ Property build : projgen ] = msvc
{
 extrafiles += [ Wildcard win32 : *.cpp *.h ] ;
}
Application psclient : [ Wildcard *.cpp *.h ] $(extrafiles) ;
ExternalLibs psclient : CRYSTAL CAL3D ;
CompileGroups psclient : client ;
LinkWith psclient : gui psnet psengine psrpgrules pssound psutil paws effects fparser ;

if $(HAVE_STATIC_PLUGINS) = "yes"
{

SubVariant static ;
if [ Property build : projgen ] = msvc
{
 extrafiles += [ Wildcard win32 : *.cpp *.h ] ;
}
Application psclient_static : [ Wildcard *.cpp *.h ] $(extrafiles) : independent noinstall nohelp ;
CFlags psclient_static : [ FDefines CS_STATIC_LINKED ] $(CAL3D.CFLAGS) ;
LFlags psclient_static : -lcrystalspace_staticplugins-$(CRYSTAL.VERSION) -lcal3d ;
MsvcDefine psclient_static : CS_STATIC_LINKED ;
LinkWith psclient_static : gui psnet psengine psrpgrules pssound psutil paws effects fparser ;

#
# The plugins that we need
#
STATIC.PLUGINLIST =
  bindoc
  bruteblock
  csddsimg
  csfont
  csbmpimg
  csgifimg
  csjpgimg
  csjngimg
  csopcode
  csparser
  cspngimg
  cssynldr
  cstgaimg
  decal
  dsplex
  dynavis
  emit
  emitldr
  engine
  engseq
  fontplex
  freefnt2
  frustvis
  genmesh
  gl3d
  glshader_cg
  glshader_fixed
  glshader_ps1
  gmeshanim
  gmeshanimpdl
  gmeshldr
  imgplex
  null2d
  null3d
  nullmesh
  nullmeshldr
  particles
  particlesldr
  ptanimimg
  ptpdlight
  rendloop_loader
  rendstep_std
  reporter
  sequence
  shadermgr
  simpleformer
  simpleformerldr
  sndmanager
  sndsysloader
  sndsysnull
  sndsysogg
  sndsysopenal
  sndsyssoft
  sndsysspeex
  sndsyswav
  spr2d
  spr3d
  spr3dbin
  spr3dldr
  sprcal3d
  sprcal3dldr
  stdrep
  terrainldr
  terrain2
  terrain2ldr
  thing
  thingldr
  vfs
  xmlshader
  xmltiny
  shaderweaver
  movierecorder
  ;

STATIC.PlUGINLIST.OPTIONAL =
  svgimage
  ;

if $(TARGET.OS) != "WIN32" { if $(TARGET.OS) != "MACOS_X" { STATIC.PLUGINLIST += xwin xext86vm glx2d sndsysalsa sndsysoss ; } }
if $(TARGET.OS) = "WIN32" { STATIC.PLUGINLIST += glwin32 sndsyswin ; }
if $(TARGET.OS) = "MACOS_X" { STATIC.PLUGINLIST += glosx2d sndsyscoreaudio ; }

LinkStaticPlugins psclient_static : $(STATIC.PLUGINLIST)
: $(STATIC.PlUGINLIST.OPTIONAL)
: CRYSTAL
;

ExternalLibs psclient_static : CRYSTAL CAL3D;
CompileGroups psclient_static : client_static ;

SubVariant ;
}


After patching you have to run "jam psclient_static" (without "-aq") to recompile the client.
Hope it helps.
« Last Edit: August 20, 2009, 05:01:37 pm by Nakem »

bugmenot

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Re: pslaunch_static: WARNING: could not load plugin 'crystalspace.window.x'
« Reply #2 on: August 21, 2009, 01:10:06 am »
I decided to try a normal build and it worked.

Thank you.

Now there is one problem left which makes pslaunch segfault:
I opened a bug about it:
http://www.hydlaaplaza.com/flyspray/index.php?task_id=3114

//edit
I finally got everything to work by using pssetup from an oder revision.
« Last Edit: August 21, 2009, 02:56:42 am by bugmenot »