Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. setting libs for different targets
Forum Updated to NodeBB v4.3 + New Features

setting libs for different targets

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 761 Views 3 Watching
  • 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.
  • Z Offline
    Z Offline
    zamek
    wrote on last edited by
    #1

    Hi All,
    I have a project which has two targets, one for an intel x86 linux desktop and one for an arm based embedded linux.
    There are two libs which I want to use, ncurses and tinfo.
    The question is that, how can I set the different path of these libs in my .pro file, when I change target in qt creator?

    Manually I make it like this:

    unix:!macx: LIBS += -L/home/zamek/embedded/wandboard/rootfs/current/lib/arm-linux-gnueabihf -lncurses -ltinfo

    #unix:!macx: LIBS += -lncurses -ltinfo

    thx,
    Zamek

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You could use the linux-arm* scope for that path.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zamek
        wrote on last edited by zamek
        #3

        Hi,

        Thx, I found it:

        unix: {
            linux-g++-64 {
                LIBS += -lncurses -ltinfo
                message("Desktop")
            }
            linux-arm-gnueabi-g++ {
                LIBS += -L/home/zamek/embedded/wandboard/rootfs/current/lib/arm-linux-gnueabihf -lncurses -ltinfo
                message("Wandboard")
            }
        }
        
        

        thx
        Zamek

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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