-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared library linking fails #362
Comments
It looks like you are building PluginPlay as a shared library, but (I assume implicitly) telling PluginPlay to build Utilities as a static library without -fPIC. Is that your entire build command? Are you using a toolchain file? If so, what is the contents of your toolchain file? FWIW, the build instructions you've been using to build GhostFragment should work for building PluginPlay too. |
Sorry for the delayed reply. All I do to build any of the projects is |
I strongly recommend using a toolchain file or a build script over 'ccmake'. It's very difficult to reproduce builds done with 'ccmake'. Building static libraries is CMake's default. You will either need to set BUILD_SHARED_LIBS and/or CMAKE_POSITION_INDEPENDENT_CODE to true. I recommend doing this in a toolchain to make sure the dependencies see it. |
I will use a toolchain.cmake file from now on. The problem remedies if
|
I get this error when building with
cmake -S . -B build -DNWX_MODULE_DIRECTORY=/home/jacob/Projects/PluginPlay/install
when building with shared libraries. If the option is set to off, then the build is able to complete.The text was updated successfully, but these errors were encountered: