Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qmake can't generator .stash file
Qt 6.12 LTS is out! See what's new in the release blog

qmake can't generator .stash file

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 576 Views
  • 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.
  • H Offline
    H Offline
    hello_tyggylpp
    wrote last edited by
    #1

    After installing the 64-bit MinGW suite, I encountered the following output when using QMAKE: "Project ERROR: failed to parse default search paths from compiler output." I checked the .qmake.stash file and it appears incomplete:
    QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
    QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7
    QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3
    QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
    QMAKE_CXX.COMPILER_MACROS =
    QT_COMPILER_STDCXX
    QMAKE_GCC_MAJOR_VERSION
    QMAKE_GCC_MINOR_VERSION
    QMAKE_GCC_PATCH_VERSION
    It looks like the corresponding CXX path was not found. Here is the complete .qmake.stash file:
    QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
    QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7
    QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3
    QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
    QMAKE_CXX.COMPILER_MACROS =
    QT_COMPILER_STDCXX
    QMAKE_GCC_MAJOR_VERSION
    QMAKE_GCC_MINOR_VERSION
    QMAKE_GCC_PATCH_VERSION
    QMAKE_CXX.INCDIRS =
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \ C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed
    C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/include
    QMAKE_CXX.LIBDIRS =
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0
    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc
    C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/lib
    C:/Qt/Qt5.14.2/Tools/mingw73

    I am aware that the toolkits in the two files mentioned above are inconsistent; I am simply using them as an example. What are the steps involved when QMake generates the .qmake.stash file? Which environment variables should be set? The MSVC toolchain on my machine works correctly; could it be that the GCC compiler isn't being detected because the MSVC compiler is being found first?

    jsulmJ 1 Reply Last reply
    0
    • H hello_tyggylpp

      After installing the 64-bit MinGW suite, I encountered the following output when using QMAKE: "Project ERROR: failed to parse default search paths from compiler output." I checked the .qmake.stash file and it appears incomplete:
      QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
      QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7
      QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3
      QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
      QMAKE_CXX.COMPILER_MACROS =
      QT_COMPILER_STDCXX
      QMAKE_GCC_MAJOR_VERSION
      QMAKE_GCC_MINOR_VERSION
      QMAKE_GCC_PATCH_VERSION
      It looks like the corresponding CXX path was not found. Here is the complete .qmake.stash file:
      QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
      QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7
      QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3
      QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
      QMAKE_CXX.COMPILER_MACROS =
      QT_COMPILER_STDCXX
      QMAKE_GCC_MAJOR_VERSION
      QMAKE_GCC_MINOR_VERSION
      QMAKE_GCC_PATCH_VERSION
      QMAKE_CXX.INCDIRS =
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \ C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed
      C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/include
      QMAKE_CXX.LIBDIRS =
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0
      C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc
      C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/lib
      C:/Qt/Qt5.14.2/Tools/mingw73

      I am aware that the toolkits in the two files mentioned above are inconsistent; I am simply using them as an example. What are the steps involved when QMake generates the .qmake.stash file? Which environment variables should be set? The MSVC toolchain on my machine works correctly; could it be that the GCC compiler isn't being detected because the MSVC compiler is being found first?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote last edited by
      #2

      @hello_tyggylpp How do you call qmake (manually or in QtCreator)?
      Any reason to still use Qt5 (not even the latest Qt5 version)?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      0
      • jsulmJ jsulm

        @hello_tyggylpp How do you call qmake (manually or in QtCreator)?
        Any reason to still use Qt5 (not even the latest Qt5 version)?

        H Offline
        H Offline
        hello_tyggylpp
        wrote last edited by hello_tyggylpp
        #3

        @jsulm qtcreator,and qt5.14.2 mingw shell all not work.qt5.12.2 qt5.14 same.

        jsulmJ 1 Reply Last reply
        0
        • H hello_tyggylpp

          @jsulm qtcreator,and qt5.14.2 mingw shell all not work.qt5.12.2 qt5.14 same.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote last edited by
          #4

          @hello_tyggylpp Do you call qmake from the preconfigured terminal provided by the Qt installation?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 1 Reply Last reply
          0
          • jsulmJ jsulm

            @hello_tyggylpp Do you call qmake from the preconfigured terminal provided by the Qt installation?

            H Offline
            H Offline
            hello_tyggylpp
            wrote last edited by hello_tyggylpp
            #5

            @jsulm yes.
            Setting up environment for Qt usage...

            C:\Qt\Qt5.14.2\5.14.2\mingw73_32>qmake --version
            QMake version 3.1
            Using Qt version 5.14.2 in C:/Qt/Qt5.14.2/5.14.2/mingw73_32/lib

            C:\Qt\Qt5.14.2\5.14.2\mingw73_32>cd D:\tmp\untitled22

            C:\Qt\Qt5.14.2\5.14.2\mingw73_32>cd /d D:\tmp\untitled22

            D:\tmp\untitled22>mkdir build

            D:\tmp\untitled22>cd build

            D:\tmp\untitled22\build>qmake.exe ../untitled22.pro -spec win32-g++
            Info: creating stash file D:\tmp\untitled22\build.qmake.stash
            Project ERROR: failed to parse default search paths from compiler output

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote last edited by
              #6

              Is the correct gcc in the PATH? What does 'gcc --version' prints out?

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              H 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                Is the correct gcc in the PATH? What does 'gcc --version' prints out?

                H Offline
                H Offline
                hello_tyggylpp
                wrote last edited by
                #7

                @Christian-Ehrlicher Setting up environment for Qt usage...

                C:\Qt\Qt5.14.2\5.14.2\mingw73_64>gcc --version
                gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
                Copyright (C) 2017 Free Software Foundation, Inc.
                This is free software; see the source for copying conditions. There is NO
                warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                C:\Qt\Qt5.14.2\5.14.2\mingw73_64>

                JonBJ 1 Reply Last reply
                0
                • Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  Ok, I hoped that there is another gcc in the PATH or something like this.
                  In the current sources your error messsage is no longer available so it's hard to find out what's going wrong here and I didn't use qmake since maybe 15 years... Search for 'failed to parse default search paths from compiler output' in the mkspecs subdirectory of your Qt installation to see why it is triggered.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  0
                  • H hello_tyggylpp

                    @Christian-Ehrlicher Setting up environment for Qt usage...

                    C:\Qt\Qt5.14.2\5.14.2\mingw73_64>gcc --version
                    gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 7.3.0
                    Copyright (C) 2017 Free Software Foundation, Inc.
                    This is free software; see the source for copying conditions. There is NO
                    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                    C:\Qt\Qt5.14.2\5.14.2\mingw73_64>

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote last edited by JonB
                    #9

                    @hello_tyggylpp
                    I know nothing about this. But:

                    • You say your file is "incomplete" and stops at QMAKE_GCC_PATCH_VERSION.
                    • You say the "complete" file should have QMAKE_CXX.INCDIRS = ... next.
                    • You can see that the value for that as shown in your paste is "clearly" (at least to me) wrong
                    QMAKE_CXX.INCDIRS =
                    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++
                    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/x86_64-w64-mingw32 \ C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include/c++/backward
                    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include
                    C:/Qt/Qt5.14.2/Tools/mingw730_64/lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed
                    C:/Qt/Qt5.14.2/Tools/mingw730_64/x86_64-w64-mingw32/include
                    

                    I have copied & pasted what you have written/pasted. You should always paste code/output into this forum inside the forum's code tags (the </> toolbar button or inside ``` or ` blocks). I suggest you repaste "the complete .qmake.stash file:" using the correct tags/verbatim if you want you/us to see whether it is indeed incorrect as it currently appears to be.

                    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
                    • Unsolved