Crystal Space
Welcome, Guest. Please login or register.
December 22, 2014, 09:00:55 am

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9300 Members
Latest Member: Almedamowery
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Future stable branch 1.4 broken or just a configuration problem?
« previous next »
Pages: [1] Print
Author Topic: Future stable branch 1.4 broken or just a configuration problem?  (Read 2516 times)
Pragma
Newbie
*
Posts: 6


View Profile Email
« on: October 19, 2008, 08:59:07 pm »

Hi community!

I have compiled 1.4 branch. I got this "error" if I start csdemo or walktest.

Code:
... (No errors above this line)
SCF_NOTIFY: registering class crystalspace.mesh.saver.factory.particles in context `crystalspace' (from /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/particlesldr.so)
SCF_NOTIFY: registering class crystalspace.mesh.saver.particles in context `crystalspace' (from /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/particlesldr.so)
SCF_NOTIFY: loading plugin /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/vfs.so to satisfy request for csVFS
VFS_NOTIFY: loaded configuration file: /home/pragma/Code/crystal/crystal-sdk/vfs.cfg
ERROR: Failed to initialize config!
 (A common cause is the CRYSTAL environment variable not being set correctly.)
Error initializing system!
Cleaning up...
Error saving configuration '/config/walktest.cfg'.
SCF_NOTIFY: unloading plugin /home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/vfs.so

OS: Ubuntu 8.04
GCC: gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

The SDK is installed in "~/Code/crystal/crystal-sdk". Environment variable CRYSTAL points to "/home/pragma/Code/crystal/crystal-sdk/lib/crystalspace-1.4/".
LD_LIBRARY_PATH is set to "/home/pragma/Code/crystal/crystal-sdk/lib".

The problem with that error log is that there is no informative error message!

Any suggestions?
Thanks!
Logged
Pragma
Newbie
*
Posts: 6


View Profile Email
« Reply #1 on: October 19, 2008, 09:19:15 pm »

OK I got it. Edit the "vfs.cfg" and change the line

Code:
VFS.Mount.config = $@data$/config-app$/, $@data$/config-plugins$/

to

Code:
VFS.Mount.config =  $(CS_DATADIR)/config-app$/, $(CS_DATADIR)/config-plugins$/

This is fixed on CS 1.9. I suggest to add this fix to 1.4 branch.
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #2 on: October 20, 2008, 04:23:55 pm »

This is fixed on CS 1.9. I suggest to add this fix to 1.4 branch.

Indeed, partial merge of r30243 in 1.4 branch was needed.
That's done with r31451 now.

Thanks for reporting smiley
Logged
jb
Newbie
*
Posts: 6


View Profile Email
« Reply #3 on: November 13, 2009, 08:23:24 am »

I've got the same problem in CS release v1.2.

CRYSTAL=/opt/cs/lib/crystalspace-1.2
LD_LIBRARY_PATH=/opt/cs/lib
gcc (Debian 4.3.2-1.1) 4.3.2

Doesnt look like broken, maybe i'm missing out something.
Logged
jb
Newbie
*
Posts: 6


View Profile Email
« Reply #4 on: November 13, 2009, 08:49:06 am »

Hi,

walktest doesnot work:
tried with
CRYSTAL=/opt/cs
CRYSTAL=/opt/cs/lib/crystalspace-1.2
gcc (Debian 4.3.2-1.1) 4.3.2


... (no errors above) ...
SCF_NOTIFY: loading plugin /opt/cs/lib/crystalspace-1.2/vfs.so to satisfy request for csVFS
ERROR: Failed to initialize config!
 (A common cause is the CRYSTAL environment variable not being set correctly.)
Error initializing system!
Cleaning up...
Error saving configuration '/config/walktest.cfg'.
SCF_NOTIFY: unloading plugin /opt/cs/lib/crystalspace-1.2/vfs.so

** seems /config/walktest is not found


Maybe problem with vfs:

if I cd to the config dir and run walktest it works!
but cant find some plugins!

/opt/cs/etc/crystalspace-1.2$ ../../bin/walktest
WARNING: could not load plugin 'crystalspace.window.x.extf86vm'
DEBUG: Sound System Software Renderer Initializing...
WARNING: could not load plugin 'crystalspace.sndsys.element.ogg'
ATTENTION: default value of option force_s3tc_enable overridden by environment.
ATTENTION: option value of option force_s3tc_enable ignored.

crystalspace.engine.warning:
  Couldn't load cached lighting for 1 object(s). Use -relight to calculate
  lighting:
      Cube.012
WARNING! Object 'Cube.582' is not closed!
WARNING! Object 'Cylinder.232' is not closed!
WARNING! Object 'Cylinder.230' is not closed!
WARNING! Object 'Cylinder.012' is not closed!
WARNING! Object 'Cube.580' is not closed!
WARNING! Object 'Cube.578' is not closed!
...

crystalspace.pluginmgr.loadplugin:
  could not load plugin 'crystalspace.graphics3d.shader.glcg'
...
so again maybe not broken, and im missing something.
Please tell me how to do it right.

Thanks in advance.
--
JB
Logged
jb
Newbie
*
Posts: 6


View Profile Email
« Reply #5 on: November 13, 2009, 10:25:39 am »

Quote
This is fixed on CS 1.9. I suggest to add this fix to 1.4 branch.

Indeed, partial merge of r30243 in 1.4 branch was needed.
That's done with r31451 now.

Thanks for reporting

Any way of fixing the v1.2 release config I have already?

this is my vfs.cfg

