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. A problem with python path when I try to build Qt from source. 'E:\Program' is not recognized as an internal or external command"
Forum Update on Monday, May 27th 2025

A problem with python path when I try to build Qt from source. 'E:\Program' is not recognized as an internal or external command"

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 2 Posters 800 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.
  • 8 Offline
    8 Offline
    8Observer8
    wrote on 3 Oct 2021, 10:52 last edited by 8Observer8 10 Mar 2021, 10:54
    #1

    Hi,

    I want to build Qt from source. I use this command for configuration:

    configure -prefix "C:\Qt\Qt5.15.2_Static" -static -static-runtime -release -opensource -confirm-license -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-odbc -sql-sqlite -nomake tools -nomake examples -nomake tests -no-angle -skip qtwayland -skip qtwebchannel -skip qtwebengine

    When I try to build it (mingw32-make) I get this error after a few hours:

    E:\Program Files\Python\Python39\\python.exe E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative/src/3rdparty/masm/yarr/create_regex_tables > .generated\release\RegExpJitTables.h 'E:\Program' is not recognized as an internal or external command, operable program or batch file.

    I think that the path to python must be in double quotes. Where can I add double quotes after configuration?

    Full text:
    g++ -c -fno-keep-inline-dllexport -Wno-expansion-to-defined -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1z -fno-exceptions -Wall -Wextra -Wextra -Wno-expansion-to-defined -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -ffunction-sections -fdata-sections -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_FOREACH -DWTF_EXPORT_PRIVATE= -DJS_EXPORT_PRIVATE= -DENABLE_ASSEMBLER_WX_EXCLUSIVE=1 -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportAssertionFailureWithMessage=qmlWTFReportAssertionFailureWithMessage -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DNOMINMAX -DENABLE_LLINT=0 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DBUILDING_QT__ -DWTF_USE_UDIS86=0 -DNDEBUG -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_QML_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Imemory -I. -Icompiler -I. -Ijsruntime -I. -Ijit -I. -Idebugger -Iqmldirparser -I. -Ianimations -I..\3rdparty\masm\jit -I..\3rdparty\masm\assembler -I..\3rdparty\masm\runtime -I..\3rdparty\masm\wtf -I..\3rdparty\masm\stubs -I..\3rdparty\masm\stubs\runtime -I..\3rdparty\masm\stubs\wtf -I..\3rdparty\masm -I..\3rdparty\masm\disassembler -I..\3rdparty\masm\disassembler\udis86 -I..\..\include -I..\..\include\QtQml -I..\..\include\QtQml\5.15.2 -I..\..\include\QtQml\5.15.2\QtQml -Itmp -I.generated\release -I. -I.tracegen\release -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\include\QtCore\5.15.2 -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\include\QtCore\5.15.2\QtCore -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\include -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\include\QtNetwork -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\include\QtCore -I.moc\release -IE:\Temp\New\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o .obj\release\YarrJIT.o ..\3rdparty\masm\yarr\YarrJIT.cpp E:\Program Files\Python\Python39\\python.exe E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative/src/3rdparty/masm/yarr/create_regex_tables > .generated\release\RegExpJitTables.h 'E:\Program' is not recognized as an internal or external command, operable program or batch file. mingw32-make[4]: *** [Makefile.Release:1053: .generated/release/RegExpJitTables.h] Error 1 mingw32-make[4]: Leaving directory 'E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative/src/qml' mingw32-make[3]: *** [Makefile:45: release] Error 2 mingw32-make[3]: Leaving directory 'E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative/src/qml' mingw32-make[2]: *** [Makefile:105: sub-qml-make_first-ordered] Error 2 mingw32-make[2]: Leaving directory 'E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative/src' mingw32-make[1]: *** [Makefile:53: sub-src-make_first] Error 2 mingw32-make[1]: Leaving directory 'E:/Temp/New/qt-everywhere-src-5.15.2/qtdeclarative' mingw32-make: *** [Makefile:340: module-qtdeclarative-make_first] Error 2

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 3 Oct 2021, 11:25 last edited by
      #2

      Move python to a path without spaces

      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

      1/2

      3 Oct 2021, 10:52

      • Login

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