Compilation Error (driver .so's)

Bug #370726 reported by Stefan Kriwanek (Divan)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Return To The Roots
Status tracked in S25client
S25client
Fix Released
Low
Demophobie

Bug Description

On linux, none of the driver's shared object files get built, so the game quits with:
0 video drivers found

It seems to me that the make process does instead build the static libraries
libvideodrv.a libaudiodrv.a
and 'make install' copies them to
-- Installing: /usr/local/lib/libvideodrv.a
-- Installing: /usr/local/lib/libaudiodrv.a

Though, s25client (DriverWrapper.cpp) looks for shared object files in
/usr/local/share/s25rttr/driver/video/*.so

BTW, 'make install' and 'cmake.sh' ignore my cmake.sh arguments --prefix=/usr/share or --prefix=. and always try to install to /usr/local

Demophobie (demophobie)
Changed in s25rttr:
assignee: nobody → FloSoft (flosoft)
milestone: none → nightly
status: New → Triaged
description: updated
Revision history for this message
FloSoft (flosoft) wrote :

Hi,

you have to install at least

libsdl1.2-dev
and
libsdl_mixer1.2-dev

to be able to build the SDL video and SDL audio driver module

on non debian/ubuntu systems this developer-packages will be named different

Revision history for this message
FloSoft (flosoft) wrote :

and those static libraries are only helper-libraries for those dynamic modules. perhaps we should change them to _NOINST so they will not be installed with make install, because theyre normally only needed to build those dynamic ones

Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :

Wow, I spent hours on it not realizing that I didn't had those dev-packages.

Maybe you should add the names of all dev-packages needed to INSTALL?

Revision history for this message
FloSoft (flosoft) wrote :

moving it to demophobie: he should add and update the "INSTALL" file ...

Revision history for this message
Stefan Kriwanek (Divan) (dev-stefankriwanek) wrote :

He did it months ago ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.