Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19452

Automatically set path to jom.exe for 'NMake Makefiles JOM'?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.0
    • Windows 10 64bit; Qt Creator 4.5.0.

    Description

      When I launched Qt Creator, it automatically detected my kits and opted in to using NMake Makefiles JOM as the generator. However, attempts to actually use 'jom.exe' failed (seemingly, because 'jom.exe' was not on the PATH).

      Would it be possible for Qt Creator to automatically configure the full path to 'jom.exe' when using NMake Makefiles JOM, based on the associated Qt installation?

      For reference, here's the associated CMake output (as invoked by Qt Creator)

      Running "C:\Program Files\CMake\bin\cmake.exe -E server "--pipe=\\.\pipe\{22df017f-ae02-4681-bc8e-80b03d880a12}" --experimental" in C:\Users\kevin\AppData\Local\Temp\QtCreator-asBAaO\qtc-cmake-WlsFbtGA.
      Starting to parse CMake project, using: "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe", "-DCMAKE_C_COMPILER:STRING=C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe", "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/5.9.2/msvc2015", "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/5.9.2/msvc2015/bin/qmake.exe".
      The C compiler identification is MSVC 19.0.24225.1
      The CXX compiler identification is MSVC 19.0.24225.1
      Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe
      CMake Error: Generator: execution of make failed. Make command was: "jom" "/NOLOGO" "cmTC_ee240\fast"
      Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe -- broken
      CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
        The C compiler
      
          "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/cl.exe"
      
        is not able to compile a simple test program.
      
        It fails with the following output:
      
          Change Dir: C:/Users/kevin/AppData/Local/Temp/QtCreator-asBAaO/qtc-cmake-WlsFbtGA/CMakeFiles/CMakeTmp
          
          Run Build Command:"jom" "/NOLOGO" "cmTC_ee240\fast"
          The system cannot find the file specified
          Generator: execution of make failed. Make command was: "jom" "/NOLOGO" "cmTC_ee240\fast"
          
      
        
      
        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:19 (project)
      
      
      Configuring incomplete, errors occurred!
      See also "C:/Users/kevin/AppData/Local/Temp/QtCreator-asBAaO/qtc-cmake-WlsFbtGA/CMakeFiles/CMakeOutput.log".
      See also "C:/Users/kevin/AppData/Local/Temp/QtCreator-asBAaO/qtc-cmake-WlsFbtGA/CMakeFiles/CMakeError.log".
      CMake Project parsing failed.
      

       I suspect some kind of generator expression could be used as part of the default CMake Configuration for such a kit?

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            kevinushey Kevin Ushey
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes