Results 1 to 1 of 1

Thread: example build only in local folder

  1. #1

    Default example build only in local folder

    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:
    1. unix:!macx:!symbian: LIBS += -L$$PWD/../../../../../../usr/local/qwt-6.1.0/lib/ -lqwt
    2.  
    3. INCLUDEPATH += $$PWD/../../../../../../usr/local/qwt-6.1.0/include
    4. DEPENDPATH += $$PWD/../../../../../../usr/local/qwt-6.1.0/include
    To 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
    Last edited by snprrr; 21st June 2013 at 22:50.

Similar Threads

  1. Replies: 0
    Last Post: 9th November 2012, 11:28
  2. Qt 4.6.3 and up Desktop-build folder
    By jzuber in forum Qt Tools
    Replies: 4
    Last Post: 30th September 2010, 20:36
  3. Replies: 2
    Last Post: 11th March 2010, 09:46
  4. Replies: 1
    Last Post: 14th July 2009, 09:28
  5. Password on local file/folder
    By icebox25 in forum Qt Programming
    Replies: 3
    Last Post: 13th April 2007, 16:33

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.