sudo apt install python3-pip
pip3 install cmake
-Unpack compiler binaries to suitable directory and ensure that /bin directory is mentioned in your PATH. You will also need to add /home/user/.local/bin to PATH as well.
+Unpack compiler binaries to suitable directory (/opt is preferred) and ensure that its /bin subdirectory is mentioned in your PATH. You will also need to add /home/user/.local/bin to PATH as well.
## Setting up
mkdir ${ROOT}/${CROSS}-w64-mingw32-build
mkdir ${ROOT}/${CROSS}-w64-mingw32-build-qttools
mkdir ${ROOT}/${CROSS}-w64-mingw32-build-qttranslations
+mkdir ${ROOT}/${CROSS}-w64-mingw32-build-qtdeclarative
# Stage directory
mkdir ${ROOT}/${CROSS}-w64-mingw32
# Compile translations
-cd cd ${ROOT}/${CROSS}-w64-mingw32-build-qttranslations
+cd ${ROOT}/${CROSS}-w64-mingw32-build-qttranslations
${ROOT}/${CROSS}-w64-mingw32/bin/qmake ${ROOT}/qttranslations
make -j 4
make DESTDIR=${ROOT}/${CROSS}-w64-mingw32 install
+# Compile qtdeclarative
+
+cd ${ROOT}/${CROSS}-w64-mingw32-build-qtdeclarative
+${ROOT}/${CROSS}-w64-mingw32/bin/qmake ${ROOT}/qtdeclarative
+make -j 4
+make DESTDIR=${ROOT}/${CROSS}-w64-mingw32 install
+
# Remove build directories
cd ${ROOT}
-rm -rf ${ROOT}/${CROSS}-w64-mingw32-build ${ROOT}/${CROSS}-w64-mingw32-build-qttools ${ROOT}/${CROSS}-w64-mingw32-build-qttranslations
+rm -rf ${ROOT}/${CROSS}-w64-mingw32-build ${ROOT}/${CROSS}-w64-mingw32-build-qttools ${ROOT}/${CROSS}-w64-mingw32-build-qttranslations ${ROOT}/${CROSS}-w64-mingw32-build-qtdeclarative