Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Unable to build project with JOM in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Unable to build project with JOM in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 6.5k Views 2 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.
  • R Offline
    R Offline
    RomarioRios
    wrote on last edited by
    #1

    I'm trying to build a project with MSVC 2013 and Qt Creator 4.4.0 with JOM and was having issues to configure JOM. So, I tried to erase Qt Creator's configuration files completely and start from scratch.

    In the fresh Qt configuration, after I opened the project, I set the CMake (3.9.3) location and ran CMake on the project. Unfortunately, by default, the Qt 5.6.3 Kit seems to choose the NMake generator instead of the NMake JOM generator. After deleting the build directory, I changed the generator to NMake JOM in the Kit configurations, but met the following error message:

    CMake Error: Generator: execution of make failed. Make command was: "jom" "/NOLOGO" "cmTC_276f9\fast"
    

    Any idea of why this is happening? As far as I remember, Qt Creator is supposed to build the projects with JOM.

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How did you install Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RomarioRios
        wrote on last edited by
        #3

        Via the online installer

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have the same situation with a more recent version of Qt ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RomarioRios
            wrote on last edited by
            #5

            Yup. Same situation with Qt 5.9.1

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rmam
              wrote on last edited by rmam
              #6

              I've just installed Qt Creator 4.6.2 on Windows 10 and when I tried to build the first project I've also experienced a similar problem.

              Here's Qt Creator's output:

              C:\Program Files\CMake\share\cmake-3.12\Modules\CMakeTestCCompiler.cmake:52: error: The C compiler "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.14.26428/bin/HostX86/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/rmam/AppData/Local/Temp/QtCreator-WwNhAr/qtc-cmake-cZffZkom/CMakeFiles/CMakeTmp Run Build Command:"jom" "/nologo" "cmTC_2b1c8\fast" The system cannot find the file specified Generator: execution of make failed. Make command was: "jom" "/nologo" "cmTC_2b1c8\fast"
              

              edit: after adding Qt Creator's bin directory to the system path ( i.e. if Qt is installed in C:\Qt then it's C:\Qt\Tools\QtCreator\bin ) the build proceeded as expected. This agrees with Qt's FAQ entry on Qt Creator not finding a helper application, such as Git or a compiler, which suggests checking if the application is in the system PATH.

              Qt Creator enables users to add entries to the PATH environment variable that are specific to each cmake project through the "Projects" menu -> "Build", and in the bottom part of the form in the "Build Environment" section click on "Details" and add entries to the PATH environment variable.

              Having said that, how exactly can Qt Creator fail to include Qt Creator's bin folder in Qt Creator's PATH environment variable?

              1 Reply Last reply
              3

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved