I downloaded the source code
Code: Alles auswählen
git clone https://code.qt.io/qt/qt5.git
cd qt5
perl init-repository
git checkout 5.8
- /usr/local/openssl
- /usr/local/icu
But from there on the instructions are not so clear. It's stated to use a windows command shell to set some environment variables. But later I'm using the MSYS2 64 Bit shell, so these have no effect. Here is what I did:
Code: Alles auswählen
export INCLUDE=/usr/local/icu/include:/usr/local/openssl/include
export LIB=/usr/local/icu/lib:/usr/local/openssl/lib
export QMAKESPEC=
export QTDIR=
windows2unix() { local pathPcs=() split pathTmp IFS=\;; read -ra split <<< "$*"; for pathTmp in "${split[@],}"; do pathPcs+=( "/${pathTmp//+([:\\])//}" ); done; echo "${pathPcs[*]}"; }; systemrootP=$(windows2unix "$SYSTEMROOT"); export PATH="$PWD/qtbase/bin:$PWD/gnuwin32/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/msys64/usr/local/icu/lib"
export MAKE_COMMAND=
mkdir qt-build
cd qt-build
../qt5/configure -prefix /opt/qt -debug-and-release -opensource -confirm-license -platform win32-g++ -developer-build -icu -I /usr/local/icu/include -opengl desktop -openssl -plugin-sql-odbc -nomake examples -nomake tests
In Qt's config.log I found:ERROR: Feature 'icu' was enabled, but the pre-condition 'libs.icu' failed.
looking for library icu
Why doesn't the script find the includes? I set them asTrying source 0 (type inline) of library icu ...
=> source failed condition 'config.win32 && !features.shared'.
Trying source 1 (type inline) of library icu ...
+ cd C:\msys64\home\asp\qt-build\qtbase\config.tests\unix\icu && C:\msys64\home\asp\qt-build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared console" "LIBS += -licuin -licuuc -licudt" C:/msys64/home/asp/qt5/qtbase/config.tests/unix/icu
+ cd C:\msys64\home\asp\qt-build\qtbase\config.tests\unix\icu && set MAKEFLAGS=& C:/msys64/usr/bin/make
> g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -IC:/msys64/home/asp/qt5/qtbase/config.tests/unix/icu -I. -IC:/msys64/home/asp/qt5/qtbase/mkspecs/win32-g++ -o icu.o C:/msys64/home/asp/qt5/qtbase/config.tests/unix/icu/icu.cpp
> C:/msys64/home/asp/qt5/qtbase/config.tests/unix/icu/icu.cpp:40:28: fatal error: unicode/utypes.h: No such file or directory
> #include <unicode/utypes.h>
> ^
> compilation terminated.
> make: *** [Makefile:155: icu.o] Fehler 1
=> source failed verification.
Trying source 2 (type inline) of library icu ...
=> source failed condition '!config.win32'.
test config.corelib.libraries.icu FAILED
- parameter '-I /usr/local/icu/include'
- export INCLUDE=/usr/local/icu/include:/usr/local/openssl/include
I also tried
- parameter '-I /C/msys64/usr/local/icu/include'
- export INCLUDE=/C/msys64/usr/local/icu/include:/C/msys64/usr/local/openssl/include
Is there another possibility to give the correct INCLUDE path to the compiler?