Libs and frameworks



  • Hi
    I compile first for OSX later for Linux. Now I do: LIBS += -L/usr/bla ok but anything different for
    OSX frameworks alike libcurl.framework?
    Thanks
    Michael



  • If you use a framework on Mac OS X you need to add:

    @
    LIBS += -F/path/to/framework -framework YourLibrary
    @

    on Linux you will need to change that to

    @
    LIBS += -L/path/to/lib -lYourLibrary
    @

    You can combine everything into nice qmake scopes:

    @
    unix {
    macx {
    LIBS += -F/path/to/framework -framework YourLibrary
    } else {
    LIBS += -L/path/to/lib -lYourLibrary
    }
    }
    @



  • Thanks, now I get ~400 errors when including fstream...so something is c. wrong. Anyone would have time to look into a project from osx to compile on linux? should be very simple but im stuck with errors alike above. thanks for sending me a pm.


Log in to reply
 

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