Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Neither Jom nor nmake work anymore

Neither Jom nor nmake work anymore

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 3.1k 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.
  • nulluseN Offline
    nulluseN Offline
    nulluse
    wrote on last edited by
    #1

    The source code I am working with was updated and I pulled the commit from SVN.
    This was built fine on another Windows machine using MingW, but this one uses VS2013 and it did not build. Lots of linker errors for no obvious reason.
    I closed QtCreator and when re-started it, it no longer tried to build.
    Instead it threw the errors:

    17:41:50: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe" 
    	C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
    	link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:debug\MandelbrotQt.exe @C:\Users\user0\AppData\Local\Temp\MandelbrotQt.exe.15864.47.jom
    'link' is not recognized as an internal or external command,
    operable program or batch file.
    

    After turning off jom in the settings:

    17:35:45: Running steps for project MandelbrotQt...
    17:35:45: Configuration unchanged, skipping qmake step.
    17:35:45: Could not start process "nmake.exe" 
    Error while building/deploying project MandelbrotQt (kit: Desktop Qt 5.6.0 MSVC2013 64bit)
    When executing step "Make"
    17:35:45: Elapsed time: 00:00.
    

    It sounds like link disappeared and nmake does not exist at all. I was building on this machine for at least a week without issues. Does anyone have any idea why it cannot link anymore?

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

      Hi,

      Might be a silly question but do you have Visual Studio 2013 installed on that machine ?

      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
      • nulluseN Offline
        nulluseN Offline
        nulluse
        wrote on last edited by
        #3

        Not silly at all: Yes and no.
        This may sound strange, but the only version of VS that were intentionally installed were 2005, 2008, 2010 and 2012. They are listed in this order under Programs and Features.
        But after installing AMD OpenCL SDK I suddenly have VS 2013 installed and it is now registered as a default association for the .sln files.
        Is it messing up Qt kits?

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

          Looks strange to say the least. Microsoft is the only Visual Studio provider.

          Is it really a full VS 2013 installation ? Or did just the OpenCL SDK modify some stuff ?

          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
          • nulluseN nulluse

            Not silly at all: Yes and no.
            This may sound strange, but the only version of VS that were intentionally installed were 2005, 2008, 2010 and 2012. They are listed in this order under Programs and Features.
            But after installing AMD OpenCL SDK I suddenly have VS 2013 installed and it is now registered as a default association for the .sln files.
            Is it messing up Qt kits?

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @nulluse
            Are you sure you're not mistaking the MSVC runtimes with visual studio? It'd be very, very odd to have so many visual studios installed ... and also it would explain why a new entry has appeared after installing the AMD SDK, they (AMD) may bring and install the redistributables with their installer.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            0
            • nulluseN Offline
              nulluseN Offline
              nulluse
              wrote on last edited by
              #6

              This is a development machine with history, no surprise here.

              kshegunovK 1 Reply Last reply
              0
              • nulluseN nulluse

                This is a development machine with history, no surprise here.

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on last edited by
                #7

                @nulluse
                A long, long history it seems ... Anyway, the only thing I could think of that somehow the PATH (or the VS bat scripts providing the necessary environment) somehow got screwed up.

                Read and abide by the Qt Code of Conduct

                1 Reply Last reply
                0
                • nulluseN Offline
                  nulluseN Offline
                  nulluse
                  wrote on last edited by
                  #8

                  It appears as if AMD OpenCL SDK absolutely devastates this machine.
                  Uninstalled and everything worked again. And it is not even the fact that it adds path values over 2048 characters - it simply destroys Visual Studio and it has to be repaired from media even if I restore the path to the original.

                  It does not seem to have any negative effect on another Windows 7 machine I use for development, but it has MingW and no VS, so it's VS thing only. Anyhow, removing OpenCL SDK and repairing VS restored the ability of Qt Creator to build the project (having commented out OpenCL stuff of course).

                  kshegunovK 1 Reply Last reply
                  0
                  • nulluseN nulluse

                    It appears as if AMD OpenCL SDK absolutely devastates this machine.
                    Uninstalled and everything worked again. And it is not even the fact that it adds path values over 2048 characters - it simply destroys Visual Studio and it has to be repaired from media even if I restore the path to the original.

                    It does not seem to have any negative effect on another Windows 7 machine I use for development, but it has MingW and no VS, so it's VS thing only. Anyhow, removing OpenCL SDK and repairing VS restored the ability of Qt Creator to build the project (having commented out OpenCL stuff of course).

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on last edited by
                    #9

                    @nulluse

                    And it is not even the fact that it adds path values over 2048 characters

                    The length of the path is inconsequential. I just recently had to look up the limits, so here they are.

                    Read and abide by the Qt Code of Conduct

                    1 Reply Last reply
                    0
                    • nulluseN Offline
                      nulluseN Offline
                      nulluse
                      wrote on last edited by
                      #10

                      Those are the registry key limits, PATH is different.

                      It's 32KB for the OS and applications, but 2048 for CMD.EXE
                      And if your PATH is set to > 2048 characters, CMD will behave unpredictably so it seems. In my case it thought there was the 1st path before the semicolon there only and nothing else.

                      Everything running in the CMD window was affected and acted as %windir%* did not exist.

                      Robustness of MS software knows no limits (lower ones).

                      kshegunovK 1 Reply Last reply
                      0
                      • nulluseN nulluse

                        Those are the registry key limits, PATH is different.

                        It's 32KB for the OS and applications, but 2048 for CMD.EXE
                        And if your PATH is set to > 2048 characters, CMD will behave unpredictably so it seems. In my case it thought there was the 1st path before the semicolon there only and nothing else.

                        Everything running in the CMD window was affected and acted as %windir%* did not exist.

                        Robustness of MS software knows no limits (lower ones).

                        kshegunovK Offline
                        kshegunovK Offline
                        kshegunov
                        Moderators
                        wrote on last edited by kshegunov
                        #11

                        @nulluse

                        Those are the registry key limits, PATH is different.

                        The PATH is a registry value.

                        And if your PATH is set to > 2048 characters, CMD will behave unpredictably so it seems.

                        I don't develop actively on windows, but I read on the internet the same thing. However on my development win (win 7) the path was over 2048 characters and I don't experience anything unusual. I would like to see what M$ says on the matter, but wasn't able to find anything definitive for the PATH in MSDN.

                        Robustness of MS software knows no limits

                        Amen!

                        Read and abide by the Qt Code of Conduct

                        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