Closed cmuellner closed 2 months ago
@cmuellner thanks for this. Before merging, can you please confirm if specifying the Qt location as per wiki instructions it works correctly? https://github.com/mcallegari/qlcplus/wiki/Linux-build-(Qt5-&-cmake)#compile
Thanks
The PR was initially tested on Fedora 39 and linking qlcplus+changes against QT6 using the following commands:
cd build
mkdir build
cmake ..
make
I've now created an Ubuntu 23.10 VM and installed all build dependencies for a QT5 build. Then I've built qlcplus+changes using the following commands from the wiki:
cd build
mkdir build
cmake -DCMAKE_PREFIX_PATH="/usr/lib/x86_64-linux-gnu/cmake/Qt5" ..
make
Starting qlcplus worked fine.
I don't have a QT account, so I haven't tested building against the official (proprietary) Qt release.
Thanks :+1:
Building qlcplus (upstream/master) with GCC 13.2.1 (Fedora 39) triggers build errors when using the following commands:
The first error is:
The second error is:
Both errors are caused by linking a static library without position-independent code into a shared object.
This patch addresses the build errors by enabling position-independent code generation for the two static libraries.