General > Discussion

ufo.conf / ref_glx.so problem again :(

(1/3) > >>

Hoehrer:
I'm building my game exaclty as mentioned here (i've done it that way before this tut even existed):
http://ufo.myexp.de/phpBB2/viewtopic.php?p=46#46

But now for some reason (me, changes in svn, whatever) i yet again [1] get the problem with the 'missing' /etc/ufo.conf and when i symlink it to defaults.cfg i get the error
--- Code: ---LoadLibrary("ref_glx.so") failed: Datei oder Verzeichnis nicht gefunden (EN: File or directory not found)
--- End code ---


I really do not know why this problem occurs at all, everything is in the right place and i certainly didn't change anything (at least not manually).

My file structure looks like this:

--- Code: ---trunk/
ref_glx.so -> src/linux/debugi386/ref_glx.so
ufo -> src/linux/debugi386/ufo
base/
game.so -> ../src/linux/debugi386/game.so
config.cfg
default.cfg
keys.cfg

--- End code ---


EDIT: my default.cfg

--- Code: ---//set vid_ref                   gl
set gl_driver           "opengl32"
set vid_ref                     glx
//set gl_driver         libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1
--- End code ---


Thanks for any tips what i might have done wrong,
Werner

[1] Thread with exactly this problem in the sf-forum http://sourceforge.net/forum/forum.php?thread_id=1425481&forum_id=531128

Mattn:
the path of the ref_glx.so is in the conf file in etc dir - remove the conf file - then ufoai is searching in ./ - which is the right place

Hoehrer:

--- Quote from: "Mattn" ---the path of the ref_glx.so is in the conf file in etc dir - remove the conf file - then ufoai is searching in ./ - which is the right place
--- End quote ---


I just tried that, but now i get a new message with an opengl32 problem...

--- Code: ---------- Loading ref_sdl.so -------
LoadLibrary("ref_sdl.so"): can't open /etc/ufo.conf - setting search path to .
LoadLibrary("./ref_sdl.so")
reset
ref_gl version: GL 0.12
QGL_Init("opengl32"): can't open /etc/ufo.conf
./opengl32: Kann die Shared-Object-Datei nicht ?ffnen: Datei oder Verzeichnis nicht gefunden
ref_gl::R_Init() - could not load "opengl32"
------------------------------------
Speicherzugriffsfehler
--- End code ---

The same happens with "glx". Other opengl-games/apps work fine.

Werner

Hoehrer:
ok forget that last post, i forgot to change the second line in default.cfg

--- Code: ---//set vid_ref                   gl
//set gl_driver           "opengl32"
set vid_ref                     glx
set gl_driver         libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1
--- End code ---


Werner

kNo:
I have the same problem:

--- Code: ---ufoai
Adding game dir: ./base
using /home/kno/.ufoai/base/ for writing
Adding game dir: /home/kno/.ufoai/base
Using data dir (./base/i18n/) for locate settings
Setting language to es_ES
execing default.cfg
execing config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------
Using Alsa
Using sounddevice "default" - if you have problems with this try to set the cvar snddevice to a appropriate alsa-deviceALSA: period 2048 not supported, using 2048
sound sampling rate: 48000
------------------------------------
------- Loading ref_gl.so -------
LoadLibrary("ref_gl.so"): can't open /etc/ufo.conf
LoadLibrary("ref_gl.so") failed: No existe el fichero o el directorio
Dumped console text to /home/kno/.ufoai/base/gl_debug.txt.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

--- End code ---

Configuration (default.cfg in ~/ufoai/base)

--- Code: ---set vid_ref                     gl
//set gl_driver         "opengl32"
//set vid_ref                   glx
set gl_driver           libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version