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

fails to build qbs with mingw-builds due to wrong linking option provided to psapi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.4.1
    • 1.4.0
    • General
    • None
    • Built with mingw-builds 5.1.0
    • a962e43e51d49dff577095a3b8ae4632056b8aa1

    Description

      During building Qt Creator 3.4.1 with mingw32-make with mingw-builds, qbs cannot be built due to errors saying "Psapi.lib is not found."

      I don't know which project file I should change, but my workaround is that changing Makefile.Debug / Makefile.Release which reside at src/shared/qbs/src/lib/corelib, after "qmake -r" command from the directory I extracted the source codes.

      You can see the following line by searching for "Psapi.lib":

      LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 Psapi.lib -LD:/Components/Qt-5.4.2-MinGW32-5.1.0R0/qtbase/lib -lQt5Script -lQt5Gui -lQt5Xml -lQt5Core release\qbscore_resource_res.o

      And you've got to change the line as follows to solve the issue.

      LIBS = -lglu32 -lopengl32 -lgdi32 -luser32 -lpsapi -LD:/Components/Qt-5.4.2-MinGW32-5.1.0R0/qtbase/lib -lQt5Script -lQt5Gui -lQt5Xml -lQt5Core release\qbscore_resource_res.o

      Please review qbs build system so that it can be successfully built with mingw-builds.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            teminian Robert Teminian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes