Results 1 to 3 of 3

Thread: unknown option

  1. #1
    Join Date
    Jun 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    MacOS X

    Default unknown option

    Hi Guys,

    I have this error on my code:

    code:
    unix {
    INCLUDEPATH += ../mediator ../common ../engine
    LIBS += -L$$QWT_LIB_PATH -l$$QWT_LIB -L$$CODA_LIB_PATH -lcoda -lm
    QMAKE_LFLAGS += -Wl,-rpath=$$QWT_LIB_PATH:$$CODA_LIB_PATH
    }

    error:
    -L/usr/local/lib -lcoda -lm -framework QtAssistant -framework QtXml -framework QtGui -framework QtNetwork -framework QtCore
    ld: unknown option: -rpath=/usr/local/qwt-5.2.1/lib:/usr/local/lib
    collect2: ld returned 1 exit status
    make[1]: *** [/qdoas.app/Contents/MacOS/qdoas] Error 1
    make: *** [sub-qdoas-make_default-ordered] Error 2


    Is there an alternative to it?

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: unknown option

    The message

    ld: unknown option: -rpath=/usr/local/qwt-5.2.1/lib:/usr/local/lib
    is telling you that the linker doesn't recognize -rpath as an option. Check your ld documentation and compiler documentation on what flags the linker accepts, and how to pass them through the compiler, or if that's even an option.

  3. #3
    Join Date
    Jun 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: unknown option

    Thanks. I thought so... I was looking for a way around.

    Do you think this will work for both the libraries?

    QMAKE_LFLAGS += -Wl, -L$$QWT_LIB_PATH -L$$CODA_LIB_PATH

Similar Threads

  1. Unknown problem
    By theMVP in forum Newbie
    Replies: 3
    Last Post: 2nd July 2010, 04:50
  2. QimageReader Unknown Error
    By bhaskar in forum Newbie
    Replies: 1
    Last Post: 2nd June 2010, 08:24
  3. Pointer of an unknown type...
    By TheNewGuy in forum Newbie
    Replies: 1
    Last Post: 17th December 2009, 08:50
  4. Unknown Thread in my app is exiting
    By donglebob in forum Qt Programming
    Replies: 1
    Last Post: 9th December 2008, 09:31
  5. QWebView unknown problem
    By morfei in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2008, 00:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.