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. Qt jom Error2
Forum Updated to NodeBB v4.3 + New Features

Qt jom Error2

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 5.2k Views 1 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.
  • C Offline
    C Offline
    crisro996
    wrote on last edited by
    #1

    Hi, I'm trying to build Qt for static (or whatever the correct term is). After I configured with -release -static -platform win32-msvc2012, I run c:\qt\jom\jom.exe -j4

    After a short while I get this errors:
    jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [release] Error 2
    jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-tools-bootstrap-make_first] Error 2
    jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-tools-make_first] Error 2
    jom: C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\tools\bootstrap\Makefile [sub-src-make_first] Error 2

    Please help me, I've been trying to do this for 2 days :(

    VS version: 2012, Qt: 5.0.2, Windows 7 x64

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Add -dont-process to configure, if that switch is still available in Qt5. Then you need to run qmake qtbase/projects.pro, IIRC.

      Or better, update to Qt 51 and try there.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        crisro996
        wrote on last edited by
        #3

        What commands do I exactly need to give after the config for qmake qtbase/projects.pro?

        And also, in Qt 5.1 do I have to do the same thing with configure, jom, etc. and hope for the best?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Just run nmake.

          Qt5.1 - yes. Or use nmake, I think jom can fail at times.

          (Z(:^

          1 Reply Last reply
          0
          • C Offline
            C Offline
            crisro996
            wrote on last edited by
            #5

            nmake (still 5.0.2) gives me the followin error:

            NMAKE: fatal error U1077 C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\bin\moc.exe return code 0x1
            Stop.
            NMAKE: fatal error U1077 C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe return code 0x2

            and 3 identic lines:
            fatal error u1077 'cd': return code 0x2

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Have you run all this on clean Qt source code (downloaded from a zip, not a prebuild)? You should do that. And in general, if possible, avoid static linking, a lot of problems will go away. Some new will be introduced, too :P

              (Z(:^

              1 Reply Last reply
              0
              • C Offline
                C Offline
                crisro996
                wrote on last edited by
                #7

                How can I use a .exe on other PC's without static, though? I need a .exe for a school project :D

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  [quote author="crisro996" date="1371496302"]How can I use a .exe on other PC's without static, though? I need a .exe for a school project :D[/quote]
                  Check out for deployment in wiki.
                  To solve the "dependencies there is this wiki entry":http://qt-project.org/wiki/Show_library_dependencies#aea23489ce3aa9b6406ebb28e0cda430 for instance

                  Vote the answer(s) that helped you to solve your issue(s)

                  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