qt


Building Qt 5.x from Source with MSYS2 / MinGW 64 - ICU unicode header missing


After successfully running the configure script (see Building Qt 5.8 from source - configure: Unknown command line option '-c++11') I started the build:
mingw32-make.exe -j 4
But after some time I got following error:
In file included from C:/msys64/home/asp/qt5/qtbase/src/xml/dom/qdom.cpp:55:0:
../../../include/QtXml/5.8.1/QtXml/private/qxml_p.h:1:85: fatal error: ../../../../../../../../../../../home/asp/qt5/qtbase/src/xml/sax/qxml_p.h: No such file or directory
#include "../../../../../../../../../../../home/asp/qt5/qtbase/src/xml/sax/qxml_p.h"
I searched for the file and it's where it should be:
ls ~/qt5/qtbase/src/xml/sax/
qxml.cpp qxml.h qxml_p.h sax.pri
Is this a problem with Qt 5.8.1 or did I forget to set some option? I'll try 5.7, but I don't expect better results.
With 5.7 the configure script doesn't show the success message:
Creating qmake...
...........................................................................................Done.
Info: creating stash file C:\msys64\home\asp\qt-build\.qmake.stash
Info: creating super cache file C:\msys64\home\asp\qt-build\.qmake.super
With Qt 5.8 there was a message:
Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into 'C:\msys64\opt\qt'
But maybe this is normal, so I started the build:
mingw32-make.exe -j 4
cd qtbase/ && ( test -e Makefile || C:/msys64/home/asp/qt-build/qtbase/bin/qmake.exe -o Makefile C:/msys64/home/asp/qt5/qtbase/qtbase.pro ) && C:/msys64/mingw64/bin/mingw32-make -f Makefile
Info: creating cache file C:\msys64\home\asp\qt-build\qtbase\.qmake.cache
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/qt_docs_targets.prf:31: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/testcase_targets.prf:4: 'prepareRecursiveTarget' is not a recognized test function.
C:/msys64/home/asp/qt5/qtbase/mkspecs/features/testcase_targets.prf:13: 'prepareRecursiveTarget' is not a recognized test function.
Unknown generator specified: DUMMY
mingw32-make[1]: Entering directory 'C:/msys64/home/asp/qt-build/qtbase'
mingw32-make[1]: Makefile: No such file or directory
mingw32-make[1]: *** No rule to make target 'Makefile'. Stop.
mingw32-make[1]: Leaving directory 'C:/msys64/home/asp/qt-build/qtbase'
Makefile:75: recipe for target 'module-qtbase-make_first' failed
mingw32-make: *** [module-qtbase-make_first] Error 2
So 5.7 is no alternative.
I've tries other versions from Qt Downloads:
qt-everywhere-opensource-src-4.8.7.tar.gz
qt-everywhere-opensource-src-5.6.0.7z
qt-everywhere-opensource-src-5.6.2.7z
qt-everywhere-opensource-src-5.7.0.7z
qt-everywhere-opensource-src-5.7.1.7z
qt-everywhere-opensource-src-5.8.0.7z
All versions fail, because some ICU header from the unicode subfolder couldn't be found. But I observed a strange thing: If I start the failing command manually in the corresponding folder, the output is generated without error! Then I can start make again and repeat this procedure a few files later again. But I can't do the whole build that way...
Look at our repository how we do building Qt5:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-qt5

Related Links

Lock error while running program in Qt/C++
Where is qembed tool in QT4.5?
QDir and QDirIterator ignore files with non-ASCII filenames
Is there a way to package a dynamic library in the application binary?
Can I decide where a Qaction is added to a Qmenubar
Modifying Qt core components/widgets, best practices? [closed]
How to connect menu click with action in Qt Creator?
How to set output path in a Qt project
How about using SVG(Scalable Vector Graphics) on desktop applications?
Using gSoap in Qt/Windows
Problems with QDialog in Qt
stereo in QT using Open GL
Is anyone using valgrind and Qt?
Compilation of Qt Property Browser
Qt display image in a new window
Newline character into textfile using QFile

Categories

HOME
class
mpdf
systemd
antd
plaid
hdfs
out-of-memory
dronekit-python
google-sheets-query
iptables
ipv6
position
phpmqtt
sharepoint-online
reportviewer
hystrix
siesta
driver
lapack
parsley.js
graphdb
grocery-crud
google-awareness
squirrel-sql
dhcp
mailgun
pygobject
susy-sass
renderscript
pfobject
dashdb
neo4j.rb
quantitative-finance
strophe.js
uri
running-object-table
javax.persistence
audit
matlab-app-designer
rust-cargo
spring-rabbitmq
keyboard-layout
ms-dos
best-buy-api
data-uri
opal-framework
permission-denied
node-apn
android-sharing
dblink
sidewaffle
hmmlearn
cefpython
clp
spring-mongo
oci
ajaxmin
mercurial-extension
msgpack
nette
directx-9
nastran
netdatacontractserializer
clarion
scala-macros
fiware-bosun
adhoc-polymorphism
device-admin
iplimage
category-theory
nachos
miglayout
ivalueconverter
jchartfx
map
lync-2010
iosched
smips
hyphen
acceptance-testing
xalan
wcf-callbacks
delphi-prism
libxslt
ccnet-config
isapi-redirect

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App