Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Error when build qwt with qt 5.1.1(mingw48)
QtWS25 Last Chance

Error when build qwt with qt 5.1.1(mingw48)

Scheduled Pinned Locked Moved 3rd Party Software
5 Posts 4 Posters 8.2k Views
  • 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.
  • C Offline
    C Offline
    cokefish
    wrote on last edited by
    #1

    Environment:
    Windows7 64bit
    Qt: qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline.exe
    install to C:\Qt\Qt5.1.1
    qwt: qwt-6.1.0.zip (http://sourceforge.net/projects/qwt/files/qwt/6.1.0/qwt-6.1.0.zip/download)
    install to C:\qwt-6.1.0

    instruction followed: http://qwt.sourceforge.net/qwtinstall.html

    issue:
    I have try sometimes to build the qwt, build it always give me a failed result, show that some library could not be found,
    WHILE I can find them in Qt install directory, for example
    Qt5OpenGL.dll exist in @C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin@

    and the same with Qt5Svg.dll, Qt5PrintSupport.dll, Qt5Widgets.dll, Qt5Concurrent.dll, Qt5Gui.dll, Qt5Core.dll

    the compile output message is shown as below
    @
    compiling moc/moc_qwt_thermo.cpp
    moc qwt_wheel.h
    compiling moc/moc_qwt_wheel.cpp
    linking ../lib/qwt.dll
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5OpenGL
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Svg
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5PrintSupport
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Widgets
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Concurrent
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Gui
    c:/qt/qt5.1.1/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lQt5Core
    collect2.exe: error: ld returned 1 exit status
    Makefile.Release:320: recipe for target '../lib/qwt.dll' failed
    mingw32-make[2]: *** [../lib/qwt.dll] Error 1
    mingw32-make[2]: Leaving directory 'c:/qwt-6.1.0/src'
    Makefile:38: recipe for target 'release-all' failed
    mingw32-make[1]: *** [release-all] Error 2
    mingw32-make[1]: Leaving directory 'c:/qwt-6.1.0/src'
    makefile:41: recipe for target 'sub-src-make_first-ordered' failed
    mingw32-make: *** [sub-src-make_first-ordered] Error 2
    10:22:44: The process "C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project qwt (kit: Desktop Qt 5.1.1 MinGW 32bit)
    When executing step 'Make'
    10:22:44: Elapsed time: 11:30.
    @

    [moved to 3rd party Software, koahnig]

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chenlong12580
      wrote on last edited by
      #2

      Please check whether you have the right to set the environment variable

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cokefish
        wrote on last edited by
        #3

        Which environment variable?
        would you please show some details? Thank you.

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

          Hi cokefish,

          Creating a system environment called LIBRARY_PATH and setting it to C:\Qt\5.1.1\mingw48_32\bin solved the problem for me.

          On your system, you may have to set the LIBRARY_PATH environment variable to C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin

          1 Reply Last reply
          0
          • S Offline
            S Offline
            silviutp
            wrote on last edited by
            #5

            [quote author="SurlyDuff" date="1380686616"]Hi cokefish,

            Creating a system environment called LIBRARY_PATH and setting it to C:\Qt\5.1.1\mingw48_32\bin solved the problem for me.

            On your system, you may have to set the LIBRARY_PATH environment variable to C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin[/quote]

            solved it for me too, thank you!

            I have another question. Before trying setting the LIBRARY_PATH variable I've added LIBS += -L"QTLIBDIR..." in the qwt.pro file. Why didn't this work ?

            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