Can't link a Library
I'm using Ubuntu 17.04 and the latest UE4 4.16.
I have a C++ library I want to include in my project, yet UE4 doesn't seem to link the library correctly and gives me this error:
From the beginning:
I edited the build.cs to include the library by adding these lines:
I compiled the project and it compiled fine, but when running it would fail and say the library was missing. After digging around I put the library in the Binaries folder and that solved the problem.
But even after compiling and finding the library, during UE4 is starting up it fails with the above error...
How can I fix this?
asked Jun 27 '17 at 07:30 PM in Linux
The only solution I found is to copy paste the code into a UE4 Plugin and compile it from there.
Basically, unless you have a extern "C" library (which I don't), the library needs to be compiled using the same libraries as the engine. (aka compatibility issues...)
answered Sep 11 '17 at 12:06 PM
You might be affected by a bug with how UBT calculates RPATH for the libraries. In Engine/Sources/Programs/UnrealBuildTool/Linux/LinuxToolchain.cs, try replacing line 1117 (or so) with
(instead of current
answered Jun 27 '17 at 08:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here