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.



  • 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.


  • Qt Champions 2018

    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.



  • @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



  • ./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


  • Qt Champions 2018

    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.


  • Qt Champions 2018

    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)?



  • @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
    $


  • Qt Champions 2018

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


  • Qt Champions 2018

    @jsulm Do you have directories with blanks?



  • @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


 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.