You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compile Aquila step by step as the guide (installation-guides/install-aquila.md) said. But when I use it in QT project, it failed to compile.
Aquila/lib//libAquila.a(SignalSource.cpp.o): relocation R_X86_64_32 against `_ZTVN6Aquila12SignalSourceE' can not be used when making a shared object; recompile with -fPIC
Is it an issue?
How could I fix it?
The text was updated successfully, but these errors were encountered:
You can't just link a static library (libAquila.a) into a shared object unless it's specifically prepared for that use case, see this SO question. To not meddle with the source code of Aquila, instruct CMake to build a shared library instead: cmake .. -DBUILD_SHARED_LIBS=ON. You should see a libAquila.so in your build folder.
If that fails, add the following after these lines:
I compile Aquila step by step as the guide (installation-guides/install-aquila.md) said. But when I use it in QT project, it failed to compile.
Aquila/lib//libAquila.a(SignalSource.cpp.o): relocation R_X86_64_32 against `_ZTVN6Aquila12SignalSourceE' can not be used when making a shared object; recompile with -fPIC
Is it an issue?
How could I fix it?
The text was updated successfully, but these errors were encountered: