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

Basic Qt project failed on Linking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 1.13.1
    • General
    • None
    • ArchLinux x64
    • Linux/X11

    Description

      Created a simple Qt project through QtCreator 4.10. Weird stuff is added to the end of the linking command. Happens also when build in command line. Here is the output

       

      20:56:35: Running steps for project test_qt_qbs...

      linking test_qt_qbs [test_qt_qbs]

      /usr/bin/g++ -Wl,-m,elf_x86_64 -m64 -o /mnt/Documents/Projects/C+/build/test_qt_qbs-Desktop-Debug/Debug/test-qt-qbs.bd05f172/test_qt_qbs /mnt/Documents/Projects/C/build/test_qt_qbs-Desktop-Debug/Debug/test-qt-qbs.bd05f172/3a52ce780950d4d9/main.cpp.o /mnt/Documents/Projects/C/build/test_qt_qbs-Desktop-Debug/Debug/test-qt-qbs.bd05f172/3a52ce780950d4d9/mainwindow.cpp.o /mnt/Documents/Projects/C+/build/test_qt_qbs-Desktop-Debug/Debug/test-qt-qbs.bd05f172/73489b871e127538/moc_mainwindow.cpp.o /usr/lib/libQt5Widgets.so.5.13.1 /usr/lib/libQt5Gui.so.5.13.1 /usr/lib/libQt5Core.so.5.13.1 -lpthread '-lpthread;' /usr/lib/libQt5Core.so '/usr/lib/libQt5Core.so;-lpthread;' /usr/lib/libQt5Gui.so '/usr/lib/libQt5Gui.so;$$[QT_INSTALL_LIBS]/libQt5Core.so;-lpthread;'

      g++: error: /usr/lib/libQt5Core.so;-lpthread;: No such file or directory

      g++: error: /usr/lib/libQt5Gui.so;$$[QT_INSTALL_LIBS]/libQt5Core.so;-lpthread;: No such file or directory

      Process failed with exit code 1.

      The following products could not be built for configuration Debug:

      test_qt_qbs

      Error while building/deploying project test_qt_qbs (kit: Desktop)

      When executing step "Qbs Build"

      20:56:35: Elapsed time: 00:00.

      Attachments

        1. mainwindow.cpp
          0.2 kB
        2. mainwindow.h
          0.3 kB
        3. mainwindow.ui
          0.5 kB
        4. test_qt_qbs.qbs
          1.0 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kandeler Christian Kandeler
              mehdioa mehdioa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes