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. I got many errors during the configure process when I was using msys2 to compile qt5.5.1 with mingw32-64. have no idea about this errors.
Forum Updated to NodeBB v4.3 + New Features

I got many errors during the configure process when I was using msys2 to compile qt5.5.1 with mingw32-64. have no idea about this errors.

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 5.1k 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.
  • Halo_HaoH Offline
    Halo_HaoH Offline
    Halo_Hao
    wrote on last edited by
    #1

    I got many errors during the configure process when I was using msys2 to compile qt5.5.1 with mingw32-64. have no idea about this errors and I haven't found any manuals or solutions.

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

      Well, and we have no idea what errors you get if you do not provide more information! You should be more specific and provide the error messages you get.

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

      Halo_HaoH 1 Reply Last reply
      0
      • jsulmJ jsulm

        Well, and we have no idea what errors you get if you do not provide more information! You should be more specific and provide the error messages you get.

        Halo_HaoH Offline
        Halo_HaoH Offline
        Halo_Hao
        wrote on last edited by
        #3

        @jsulm
        mingw32-make[3]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/gui'
        cd tools/uic/ && ( test -e Makefile || D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/bin/qmake.exe D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/tools/uic/uic.pro -o Makefile ) && D:/msys64/mingw32/bin/mingw32-make -f Makefile
        mingw32-make[3]: Entering directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/tools/uic'
        D:/msys64/mingw32/bin/mingw32-make -f Makefile.Release
        mingw32-make[4]: Entering directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/tools/uic'
        mingw32-make[4]: Nothing to be done for 'first'.
        mingw32-make[4]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/tools/uic'
        mingw32-make[3]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/tools/uic'
        cd widgets/ && ( test -e Makefile || D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/bin/qmake.exe D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets/widgets.pro -o Makefile ) && D:/msys64/mingw32/bin/mingw32-make -f Makefile
        mingw32-make[3]: Entering directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        D:/msys64/mingw32/bin/mingw32-make -f Makefile.Debug all
        mingw32-make[4]: Entering directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        mingw32-make[4]: Nothing to be done for 'all'.
        mingw32-make[4]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        D:/msys64/mingw32/bin/mingw32-make -f Makefile.Release all
        mingw32-make[4]: Entering directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        g++ -c -include .pch/release/qt_widgets_pch.h -pipe -fno-keep-inline-dllexport -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++0x -fno-exceptions -frtti -Wall -Wextra -DUNICODE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_WIDGETS_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_NO_STYLE_MAC -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_ANDROID -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtWidgets -I../../include/QtWidgets/5.5.1 -I../../include/QtWidgets/5.5.1/QtWidgets -Itmp -I../3rdparty/wintab -Idialogs -I.uic -I../../include/QtCore/5.5.1 -I../../include/QtCore/5.5.1/QtCore -I../../include/QtGui/5.5.1 -I../../include/QtGui/5.5.1/QtGui -I../../include/QtGui -I../../include/QtCore -I.moc/release -I../../mkspecs/win32-g++ -o .obj/release/qaction.o kernel/qaction.cpp
        internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:184: MapViewOfFileEx: ▒▒ͼ▒▒▒▒▒▒Ч▒ĵ▒ַ▒▒
        <command-line>:0:0: fatal error: had to relocate PCH
        compilation terminated.
        Makefile.Release:42823: recipe for target '.obj/release/qaction.o' failed
        mingw32-make[4]: *** [.obj/release/qaction.o] Error 1
        mingw32-make[4]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        Makefile:52: recipe for target 'release-all' failed
        mingw32-make[3]: *** [release-all] Error 2
        mingw32-make[3]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/widgets'
        Makefile:598: recipe for target 'sub-widgets-make_first' failed
        mingw32-make[2]: *** [sub-widgets-make_first] Error 2
        mingw32-make[2]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/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 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase'
        Makefile:68: recipe for target 'module-qtbase-make_first' failed
        mingw32-make: *** [module-qtbase-make_first] Error 2

        1 Reply Last reply
        0
        • Halo_HaoH Offline
          Halo_HaoH Offline
          Halo_Hao
          wrote on last edited by
          #4

          ./configure -prefix /MyProject/QtLibrary-x86 -debug-and-release -opensource -confirm-license -platform win32-g++ -icu -opengl desktop -openssl -plugin-sql-odbc -nomake tests -nomake examples -shared

          1 Reply Last reply
          0
          • jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            One more question: why do you want to build Qt by yourself? You can just use the Qt installer and install the pre-built MinGW Qt. From your configure command I can see that you build 32bit shared version - that's what you get with Qt installer.

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

            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The error you get could be related to this: http://sourceforge.net/p/mingw-w64/bugs/382/
              Maybe you can disable pre-compiled headers (PCH)?

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

              Halo_HaoH 1 Reply Last reply
              0
              • jsulmJ jsulm

                The error you get could be related to this: http://sourceforge.net/p/mingw-w64/bugs/382/
                Maybe you can disable pre-compiled headers (PCH)?

                Halo_HaoH Offline
                Halo_HaoH Offline
                Halo_Hao
                wrote on last edited by
                #7

                @jsulm
                QT_INSTALL_DOCS=D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/doc QT_VERSION_TAG=551 QT_VER=5.5 QT_VERSION=5.5.1 '\QT5.5.1-mingw32\bin\qdoc.exe' -outputdir D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/doc/qtcore -installdir /QT5.5.1-mingw32/doc D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/corelib/doc/qtcore.qdocconf -prepare -no-link-errors
                /usr/bin/sh: \QT5.5.1-mingw32\bin\qdoc.exe: No such file or directory
                Makefile.Release:1152: recipe for target 'prepare_docs' failed
                mingw32-make[6]: *** [prepare_docs] Error 127
                mingw32-make[6]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/corelib'
                Makefile:289: recipe for target 'release-prepare_docs' failed
                mingw32-make[5]: *** [release-prepare_docs] Error 2
                mingw32-make[5]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src/corelib'
                Makefile:1553: recipe for target 'sub-corelib-prepare_docs' failed
                mingw32-make[4]: *** [sub-corelib-prepare_docs] Error 2
                mingw32-make[4]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase/src'
                Makefile:617: recipe for target 'sub-src-prepare_docs' failed
                mingw32-make[3]: *** [sub-src-prepare_docs] Error 2
                mingw32-make[3]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1/qtbase'
                Makefile:1682: recipe for target 'module-qtbase-prepare_docs' failed
                mingw32-make[2]: *** [module-qtbase-prepare_docs] Error 2
                mingw32-make[2]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1'
                Makefile:1053: recipe for target 'html_docs' failed
                mingw32-make[1]: *** [html_docs] Error 2
                mingw32-make[1]: Leaving directory 'D:/msys64/MyProject/qt-everywhere-opensource-src-5.5.1'
                Makefile:1056: recipe for target 'docs' failed
                mingw32-make: *** [docs] Error 2

                Binnan_Hao_Eassos@DESKTOP-738RCMP MINGW32 /MyProject/qt-everywhere-opensource-src-5.5.1
                $

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  \QT5.5.1-mingw32\bin\qdoc.exe is for sure an invalid path

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

                  jsulmJ 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    \QT5.5.1-mingw32\bin\qdoc.exe is for sure an invalid path

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @jsulm Do you have directories with blanks?

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

                    Halo_HaoH 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @jsulm Do you have directories with blanks?

                      Halo_HaoH Offline
                      Halo_HaoH Offline
                      Halo_Hao
                      wrote on last edited by Halo_Hao
                      #10

                      @jsulm
                      Thanks for reply.
                      The error above has been solved by adding -skip qtwebkit
                      There is no blank in the directories. The separator should be "/", which turns to "\"
                      in the error message. That's weird.
                      I'm trying to build qt development document and executing the command mingw32-make docs

                      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