Relative Content

Tag Archive for qtubuntucmake

Issue with Separating Dynamic Library and Executable Targets in CMake Project on Ubuntu 22.04 + GCC + Qt

I have a CMake project that works perfectly on Windows. However, when I try to build it on Ubuntu 22.04 with GCC, I encounter runtime errors. The project consists of a dynamic library and an executable. If I place the source code for both the library and the executable together, the build and execution succeed. But when I separate them into distinct targets (a dynamic library and an executable), the build succeeds, but the executable fails at runtime.