setting libs for different targets

  • 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


  • Lifetime Qt Champion


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

  • Hi,

    Thx, I found it:

    unix: {
        linux-g++-64 {
            LIBS += -lncurses -ltinfo
        linux-arm-gnueabi-g++ {
            LIBS += -L/home/zamek/embedded/wandboard/rootfs/current/lib/arm-linux-gnueabihf -lncurses -ltinfo


  • Lifetime Qt Champion

    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 :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.