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. jom does not run msvc

jom does not run msvc

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
12 Posts 4 Posters 357 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.
  • K Offline
    K Offline
    k0shinus
    wrote last edited by
    #1

    I have a problem with building qt app via manual scripts on the build server. When i'm running build with jom1.1.5 and Qt6 i don't see a call of msvc compiler, it's instantly goes to link.
    vcvarsall.bat finished normally, all required paths are correct in echo output. Now the execution sequence looks like

    C:\Qt\jom_1_1_5\jom.exe -f Makefile.Release
    link /NOLOGO /DYNAMICBASE...
    

    while normally it should looks like

    C:\Qt\jom_1_1_5\jom.exe -f Makefile.Release
    cl -c -nologo -Zc:wchar_t ...
    link /NOLOGO /DYNAMICBASE...
    

    Where the problem could be?

    Christian EhrlicherC 1 Reply Last reply
    0
    • K Offline
      K Offline
      k0shinus
      wrote last edited by
      #12

      I guess, i found the solution: several msvc sdk-s were missing. It fixed after i installed them and changed jom to qt-creator bundled. It's still a bit strange, but i think we can live with this. Thank you everyone!

      1 Reply Last reply
      0
      • K k0shinus

        I have a problem with building qt app via manual scripts on the build server. When i'm running build with jom1.1.5 and Qt6 i don't see a call of msvc compiler, it's instantly goes to link.
        vcvarsall.bat finished normally, all required paths are correct in echo output. Now the execution sequence looks like

        C:\Qt\jom_1_1_5\jom.exe -f Makefile.Release
        link /NOLOGO /DYNAMICBASE...
        

        while normally it should looks like

        C:\Qt\jom_1_1_5\jom.exe -f Makefile.Release
        cl -c -nologo -Zc:wchar_t ...
        link /NOLOGO /DYNAMICBASE...
        

        Where the problem could be?

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        @k0shinus said in jom does not run msvc:

        Where the problem could be?

        Did you modify some source code before you called jom?

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

        K 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @k0shinus said in jom does not run msvc:

          Where the problem could be?

          Did you modify some source code before you called jom?

          K Offline
          K Offline
          k0shinus
          wrote last edited by
          #3

          @Christian-Ehrlicher Source code of the jom? No i didn't, i used standard. I have the same problem with a built-in jom from the qt creator, so it doesn't look like problem is in jom itself.

          Christian EhrlicherC 1 Reply Last reply
          0
          • K k0shinus

            @Christian-Ehrlicher Source code of the jom? No i didn't, i used standard. I have the same problem with a built-in jom from the qt creator, so it doesn't look like problem is in jom itself.

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote last edited by
            #4

            @k0shinus said in jom does not run msvc:

            Source code of the jom?

            Your source code which you want to compile with jom.

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

            K 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @k0shinus said in jom does not run msvc:

              Source code of the jom?

              Your source code which you want to compile with jom.

              K Offline
              K Offline
              k0shinus
              wrote last edited by
              #5

              @Christian-Ehrlicher

              @Christian-Ehrlicher said in jom does not run msvc:

              Your source code which you want to compile with jom.

              No, i didn't.

              jsulmJ 1 Reply Last reply
              0
              • K k0shinus

                @Christian-Ehrlicher

                @Christian-Ehrlicher said in jom does not run msvc:

                Your source code which you want to compile with jom.

                No, i didn't.

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

                @k0shinus If the code was already compiled and not changed since then the compiler will not be invoked again as there is nothing to compile.

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

                K 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @k0shinus If the code was already compiled and not changed since then the compiler will not be invoked again as there is nothing to compile.

                  K Offline
                  K Offline
                  k0shinus
                  wrote last edited by
                  #7

                  @jsulm I didn't changed source code of the project before build, but it wasn't built previousy because it was fresh after git clone. So it definitely should compile before link starts.

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

                    So was an executable generated or not?

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

                    K 1 Reply Last reply
                    0
                    • Christian EhrlicherC Christian Ehrlicher

                      So was an executable generated or not?

                      K Offline
                      K Offline
                      k0shinus
                      wrote last edited by
                      #9

                      @Christian-Ehrlicher No, project's executable wasn't generated before jom starts. And it doesn't generates after calling jom, because jom simply does not call cl.exe for some reason.

                      1 Reply Last reply
                      0
                      • hskoglundH Offline
                        hskoglundH Offline
                        hskoglund
                        wrote last edited by
                        #10

                        If you do a dummy edit of one your source files, for example change
                        int main to int main and try running jom again, do you get an .exe file?

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

                          Create a clean build directory, run cmake and then jom to see if it works then

                          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
                          1
                          • K Offline
                            K Offline
                            k0shinus
                            wrote last edited by
                            #12

                            I guess, i found the solution: several msvc sdk-s were missing. It fixed after i installed them and changed jom to qt-creator bundled. It's still a bit strange, but i think we can live with this. Thank you everyone!

                            1 Reply Last reply
                            0
                            • K k0shinus has marked this topic as solved

                            • Login

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