Skip to content

Commit

Permalink
Update Qt 6.4.1 (open-eid#1134)
Browse files Browse the repository at this point in the history
IB-7541

Signed-off-by: Raul Metsma <[email protected]>

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Dec 27, 2022
1 parent b54f88e commit 2d0919c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
matrix:
vcver: [142, 143]
arch: [x64]
qtver: [6.3.2]
qtver: [6.4.1]
qt: [win64_msvc2019_64]
qtmodules: [qt5compat]
include:
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
* [XCode](https://apps.apple.com/us/app/xcode/id497799835?mt=12)
* [http://www.cmake.org](http://www.cmake.org)
* [http://qt-project.org](http://qt-project.org)
Since Qt 5.6 default SSL backend is SecureTransport and this project depends on openssl.
Build Qt with openssl backend using provided [prepare_osx_build_environment.sh](prepare_osx_build_environment.sh) script; by default Qt is built in the `~/cmake_builds` folder but alternate build path can be defined with the `-p` option.
Build universal binary of Qt using provided [prepare_osx_build_environment.sh](prepare_osx_build_environment.sh) script; by default Qt is built in the `~/cmake_builds` folder but alternate build path can be defined with the `-p` option.
* [libdigidocpp-*.pkg](https://github.com/open-eid/libdigidocpp/releases)

2. Fetch the source
Expand All @@ -64,7 +63,11 @@

3. Configure

cmake -DCMAKE_PREFIX_PATH="~/cmake_builds/Qt-6.3.1-OpenSSL/lib/cmake/Qt6" -B build -S .
cmake -B build -S . \
-DCMAKE_PREFIX_PATH=~/cmake_builds/Qt-6.4.1-OpenSSL/lib/cmake/Qt6
-DOPENSSL_ROOT_DIR=~/cmake_build/OpenSSL \
-DLDAP_ROOT=~/cmake_build/OpenLDAP \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"

4. Build

Expand All @@ -82,14 +85,15 @@
* [http://www.cmake.org](http://www.cmake.org)
* [http://qt-project.org](http://qt-project.org)
* [libdigidocpp-*.msi](https://github.com/open-eid/libdigidocpp/releases)

2. Fetch the source

git clone --recursive https://github.com/open-eid/DigiDoc4-Client
cd DigiDoc4-Client

3. Configure

cmake -G"NMAKE Makefiles" -DCMAKE_PREFIX_PATH="C:\Qt\6.3.1\msvc2019\lib\cmake\Qt6" -B build -S .
cmake -G"NMAKE Makefiles" -DCMAKE_PREFIX_PATH="C:\Qt\6.4.1\msvc2019\lib\cmake\Qt6" -B build -S .

4. Build

Expand Down
14 changes: 6 additions & 8 deletions prepare_osx_build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
set -e

######### Versions of libraries/frameworks to be compiled
QT_VER="6.3.2"
OPENSSL_VER="1.1.1q"
QT_VER="6.4.1"
OPENSSL_VER="1.1.1s"
OPENLDAP_VER="2.6.3"
REBUILD=false
BUILD_PATH=~/cmake_builds
: ${MACOSX_DEPLOYMENT_TARGET:="10.15"}
export MACOSX_DEPLOYMENT_TARGET
SCRIPTPATH=$(exec 2>/dev/null;cd -- $(dirname "$0"); unset PWD; /usr/bin/pwd || /bin/pwd || pwd)

while [[ $# -gt 0 ]]
do
Expand Down Expand Up @@ -113,31 +112,30 @@ if [[ "$REBUILD" = true || ! -d ${QT_PATH} ]] ; then
QT_MINOR="${qt_ver_parts[0]}.${qt_ver_parts[1]}"
echo -e "\n${ORANGE}##### Building Qt ${QT_VER} ${QT_PATH} #####${RESET}\n"
mkdir -p ${BUILD_PATH}
cd ${BUILD_PATH}
pushd ${BUILD_PATH}
for PACKAGE in qtbase-everywhere-src-${QT_VER} qtsvg-everywhere-src-${QT_VER} qttools-everywhere-src-${QT_VER} qt5compat-everywhere-src-${QT_VER}; do
if [ ! -f ${PACKAGE}.tar.xz ]; then
curl -O -L http://download.qt.io/official_releases/qt/${QT_MINOR}/${QT_VER}/submodules/${PACKAGE}.tar.xz
fi
rm -rf ${PACKAGE}
tar xf ${PACKAGE}.tar.xz
cd ${PACKAGE}
pushd ${PACKAGE}
if [[ "${PACKAGE}" == *"qtbase"* ]] ; then
./configure -prefix ${QT_PATH} -opensource -nomake tests -nomake examples -no-securetransport -openssl -openssl-linked -confirm-license -- -DOPENSSL_ROOT_DIR=${OPENSSL_PATH} -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
else
${QT_PATH}/bin/qt-configure-module .
fi
cmake --build . --parallel
cmake --build . --target install
cd -
popd
rm -rf ${PACKAGE}
done
cd -
popd
else
echo -e "\n${GREY} Qt not built${RESET}"
fi

if [[ "$REBUILD" = true || ! -d ${OPENLDAP_PATH} ]] ; then
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
echo -e "\n${ORANGE}##### Building OpenLDAP ${OPENLDAP_VER} ${OPENLDAP_PATH} #####${RESET}\n"
curl -O -L http://mirror.eu.oneandone.net/software/openldap/openldap-release/openldap-${OPENLDAP_VER}.tgz
tar xf openldap-${OPENLDAP_VER}.tgz
Expand Down

0 comments on commit 2d0919c

Please sign in to comment.