Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Unresolved external symbol attempting to build 5.2
Forum Updated to NodeBB v4.3 + New Features

Unresolved external symbol attempting to build 5.2

Scheduled Pinned Locked Moved Solved Installation and Deployment
18 Posts 14 Posters 25.9k 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.
  • S Offline
    S Offline
    Signatal
    wrote on 6 Nov 2014, 16:04 last edited by
    #7

    Seems to have worked for me to. +1 (if any).

    On a partial side rant, why a dependency on python? I understand it's nice to use other tools when building but if I'm putting together a base system I now have to install both ActivePerl and Python. Not to mention if I check out from source instead of using a zip file I need git as well. Why not simplify and either build a small tool inside of Qt (similar to qmake) where it could do your scripted steps or just limit down to 1 language?

    Thanks for the answer, you guys are a lifesaver!

    1 Reply Last reply
    2
    • V Offline
      V Offline
      Velab
      wrote on 15 Jan 2015, 08:23 last edited by
      #8
      This post is deleted!
      1 Reply Last reply
      0
      • V Offline
        V Offline
        Velab
        wrote on 15 Jan 2015, 08:23 last edited by
        #9

        Thank you Arthurk.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Velab
          wrote on 15 Jan 2015, 12:17 last edited by
          #10

          Arthurk, could you please put the procedure in detail

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Velab
            wrote on 15 Jan 2015, 12:17 last edited by
            #11
            This post is deleted!
            1 Reply Last reply
            0
            • B Offline
              B Offline
              billconan
              wrote on 12 Nov 2015, 23:59 last edited by
              #12

              thank you,

              but the location for that h file is this

              C:\qt-everywhere-opensource-src-5.5.1\qtdeclarative\src\qml.generated\debug

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Siva
                wrote on 19 Aug 2016, 15:07 last edited by
                #13

                @billconan and @gboulard

                Thanks a bunch. I had the same issue where I had to install Python half way through nmake, but after re-running nmake it blew up way beyond in with this unrecognizable JSC::Yarr:: errors !!

                Deleting RegExpJitTables.h and re-running nmake got me past this.

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  phan
                  wrote on 13 Jan 2017, 18:29 last edited by
                  #14

                  Hi,
                  This is the complete sequence to install QT on windows x64 bit with VS2015. Hope it will help

                  Add license file to this location: %USERPROFILE%.qt-license
                  Open Visual Studio VS2015 Developer Native Command Prompt
                  Run command “D:\Qt\Qt5.5.0-VS2015\5.5\Src” to go to the qt folder
                  set QMAKESPEC=win32-msvc2015
                  set QTDIR=D:\Qt\Qt5.5.0-VS2015\5.5\Src
                  set PYTHONDIR=D:\Pulse\agents\work\DAILY_CVXIX_2016_x64_vs110\ix\Tools\Windows\python\Python2.7.1
                  set PATH=%QTDIR%\qtbase\bin;%PYTHONDIR%;%PATH%
                  set INCLUDE=%PYTHONDIR%;%INCLUDE%
                  cd %QTDIR%
                  Run command “configure -debug-and-release -platform win32-msvc2015 –prefix <location to install to>
                  Run command “nmake”
                  Run command “nmake install”

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LionelPeeters
                    wrote on 15 Sept 2022, 13:39 last edited by LionelPeeters
                    #15

                    Hello,

                    I tried with the lastest version pulled from git and deleting the file generated the following error

                    C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe C:/Dev/github/qt5/qt5/qtdeclarative/src/3rdparty/masm/yarr/create_regex_tables > .generated\debug\RegExpJitTables.h
                    'C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe' is not recognized as an internal or external command,
                    operable program or batch file.
                    NMAKE : fatal error U1077: 'C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe' : return code '0x1'
                    Stop.
                    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\nmake.exe"' : return code '0x2'
                    Stop.
                    NMAKE : fatal error U1077: 'cd' : return code '0x2'
                    Stop.
                    NMAKE : fatal error U1077: 'cd' : return code '0x2'
                    Stop.
                    NMAKE : fatal error U1077: 'cd' : return code '0x2'
                    Stop.
                    

                    and python is properly installed

                    C:\Dev\github\qt5\qt5>python --version
                    Python 2.7.18
                    

                    The file is generated each time I call "nmake"

                    J 1 Reply Last reply 15 Sept 2022, 13:52
                    0
                    • L LionelPeeters
                      15 Sept 2022, 13:39

                      Hello,

                      I tried with the lastest version pulled from git and deleting the file generated the following error

                      C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe C:/Dev/github/qt5/qt5/qtdeclarative/src/3rdparty/masm/yarr/create_regex_tables > .generated\debug\RegExpJitTables.h
                      'C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe' is not recognized as an internal or external command,
                      operable program or batch file.
                      NMAKE : fatal error U1077: 'C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe' : return code '0x1'
                      Stop.
                      NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\nmake.exe"' : return code '0x2'
                      Stop.
                      NMAKE : fatal error U1077: 'cd' : return code '0x2'
                      Stop.
                      NMAKE : fatal error U1077: 'cd' : return code '0x2'
                      Stop.
                      NMAKE : fatal error U1077: 'cd' : return code '0x2'
                      Stop.
                      

                      and python is properly installed

                      C:\Dev\github\qt5\qt5>python --version
                      Python 2.7.18
                      

                      The file is generated each time I call "nmake"

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 15 Sept 2022, 13:52 last edited by
                      #16

                      @LionelPeeters said in Unresolved external symbol attempting to build 5.2:

                      and python is properly installed

                      In which folder?
                      The first error clearly says that C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe is NOT recognised!

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

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        JanMicP
                        wrote on 6 May 2024, 23:39 last edited by
                        #17

                        @jsulm I'm having the same issue as @LionelPeeters. Can either of you comment on how to resolve this? I don't see why Jom would be looking for python in this WindowsApps path instead of the Python directory I added to my Path. There is no WindowsApps path in my Path environment variable. And I've already disabled the app execution aliases for python.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          Kutermajster
                          wrote on 3 Feb 2025, 12:23 last edited by Kutermajster 2 Mar 2025, 12:46
                          #18

                          Seems like the problem is that configure is finding a python.exe which is in the:
                          C:\Users\Lionel\AppData\Local\Microsoft\WindowsApps\python.exe

                          But this is a 'shortcut' to install python from windows store, not an actual python interpreter path. I'm experimenting how to resolve it.

                          I can also see, that building Qt5 relies on Python27. It might be good just to prepend the inital 'configure' with setting python path to:
                          set PATH=c:\Python27;%PATH%

                          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