Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Building Qt 5.5.1 with MinGW-w64

    Installation and Deployment
    mingw64 qt5.5.1 qt5 windows
    2
    4
    2795
    Loading More Posts
    • 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.
    • ZenitFan219
      ZenitFan219 last edited by ZenitFan219

      Is it normal situation, when cofig tests failed?

      Running configuration tests...
      process_begin: CreateProcess(NULL, rm -f arch.o, ...) failed.
      make (e=2): Не удается найти указанный файл.
      process_begin: CreateProcess(NULL, rm -f arch.exe, ...) failed.
      make (e=2): Не удается найти указанный файл.
      process_begin: CreateProcess(NULL, rm -f Makefile, ...) failed.
      make (e=2): Не удается найти указанный файл.
      

      PS:
      translation from russian language:
      Не удается найти указанный файл == Can not find the file

      Error..

      C:/mingww64/bin/mingw32-make -f Makefile.Debug all
      mingw32-make[4]: Entering directory 'F:/Qt_Static/mingw_w64_objs/qtbase/src/widgets'
      QT_PLUGIN_PATH=/F/Qt_Static/mingw_w64_objs/qtbase/plugins PATH=/F/Qt_Static/mingw_w64_objs/qtbase/lib${PATH:+:$PATH} 'F:\Qt_Static\mingw_w64_objs\qtbase\bin\uic.exe' F:/Qt_Static/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets/dialogs/qfiledialog.ui -o .uic/ui_qfiledialog.h
      C:/mingww64/bin/mingw32-make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x00007FFD39B70BC4)
      Makefile:38: recipe for target 'debug-all' failed
      mingw32-make[3]: *** [debug-all] Error 255
      mingw32-make[3]: Leaving directory 'F:/Qt_Static/mingw_w64_objs/qtbase/src/widgets'
      Makefile:520: recipe for target 'sub-widgets-make_first' failed
      mingw32-make[2]: *** [sub-widgets-make_first] Error 2
      mingw32-make[2]: Leaving directory 'F:/Qt_Static/mingw_w64_objs/qtbase/src'
      Makefile:41: recipe for target 'sub-src-make_first' failed
      mingw32-make[1]: *** [sub-src-make_first] Error 2
      mingw32-make[1]: Leaving directory 'F:/Qt_Static/mingw_w64_objs/qtbase'
      Makefile:63: recipe for target 'module-qtbase-make_first' failed
      mingw32-make: *** [module-qtbase-make_first] Error 2
      

      How to fix this errors?

      1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

        The actual error is: Interrupt/Exception caught (code = 0xc0000005, addr = 0x00007FFD39B70BC4)
        Does your MinGW work? Did you try to build a small program using it?

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

        ZenitFan219 1 Reply Last reply Reply Quote 0
        • ZenitFan219
          ZenitFan219 @jsulm last edited by ZenitFan219

          @jsulm

          Yes, MinGW-w64 compiler works:

          alt text

          (It is simple example application..)

          And Boost library was built successfully

          1 Reply Last reply Reply Quote 0
          • ZenitFan219
            ZenitFan219 last edited by

            Qt (static link) building with MinGW-w64 compiler ends successfully only with this *.bat (run from MinGW-w64 environment (non cygwin or msys2)):

            SET _CD=%CD%
            SET _PATH=%PATH%
            
            SET QT_SOURCE=%_CD%\qt-everywhere-opensource-src-5.5.1
            SET QT_BUILD=%_CD%\mingw_w64_objs
            SET QT_DIST=%_CD%\mingw64_Static
            
            REM Building Qt
            
            SET PATH=C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%QT_SOURCE%\qtbase\bin;%QT_SOURCE%\gnuwin32\bin;c:\python27\;%PATH%;
            CALL C:\Ruby22-x64\bin\setrbvars.bat
            ECHO ON
            PATH
            PAUSE
            
            MKDIR %QT_BUILD%
            CD /D %QT_BUILD%
            PAUSE
            CALL %QT_SOURCE%\configure.bat -prefix %QT_DIST% -debug-and-release -static -opensource -confirm-license -no-icu -nomake tests -opengl desktop -no-compile-examples -no-plugin-manifests -no-audio-backend -no-native-gestures -skip qtandroidextras -skip qtactiveqt -skip qtconnectivity -skip qtdeclarative -skip qtlocation -skip qtmacextras -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtserialport -skip qtwebengine -skip qtwebchannel -skip qtwayland -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtx11extras -developer-build
            ECHO ON
            PAUSE
            mingw32-make
            

            No problems.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post