PDA

View Full Version : unknown option



anoopmj
1st July 2010, 17:05
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?

SixDegrees
1st July 2010, 17:18
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.

anoopmj
1st July 2010, 17:20
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