Open smaktacular opened 3 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.
A newbie guess: a static build of libplist required first, which generates libplist.a which is the static equivalent of libplist.so.
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)
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.