Hot to use libcryptopp und QT project under MacOS X



  • Hi,

    I have a huge problem with MacOS X 10.10

    So when I compile crypto++ i get eider a "so" file or a "a" file,
    now when i try to compile my project with the following line

    unix:QMAKE_LFLAGS += -Wl,-rpath,'$$ORIGIN'

    i get a strange error
    ld: can't map file, errno=22 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk' for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    if i remove the line i get linker errors it cant find anythiong the library exports :/

    i have ofcause added
    LIBS += -L$$OUT_PWD/../../NeoLoader/crypto++/
    LIBS += -lcryptopp

    so it seams without rpath i cant compile with a so library, and with it i get an strang error

    on an older mac with an older xcode and an older qt all that worked just fine with the rpath

    please help me solve this issie


Log in to reply
 

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