Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29561

Broken Makefile generation by qmake for MinGW32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.0.1
    • Build tools: qmake
    • None
    • CPU: Intel Core2Quad Q9300, RAM: 2.0GB, OS: Windows 7 Ultimate

      I downloaded the official prebuild package for MinGW32 from qt-project.org, and tried to build next source:

      bug/main.cpp
      int main() {
      	return 0;
      }
      
      bug/bug.pro
      TEMPLATE = app
      TARGET = bug
      SOURCES += main.cpp
      

      When I ran qmake and mingw32-make in 'bug' folder, I got next error message:
      g++: error: release/main.o: No such file or directory

      I found releasemain.o file in 'bug' folder, and I'm guessing the Makefile generated by qmake has some issue about slash/backslash on windows plaform.
      Actually, when I replace all backslash() in Makefile.Release with slash manually, mingw32-make works fine.
      I think there's no need for using backslash even on windows, at lease for MinGW32 (I don't know anything about nmake with msvc) because mingw32-make handles slash well and backslash can cause some ambiguation problem with backslash for new line.

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

            buddenha Oswald Buddenhagen
            xylosper Byoung-young Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes