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. Fatal error U1077 (Qt 5.7.0 MSVC2013 64 bits)
Forum Updated to NodeBB v4.3 + New Features

Fatal error U1077 (Qt 5.7.0 MSVC2013 64 bits)

Scheduled Pinned Locked Moved Solved General and Desktop
30 Posts 4 Posters 17.2k 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.
  • J Offline
    J Offline
    jmarcos
    wrote on last edited by
    #1

    Hello,

    Below is my error. Could anyone give some hint how to overcome this? Thank you.
    _
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\link.EXE"' : return code '0x458'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
    Stop.
    The process "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\nmake.exe" exited with code 2.
    Error while building/deploying project ants2 (kit: Desktop Qt 5.7.0 MSVC2013 64bit)
    The kit Desktop Qt 5.7.0 MSVC2013 64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"```
    //your code here

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

      Hi
      Often just path problems.

      https://forum.qt.io/topic/56437/how-to-fix-error-while-building-deploying-project

      You should check your kits.

      http://doc.qt.io/qtcreator/creator-targets.html

      Im sorry I cant show how it shall look but I use only mingw on windows.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jmarcos
        wrote on last edited by
        #3

        Hello mrjj.
        Many thanks for your quick reply.
        I tried Qt5.7 and Microsoft Visual C++ Compiler 12.0(x86_amd64) as in the example of your second link.
        I'm still getting a similar error:

        --
        Generating Code...
        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:release\ants2.exe @C:\Users\jsm\AppData\Local\Temp\nm15D5.tmp
        libCore.lib(libCore.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\x86_amd64\link.EXE"' : return code '0x458'
        Stop.
        NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
        Stop.
        16:42:12: The process "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" exited with code 2.
        Error while building/deploying project ants2 (kit: Qt 5.7 MSVC2013_64bit MV C++ Comppiler 12.0 (x86_amd64))
        The kit Qt 5.7 MSVC2013_64bit MV C++ Comppiler 12.0 (x86_amd64) has configuration issues which might be the root cause for this problem.
        When executing step "Make"

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

          Hi
          Have you tried to see if VS is happy?
          Open the Vs developer command prompt and
          see if
          link.EXE
          and
          nmake.exe
          can be found and respond. ( it lists options)

          Also,
          fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
          seems to be a mixup with 32 / 64 bit.

          Did you install Qt 64bit for VS2013 ?

          Also, you really need/want to use visual studio?
          Qt comes with mingw compiler which works flawlessly and have zero setup.
          However, for using external libs (non Qt) , VS is often better supported than mingw.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jmarcos
            wrote on last edited by
            #5

            mrjj,

            I really appreciate your help.
            The link.exe have executed and showed me the parameters list.
            The nmake.exe launchs the executable from Microsoft but it gives an error:
            NMAKE : fatal error U1064: MAKEFILE not found and no target specified Stop.

            In Build&Run -> Qt versions Qt 64bit for VS2013 and VS2015 are auto-detected in these locations:
            C:\Qt\5.7\msvc2013_64\bin\qmake.exe
            C:\Qt\5.7\msvc2015_64\bin\qmake.exe

            In my project there some external libraries indeed.
            Thank you very much for your time.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jmarcos
              wrote on last edited by
              #6

              Of course there is no makefile there... sorry

              mrjjM 1 Reply Last reply
              0
              • J jmarcos

                Of course there is no makefile there... sorry

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #7

                @jmarcos no no its fine
                Just checking that linker and make could be found.
                nmake has to say "no file" thing.

                I never saw it say
                "The kit Qt 5.7 MSVC2013_64bit MV C++ Comppiler 12.0 (x86_amd64) has configuration issues which might be the root cause for this problem."

                so googling to see for any hints.

                mrjjM 1 Reply Last reply
                0
                • J Offline
                  J Offline
                  jmarcos
                  wrote on last edited by
                  #8

                  @mrjj, just to clarify: "Qt 5.7 MSVC2013_64bit MV C++ Comppiler 12.0 (x86_amd64) " was the name I gave to kit selecting MSCV2013_64bit and MV C++ compiler 12.0...

                  1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @jmarcos no no its fine
                    Just checking that linker and make could be found.
                    nmake has to say "no file" thing.

                    I never saw it say
                    "The kit Qt 5.7 MSVC2013_64bit MV C++ Comppiler 12.0 (x86_amd64) has configuration issues which might be the root cause for this problem."

                    so googling to see for any hints.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Oh, i forgot to ask.
                    If you create a default GUI project in Creator and try to build, it still says this?
                    Just to rule out its not make/project file related as such. (for the ant2 project)

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jmarcos
                      wrote on last edited by
                      #10

                      Yes, I just tried a Qt quick application and it was built fine and run as well.

                      J 1 Reply Last reply
                      0
                      • J jmarcos

                        Yes, I just tried a Qt quick application and it was built fine and run as well.

                        J Offline
                        J Offline
                        jmarcos
                        wrote on last edited by
                        #11

                        17:38:39: Starting: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"
                        "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe" -f Makefile.Release
                        17:38:39: The process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe" exited normally.
                        17:38:39: Elapsed time: 00:00.

                        J 1 Reply Last reply
                        0
                        • J jmarcos

                          17:38:39: Starting: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"
                          "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe" -f Makefile.Release
                          17:38:39: The process "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe" exited normally.
                          17:38:39: Elapsed time: 00:00.

                          J Offline
                          J Offline
                          jmarcos
                          wrote on last edited by
                          #12

                          @jmarcos The previous was for the TestApp not ANTS2 Project!

                          1 Reply Last reply
                          0
                          • mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Hi
                            a C++ Qt quick application ?
                            Could you try a
                            "Qt widget application" default project?

                            If that also works, then it must be that projects make file that is not ok?

                            1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              jmarcos
                              wrote on last edited by
                              #14

                              The default "Qt widget application" was successfully built.

                              mrjjM 1 Reply Last reply
                              1
                              • J jmarcos

                                The default "Qt widget application" was successfully built.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @jmarcos
                                Ok, then the toolchain does work.
                                It must be the project then ?
                                Did you make the make file yourself or what is its origin?

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  jmarcos
                                  wrote on last edited by
                                  #16

                                  The make file is made by the qmake.

                                  This is the header of the automatic created file:

                                  #############################################################################
                                  # Makefile for building: ants2
                                  # Generated by qmake (3.0) (Qt 5.7.0)
                                  # Project:  ..\ANTS2\ants2.pro
                                  # Template: app
                                  # Command: C:\Qt\5.7\msvc2015_64\bin\qmake.exe -spec win32-msvc2015 -o Makefile ..\ANTS2\ants2.pro
                                  #############################################################################
                                  1 Reply Last reply
                                  0
                                  • mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    hmm
                                    so here it uses 2015 compiler

                                    I wonder if the default sample used vs2013 ?

                                    Did you install BOTH Qt 2015 and Qt 2013 binary packets?

                                    Also did u try with
                                    -spec win32-msvc2013

                                    ?

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      jmarcos
                                      wrote on last edited by
                                      #18

                                      Yes, both are installed and also tried win32-msvc2013.
                                      mrjj, many thanks for your help. Let me discuss this problem tomorrow with the code developer. Today I updated Qt to Qt5.7and after that, when I tried to compile the Project I want to build and run (to use the application - a simulation software), I got the building error I reported here in the Forum. The Project was built before for Qt5.4 without problems.

                                      mrjjM 2 Replies Last reply
                                      1
                                      • J jmarcos

                                        Yes, both are installed and also tried win32-msvc2013.
                                        mrjj, many thanks for your help. Let me discuss this problem tomorrow with the code developer. Today I updated Qt to Qt5.7and after that, when I tried to compile the Project I want to build and run (to use the application - a simulation software), I got the building error I reported here in the Forum. The Project was built before for Qt5.4 without problems.

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        @jmarcos
                                        Good plan.
                                        Its this public (the simulation software) ?
                                        I mean to try the project.

                                        J 1 Reply Last reply
                                        0
                                        • J jmarcos

                                          Yes, both are installed and also tried win32-msvc2013.
                                          mrjj, many thanks for your help. Let me discuss this problem tomorrow with the code developer. Today I updated Qt to Qt5.7and after that, when I tried to compile the Project I want to build and run (to use the application - a simulation software), I got the building error I reported here in the Forum. The Project was built before for Qt5.4 without problems.

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @jmarcos

                                          Hi
                                          Tomorrow could you
                                          Show compiler, debugger and kit screens from creator (with the set options)
                                          Then grab the qmake line from the Creator's output pane and show here too ?

                                          J 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