FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.94k stars 353 forks source link

Static build possible? #284

Open smaktacular opened 2 years ago

smaktacular commented 2 years ago

I'd like to build rpiplay for my libreelec installations on x86/arm. Libreelec does not allow packages to be added, just single files. Adding -static to the CMake file unfortunately leads to an error:

target_link_libraries ( rpiplay renderers airplay -static)

[ 97%] Linking CXX executable rpiplay
/usr/bin/ld: cannot find -lgstsdp-1.0
/usr/bin/ld: cannot find -lgstvideo-1.0
/usr/bin/ld: cannot find -lgstapp-1.0
/usr/bin/ld: cannot find -lgstbase-1.0
/usr/bin/ld: cannot find -lgstreamer-1.0
/usr/bin/ld: attempted static link of dynamic object `/usr/lib/x86_64-linux-gnu/libplist.so'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/rpiplay.dir/build.make:90: rpiplay] Error 1
make[1]: *** [CMakeFiles/Makefile2:162: CMakeFiles/rpiplay.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Can someone provide instructions on how to enable building a static binary if possible? If not what would have to be done to enable it?

I use mint btw.

porterdcarnegie commented 2 years ago

A newbie guess: a static build of libplist required first, which generates libplist.a which is the static equivalent of libplist.so.