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. MinGW-builds compiling 4.8.4 fails on includes using apostrophe
Qt 6.11 is out! See what's new in the release blog

MinGW-builds compiling 4.8.4 fails on includes using apostrophe

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 1 Posters 1.6k 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.
  • E Offline
    E Offline
    Ethicius
    wrote on last edited by
    #1

    Folks, I've encountered this crazy problem, which I haven't been able to solve so far. I will try to describe it as best I can, but it might be a little confusing.

    Using mingw-builds x32 4.7.2 along with msys from the same source.

    Qt configure.exe creates Makefiles which contain apostrophes to enclose include paths, i.e. -I'<path>'.

    Running jom under cmd.exe results in file not found.

    Running make under mintty/bash works fine until one runs out of memory on WebKit.

    My question has two parts:
    a) is it possible to force Qt configure.exe to generate Makefiles using -I"<path>" instead of apostrophes?
    b) is there a way to teach jom -> g++ to recognize paths enclosed in apostrophes?

    Thanks!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Ethicius
      wrote on last edited by
      #2

      So I went through the header and source files and I found out that you cannot have sh.exe in your system path.

      Details:
      affecting method static QStringList detectShellPath() in qmake\option.cpp
      affected method MingwMakefileGenerator::MingwMakefileGenerator() in qmake\generators\win32\mingw_make.cpp

      However, I am still interested in knowing why mingw g++ run under cmd.exe ignores includes defined as -I'<path>', i.e. using apostrophes, but accepts either -I<path> or -I"<path>". When run from a shell, all is nice and dandy.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Ethicius
        wrote on last edited by
        #3

        Another update:

        Building WebKit stops at a certain point with an error due to trying to include -lQtWebKit instead of -lQtWebKit4.

        And it also started using apostrophes instead of double quotes.

        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