Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-703

Failed linking with Qt 4.x and MinGW toolchain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 1.3.3
    • 1.3.2
    • None
    • * Windows 8.1 x32
      * Qt qt-opensource-windows-x86-mingw482-4.8.6-1.exe
      * QtCreator 3.2.2 (with integrated Qbs)
    • 620ded809355d43b00723349539171618e8e668e (QtC)

      Attempt to build (from QtCreator 3.2.2) of the simple QBS example "qbs\examples\helloworld-qt" failed with error:

      15:56:38: Running steps for project hello...
      compiling main.cpp
      linking HelloWorld-Qt.exe
      C:/mingw32/bin/i686-w64-mingw32-g++.exe -m32 -O2 -Wall -Wextra E:/git/ng/qbs/examples/build-helloworld-qt/qtc_Desktop_4_8_6_mingw-release/HelloWorld-Qt.qtc_Desktop_4_8_6_mingw/.obj/main.cpp.o -o E:/git/ng/qbs/examples/build-helloworld-qt/qtc_Desktop_4_8_6_mingw-release/HelloWorld-Qt.qtc_Desktop_4_8_6_mingw/HelloWorld-Qt.exe -LC:/Qt/4.8.6-mingw/lib -LC:/Qt/4.8.6-mingw/plugins/platforms -l -lqtmain "-Wl,--unresolved-symbols=ignore-in-shared-libs"
      C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -l-lqtmain
      collect2.exe: error: ld returned 1 exit status
      Process failed with exit code 1.
      The following products could not be built for configuration qtc_Desktop_4_8_6_mingw-release:
      	HelloWorld-Qt
      Error while building/deploying project hello (kit: Desktop 4.8.6 (mingw))
      When executing step ""
      15:56:38: Elapsed time: 00:01.
      

      PS: Seems it can't resolve of Qt run-time libraries correctly, similar previous issue with MSVC: QBS-689

        1. core.qbs
          14 kB
          Denis Shienkov
        2. core-3.3.0-rc-12-11-2014.qbs
          14 kB
          Denis Shienkov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes