Technical support > Feature Requests
Packaging problem: missing ufo.cfg?
DavidNielsen:
I'm currently building ufo:ai 2.0rc6 for Fedora but my test packages are experiening the following issue, they build fine but when I try to start he game it complains:
Adding game dir: ./base
using /home/david/.ufoai/base for writing
Adding game dir: /home/david/.ufoai/base
FindFile: can't find default.cfg
couldn't exec default.cfg
FindFile: can't find config.cfg
couldn't exec config.cfg
FindFile: can't find keys.cfg
couldn't exec keys.cfg
Console initialized.
------- sound initialization -------
Loading snd_sdl sound driver
Soundsystem: SDL.
SDL version: 1.2.10
SDL audio driver is "alsa".
Bits: 16
Frequency: 48000
Samples: 4096
Channels: 2
sound sampling rate: 48000
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so"): can't open /etc/ufo.conf - setting search path to .
LoadLibrary("ref_glx.so") failed: ./ref_glx.so: cannot open shared object file: No such file or directory
Dumped console text to /home/david/.ufoai/base/gl_debug.txt.
SDL audio device shut down.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.
It appears to me that the /etc/ufo.cfg file is mising, I clearly need it to set default path somewhere so that on my setup e.g. it will look in /usr/lib64 instead of .
I'd love for Fedora users to just be able to yum install ufoai to get this game so I request a bit of help to ensure the user experience will be as optimal as possible.
Kind regards,
David Nielsen
Mattn:
you can also use the cvar s_libdir to set the lib path
DavidNielsen:
putting set s_libdir "/usr/lib64" does not appear to work. In addition for RPM packagers like myself that seems really suboptimal. Is there anyway to make this work without mocking with dynamic variables in runtime, like forcing the build system to obey the libdir variable.
Mattn:
s_libdir should work - i will test it again. thanks for report.
you (the packager) can add this cvar to the default.cfg in the base folder or add an autoexec.cfg to the base folder
please try to start the game with ./ufo +set s_libdir /usr/lib64
DavidNielsen:
Same result
Navigation
[0] Message Index
[#] Next page
Go to full version