[Qt-interest] qwt example
Sean Harmer
sean.harmer at maps-technology.com
Sun May 3 13:34:23 CEST 2009
Stefanos Antaris wrote:
> The exact path of the qwt files and libs is:/Users/santaris/qwt-5.2.
>
> I write this on my .pro file but it doesn't work
> [code]
> INCLUDEPATH += /Users/santaris/qwt-5.2/lib
> LIBS+= -lqwt
>
> [/code]
>
> and nothing else and i have the following error:
> :-1: error: collect2: ld returned 1 exit status
>
> Someone help me.How could i use the qwt libraries in qt Creator?
>
You are not properly telling qmake where to find the headers and
libraries. You are mixng the two up in your example. Try this snippet
instead:
INCLUDEPATH += /Users/santaris/qwt-5.2/include
LIBS += -L/Users/santaris/qwt-5.2/lib -lqwt
Now the buidl system will be able to find both the header files and the library and also know which library to link against.
HTH,
Sean
More information about the Qt-interest-old
mailing list