Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to add the external libraries in the .pro file
Forum Updated to NodeBB v4.3 + New Features

How to add the external libraries in the .pro file

Scheduled Pinned Locked Moved Installation and Deployment
9 Posts 1 Posters 9.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shoyeb
      wrote on last edited by
      #2

      you can do it by this way...

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

      There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        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'
        @

        1 Reply Last reply
        0
        • S Offline
          S Offline
          shoyeb
          wrote on last edited by
          #4

          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.

          There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            thank u shoyeb

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shoyeb
              wrote on last edited by
              #6

              u got the solution ?

              There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

              1 Reply Last reply
              0
              • ? This user is from outside of this forum
                ? This user is from outside of this forum
                Guest
                wrote on last edited by
                #7

                no not yet

                1 Reply Last reply
                0
                • ? This user is from outside of this forum
                  ? This user is from outside of this forum
                  Guest
                  wrote on last edited by
                  #8

                  Hi shoyeb,
                  did u got the solution for this

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    shoyeb
                    wrote on last edited by
                    #9

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

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

                    There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved