Third party libraries plugin in linux
Hello, I'm trying to include some libraries as a (project) plugin under linux and I am facing many issues. This is the first one (this post is already way too long and I want to keep it as clean as possible)
First things first, I made my own simple libfoo, compiled as static library libfoo.a with its own header foo.h.
My directory structure is the following:
MyProject.Build.cs looks like
myplugin.cpp and myplugin.h are left untouched,
while myplugin.Build.cs looks like
So far, so good. I can include and "use" the foo library functionalities in my project.
At this point, I tried to include a real library, the one that I really need (liblcm).
I've compiled the library as static, copied the .a and the headers in the same folder structure showed before. At the end, I have the following structure
And I've modified my myplugin.Build.cs accordingly (not the most elegant solution, but it seems at least correct to me):
At this point, I can still include libfoo headers as
but there is no way I can do the same with liblcm headers.
The only way I've found to be able to include my headers is by doing so
Is that normal? Am I doing something wrong?
I also invoke GenerateProjectFiles.sh MyProject.uproject -game -engine which seems to generate the right CMakeLists.txt.
Although, MyProjectIncludes.pri for QtCreator or the .kdev4/Includes.txt for KDevelop are wrong while MyProjectCodeCompletionFolders.txt seems to be right, which is kinda annoying but it is not that fundamental right now.
Thanks, sorry for the verbosity.
apparently, works, or better, apparently the includes works. It's mostly a matter of executing the operations in the right order.
(I have another issue now related to lcm library but it's completely different topic)
answered Feb 21 '18 at 04:54 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here