Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to link 3rd party library to project?

How to link 3rd party library to project?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 340 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JOnathanJOnesJ Offline
    JOnathanJOnesJ Offline
    JOnathanJOnes
    wrote on last edited by SGaist
    #1

    Hello!

    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]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved