project-navigation
Personal tools

Author Topic: Packaging problem: missing ufo.cfg?  (Read 3188 times)

DavidNielsen

  • Guest
Packaging problem: missing ufo.cfg?
« on: March 08, 2007, 09:11:43 am »
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

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Packaging problem: missing ufo.cfg?
« Reply #1 on: March 08, 2007, 09:20:54 am »
you can also use the cvar s_libdir to set the lib path

DavidNielsen

  • Guest
Packaging problem: missing ufo.cfg?
« Reply #2 on: March 08, 2007, 10:40:02 am »
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.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Packaging problem: missing ufo.cfg?
« Reply #3 on: March 08, 2007, 12:49:52 pm »
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

  • Guest
Packaging problem: missing ufo.cfg?
« Reply #4 on: March 08, 2007, 07:48:28 pm »
Same result

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Packaging problem: missing ufo.cfg?
« Reply #5 on: March 09, 2007, 08:20:16 am »
you can also try to create the /etc/ufo.conf with "/usr/lib64" as content.