There is no need to link to QtSvg in CMakefile.txt
A recent commit bringing Svg support to UI programs has added a link dependency to libQtSvg in these CMakefile.txt:
- CMakeLists.txt (Svg should be removed from that list):
find_package(Qt5 5.15 COMPONENTS Core Widgets Network OpenGL LinguistTools Svg REQUIRED)
- apps/launcher/CMakeLists.txt, apps/wizard/CMakeLists.txt, apps/opencs/CMakeLists.txt (Qt::Svg should be removed from that list):
target_link_libraries(openmw-launcher Qt::Widgets Qt::Core Qt::Svg)
This is wrong as libQtSvg is a runtime plugin, not a compile one. There is no include for libQtSvg that the code reference nor function in that lib, since it is a runtime Qt5 plugin.
I found out about this issue when compiling latest git openmw on openSUSE TW: there is simply no libQtSvg developement package (as it should), just a runtime package with the .so.
I had to fix it in the rpm spec file with:
sed -i 's/Svg //' CMakeLists.txt
sed -i 's/Qt::Svg//' apps/{launcher,wizard,opencs}/CMakeLists.txt
It produces working launcher,wizard,opencs programs with Svg support (as long as the runtime libQt5Svg5 package is installed).
Edited by spongebob42