I'm trying to build some examples. when i'm building in /usr/local everything works just fine and every example compiles. But if I try to build the examples in QT Creator or in another folder like Download Folder the example doesnt compile and is throwing errors like hell. For example:
scrollzoomer.cpp:68:25: Fehler: »class QwtPlotLayout« hat kein Element namens »setAlignCanvasToScale«
(class QwtPlotLayout has no element named setAlign....)
I tried alot of things but i dont get it to work. Has someone a hint? Im afraid that this question was asked before but i didnt find an answer that fits.
Greetings snprr
EDIT:
It seems like I can solve it by adding this stuff to the *.pro:
Qt Code:
unix:!macx:!symbian: LIBS += -L$$PWD/../../../../../../usr/local/qwt-6.1.0/lib/ -lqwt INCLUDEPATH += $$PWD/../../../../../../usr/local/qwt-6.1.0/include DEPENDPATH += $$PWD/../../../../../../usr/local/qwt-6.1.0/includeTo copy to clipboard, switch view to plain text mode
but is there any way to avoid that? I think "Config += qwt" is quite a lot easier
Bookmarks