Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to link 3rd party library to project?
JOnathanJOnes last edited by SGaist
I am writing an ubuntu touch app (Ubuntu phone). In this app i use a 3rd party library. I cross compiled the library for using on arm architectures. Now i need to link the library (.so file) to my project. The problem here is, that the developing directory structure is different than the system on the phone.
On the development pc, the directory stucture is like: project/lib/nameOfLib/lib/soFile.so
ON the phone the directory structure is like: /opt/click-package/project/lib/soFile.so
I tryed to use
LIBS += -L$$PWD/project/lib/nameOfLib/lib -llib
I get 2 error messages:
- One time there is the message, that the lib file is not found on the phone
- Another time i get the message, that a symbol is not found in the lib.
My question is. If there are two different directory sturctures i need to handle with, what do i have to do to link the library to my project, so that it is found on the phone as well?
[edit: Fixed coding style SGaist]