Quote
;;; Virtual File System mount table
;;;
;;; $/ -- path delimiter (i.e. "/" on Unix; "\" on Windows)
;;; $@ -- installation directory of Crystal Space
;;; $* -- application resource directory; same as csGetResourceDir()
;;; $^ -- directory in which application resides; same as csGetAppDir()
;;; The expansions of $@, $*, and $^ always have a trailing path delimiter.

; Some basic mount points
VFS.Mount.~ = $(HOME)$/
VFS.Mount.this = $.$/
VFS.Mount.cdrom = $(CS_CDROM)$/
VFS.Mount.tmp = $(CS_TMP)$/

; Configuration repository
VFS.Mount.config = $(CS_CONFIGDIR)$/
VFS.Mount.data = $(CS_DATADIR)$/

; Miscellaneous resources.
VFS.Mount.varia = $(CS_DATADIR)$/varia$/
VFS.Mount.scripts = $(CS_SHAREDIR)$/bindings$/

VFS.Mount.shader = $(CS_DATADIR)$/shader$/
; The Unifont
VFS.Mount.fonts/unifont = $(CS_DATADIR)$/unifont.zip
; The TTF font library
VFS.Mount.fonts/ttf   = $(CS_DATADIR)$/ttf$/, $(TTF_PATH:$.$/), $(CS_DATADIR)$/ttf-dejavu.zip, $(CS_DATADIR)$/ttf-vera.zip

VFS.Mount.lev/flarge   = $(CS_MAPDIR)$/flarge$/
VFS.Mount.lev/r3dtest  = $(CS_MAPDIR)$/r3dtest$/
VFS.Mount.lev/projectortest  = $(CS_MAPDIR)$/projectortest$/
VFS.Mount.lev/parallaxtest = $(CS_MAPDIR)$/parallaxtest$/
VFS.Mount.lev/stenciltest = $(CS_MAPDIR)$/stenciltest$/
VFS.Mount.lev/isomap   = $(CS_MAPDIR)$/isomap.zip, $(CS_MAPDIR)$/isomap$/
VFS.Mount.lev/partsys  = $(CS_MAPDIR)$/partsys$/
VFS.Mount.lev/terrain  = $(CS_MAPDIR)$/terrain$/
VFS.Mount.lev/terrainf = $(CS_MAPDIR)$/terrainf$/
VFS.Mount.lev/terraina = $(CS_MAPDIR)$/terraina$/
VFS.Mount.lev/terrainp = $(CS_MAPDIR)$/terrainp$/
VFS.Mount.lev/r3dsmtest = $(CS_MAPDIR)$/r3dsmtest$/
VFS.Mount.lev/castle   = $(CS_MAPDIR)$/castle$/

; Mount all libraries under the /lib/ directory
VFS.Mount.lib/std/castle = $(CS_DATADIR)$/castle-tex.zip
VFS.Mount.lib/std      = $(CS_DATADIR)$/standard.zip
VFS.Mount.lib/stdtex   = $(CS_DATADIR)$/standard.zip
VFS.Mount.lib/cubemap  = $(CS_DATADIR)$/cube$/
VFS.Mount.lib/teapot   = $(CS_DATADIR)$/teapot.zip
VFS.Mount.lib/kwartz   = $(CS_DATADIR)$/kwartz.zip
VFS.Mount.lib/startme  = $(CS_DATADIR)$/startme.zip

; CEgui test
VFS.Mount.ceguitest  = $(CS_DATADIR)$/ceguitest$/

; Mount for unittest
VFS.Mount.lev/unittest = $(CS_DATADIR)$/unittest$/
; Data for g2dtest
VFS.Mount.lib/g2dtest  = $(CS_DATADIR)$/g2dtest$/

; The following should not change too often...
; The idea is that everything that should be changed (such as CDROM variable)
; is set by some sort of setup (installation) program.
; Note that variables in VFS.Platform. section will override any
; variables in VFS.PlatformAlias. section.
VFS.Alias.Unix = VFS.Unix
VFS.Alias.MacOS/X = VFS.Unix
VFS.Alias.Win32 = VFS.CP/M

; strange key names follow:
; VFS.Unix.. means key '.' in section VFS.Unix.*
; VFS.Unix... means key '..' in section VFS.Unix.*
VFS.Unix.. = .
VFS.Unix... = ..
VFS.Unix.CS_CDROM = /mnt/cdrom
VFS.Unix.CS_TMP = /tmp
; This is true at least for systems using XFree86
VFS.Unix.TTF_PATH = /usr/X11R6/lib/X11/fonts/Truetype/, /usr/X11R6/lib/X11/fonts/TTF/

VFS.CP/M.. = .
VFS.CP/M... = ..
VFS.CP/M.HOME = $(HOMEDIR:$(HOMEPATH:.))
VFS.CP/M.CDROM = x:
VFS.CP/M.TMP = $(TEMP:$(TMP:$(SYSTEMROOT)$/temp))

; The standard location of TTF fonts is the X:\Windows\fonts directory
VFS.Win32.TTF_PATH = $(SYSTEMROOT)$/fonts$/

; Configuration-time installation paths.
VFS.Unix.CS_SHAREDIR = /opt/cs/share/crystalspace-1.2
VFS.Unix.CS_DATADIR = /opt/cs/share/crystalspace-1.2/data
VFS.Unix.CS_CONFIGDIR = /opt/cs/etc/crystalspace-1.2
VFS.Unix.CS_MAPDIR = /opt/cs/share/crystalspace-1.2/data/maps
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.199 seconds with 16 queries.