Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] qmake's dir-separator incompatible with vanilla mingw32-make?

[SOLVED] qmake's dir-separator incompatible with vanilla mingw32-make?

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 4.2k Views 1 Watching
  • 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.
  • JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #1

    EDIT: It was a bug in mingw32-make. They've released a fixed version on 2 September 2012.

    Hi all, I bit the bullet and leapt from QtSDK 1.2.1 to the manually-installed Qt 4.8.2 + Qt Creator 2.5. I configured it to use the latest MinGW toolchain (from sourceforge.net). Problem: Makefile.debug, generated by qmake, contains this line...
    @
    DESTDIR_TARGET = debug\myapp.exe
    @

    ... which causes Make to trip over:
    @
    mingw32-make[1]: *** No rule to make target 'debugmyapp.exe', needed by 'all'. Stop.
    @

    The separator got swallowed up! These 2 workarounds let my project compile successfully:

    I replace my version of mingw32-make (GNU Make 3.82.90) with the version bundled with QtSDK (GNU Make 3.81), OR

    I modify the separator in Makefile.debug: "DESTDIR_TARGET = debug/myapp.exe"

    Questions:

    Is this a bug in the latest mingw32-make?

    Was the QtSDK's version of mingw32-make modified?

    Has anyone else encountered this?

    Thanks!

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Please use '/' as path separators in qmake (and for Qt's C++ classes that require pathes).

      1 Reply Last reply
      0
      • JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        [quote author="Tobias Hunger" date="1346491265"]Please use '/' as path separators in qmake (and for Qt's C++ classes that require pathes).[/quote]Hi Tobias,

        I did not manually pass any paths into qmake. All path configurations were either auto-detected from my system environment, or "browsed to" from Qt Creator's GUI. My .pro file and source code contained no path separators.

        qmake was the one that produced the '' separator in my Makefile.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Oh, right... IIRC there was something about needing a different kind of makefile for mingw make and msvc make. Sorry, I can't help more, Windows is just too messy to work on for my taste:-)

          Edit: You could try passing "-unix" to qmake when running it.

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            That's ok, thanks for your suggestions :)

            "-unix" does create a Makefile with '/' separators, which fixes compilation, but breaks the ability to CLEAN the project. Also, qmake complains that "-unix is deprecated".

            I guess I'll stick to the mingw32-make that I transplanted from QtSDK for now

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Turns out that the separator was disappearing due to a bug in mingw32-make. It's fixed in "today's release":http://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.82.90-cvs/

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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