How to add the external libraries in the .pro file



  • Hi,
    In my project am using qwt to plot the graph. In gui mode my project is running successfully. but when i am trying to cross compiling it is showing error like "qwt is not declared in the scope". please anybody tell me how to configure the qwt for the cross compiling. it will be more helpful for me.



  • you can do it by this way...

    INCLUDEPATH += /yourpath/qwt-6.0.1/include
    LIBS += -L /yourpath/qwt-6.0.1/lib -lqwt



  • Hi,
    i have included these in my .pro file and it is working in my pc. but when i try to cross compile i am getting the following error

    @mainwindow.cpp:6:22: error: qwt_plot.h: No such file or directory

    | mainwindow.cpp:7:28: error: qwt_plot_curve.h: No such file or directory
    | mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
    | mainwindow.cpp:36: error: 'QwtPlot' was not declared in this scope
    | mainwindow.cpp:36: error: 'myPlot' was not declared in this scope
    | mainwindow.cpp:36: error: expected type-specifier before 'QwtPlot'
    | mainwindow.cpp:36: error: expected ;' before 'QwtPlot' | mainwindow.cpp:51: error: 'QwtPlotCurve' was not declared in this scope | mainwindow.cpp:51: error: 'curve1' was not declared in this scope | mainwindow.cpp:51: error: expected type-specifier before 'QwtPlotCurve' | mainwindow.cpp:51: error: expected;' before 'QwtPlotCurve'
    @



  • one good thing is that it worked on your machine.
    Now the next problem is of cross compiling, but as far as think this should work....
    anyways let me check i will get back to you asap.



  • thank u shoyeb



  • u got the solution ?



  • no not yet



  • Hi shoyeb,
    did u got the solution for this



  • no but can u just check this link this might help you...

    http://developer.qt.nokia.com/forums/viewthread/14625/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.