Skip to content

Commit

Permalink
qt65 (#91)
Browse files Browse the repository at this point in the history
qt 6.5.0; geodiff 2.0.2; qgis 3.28.5
  • Loading branch information
PeterPetrik committed Apr 12, 2023
1 parent 3b165cc commit d21c4f3
Show file tree
Hide file tree
Showing 32 changed files with 171 additions and 82 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
android_build:
runs-on: macos-12
env:
QT_VERSION: '6.4.2'
QT_VERSION: '6.5.0'
ANDROIDAPI: 24
NDK_VERSION: r23
NDK_VERSION_FULL: r23b
NDK_VERSION: r25b
NDK_VERSION_FULL: r25b
JDK_VERSION: 11
SDK_PLATFORM: android-31
SDK_BUILD_TOOLS: 31.0.0
CACHE_VERSION: 1
CACHE_VERSION: 0
ARCHES: "armeabi-v7a arm64-v8a"
XC_VERSION: ${{ '14.2' }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: macos-12
env:
IOS_MIN_SDK_VERSION: '14.0' # iOS Deployment target
QT_VERSION: '6.4.2'
QT_VERSION: '6.5.0'
ARCHES: 'arm64'
CACHE_VERSION: 1
CACHE_VERSION: 0
XC_VERSION: ${{ '14.2' }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
env:
ARCH: 'linux-x86_64'
UBUNTU_VERSION: 2204
QT_VERSION: '6.4.2'
QT_VERSION: '6.5.0'
CACHE_VERSION: 0

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: macos-12
if: github.repository == 'merginmaps/input-sdk'
env:
QT_VERSION: 6.4.2
QT_VERSION: 6.5.0
ARCHES: 'mac'
CACHE_VERSION: 1
CACHE_VERSION: 0
MACOSX_DEPLOYMENT_TARGET: 10.15.0
XC_VERSION: ${{ '14.2' }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
runs-on: windows-2019

env:
QT_VERSION: '6.4.2'
QT_VERSION: '6.5.0'
CACHE_VERSION: 0
ARCH: "win64"
TRIPLET: "x64-windows"
VS_VERSION: "2019"
CMAKE_GENERATOR: "Visual Studio 16 2019" # see https://github.com/actions/runner-images/blob/main/images/win/Windows2019-Readme.md
CMAKE_ARCH: "x64"
QT_ARCH: "win64_msvc2019_64" # run: aqt list $QT_VERSION windows desktop
VCPKG_BASELINE: "a291bcad8093f9f17988fe66543aefd674812f0e" # compatible with vcpkg.json baseline
VCPKG_BASELINE: "203383666e2422ed31e1faebe6efa6e306bd126d" # compatible with vcpkg.json baseline
VCPKG_ROOT: "C:/vcpkg-root" # Looks like there is more space on C: than on D: drive (~14GB)

steps:
Expand Down
7 changes: 4 additions & 3 deletions android/config.conf.default
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
export ROOT_OUT_PATH=<where you want build SDK>

### Currently suggested versions ####
export ANDROIDNDKVER=r23
# should be downloaded from https://dl.google.com/android/repository/android-ndk-r25b-darwin.zip
export ANDROIDNDKVER=r25
export ANDROIDAPI=24 # == CMake's ANDROID_NATIVE_API_LEVEL == gradle's minSdkVersion == Dockerfile ANDROID_NDK_PLATFORM

#### PATHS ####
export ANDROIDSDK="/path/to/android-sdk"
export ANDROIDNDK="/path/to/android-ndk"
export QT_ANDROID_BASE="/path/to/qt/sdk/Qt/6.4.0"
export QT_ANDROID_BASE="/path/to/qt/sdk/Qt/6.5.0"

# For example:
# export ANDROIDSDK="/opt/android/sdk"
# export ANDROIDNDK="/opt/android-ndk-r23/"
# export ANDROIDNDK="/opt/android-ndk-r25b/"

# QGIS needs a bison 3. On MacOS you may need
# to install one with e.g. homebrew or qgis_deps
Expand Down
24 changes: 16 additions & 8 deletions android/distribute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ if [ "X$PYTHON" == "X" ]; then
exit 1
fi

# Check patchelf is present
PATCHELF="$(which patchelf)"
if [ "X$PATCHELF" == "X" ]; then
error "Unable to find patchelf"
exit 1
fi

# Paths
ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import os,sys;print(os.path.realpath(sys.argv[1]))' $0))"
STAGE_PATH="${ROOT_OUT_PATH}/stage/$ARCH"
Expand Down Expand Up @@ -251,10 +258,10 @@ function push_arm() {
exit 1
fi

if [ ! -d "$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH" ]; then
echo "Error: $ANDROIDNDK error 1."
exit 1
fi
# if [ ! -d "$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH" ]; then
# echo "Error: $ANDROIDNDK error 1."
# exit 1
# fi

if [ ! -d "$ANDROIDNDK/toolchains/llvm/prebuilt/$PYPLATFORM-x86_64/sysroot/usr/lib/$TOOLCHAIN_BASEDIR/$ANDROIDAPI" ]; then
echo "Error: $ANDROIDNDK error 2."
Expand All @@ -270,16 +277,16 @@ function push_arm() {
echo "Error: $ANDROIDNDK error 4."
exit 1
fi

export CFLAGS="-DANDROID -fomit-frame-pointer -I$STAGE_PATH/include"
export CFLAGS="$CFLAGS -Wno-unused-command-line-argument -Wno-macro-redefined"
export CFLAGS="$CFLAGS -L$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"
# export CFLAGS="$CFLAGS -L$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"
export CFLAGS="$CFLAGS -U__ANDROID_MIN_SDK_VERSION__"
export CFLAGS="$CFLAGS -D__ANDROID_MIN_SDK_VERSION__=$ANDROIDAPI"
export CFLAGS="$CFLAGS -U__ANDROID_API_"
export CFLAGS="$CFLAGS -D__ANDROID_API__=$ANDROIDAPI"
export LDFLAGS="-lm -L$STAGE_PATH/lib"
export LDFLAGS="$LDFLAGS -L$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"
# export LDFLAGS="$LDFLAGS -L$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"
export LDFLAGS="$LDFLAGS -L$ANDROIDNDK/toolchains/llvm/prebuilt/$PYPLATFORM-x86_64/sysroot/usr/lib/$TOOLCHAIN_BASEDIR/$ANDROIDAPI"

if [ "X${ARCH}" == "Xarmeabi-v7a" ]; then
Expand All @@ -302,7 +309,8 @@ function push_arm() {
ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$ANDROIDNDK/toolchains/llvm/prebuilt/$PYPLATFORM-x86_64/sysroot/usr/lib/$TOOLCHAIN_BASEDIR/$ANDROIDAPI"

# folder with libc++_shared.so
ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"
# ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH"

# keep in sync with CMake's -DANDROID_STL=c++_shared
export LDFLAGS="$LDFLAGS -Wl,-lc++_shared"

Expand Down
17 changes: 9 additions & 8 deletions android/recipes/libtasn1/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ function shouldbuild_libtasn1() {
function build_libtasn1() {
push_arm

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try cd $BUILD_libtasn1
try $MAKE autoreconf

try mkdir -p $BUILD_PATH/libtasn1/build-$ARCH
try cd $BUILD_PATH/libtasn1/build-$ARCH

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH --host=${TOOLCHAIN_PREFIX} --disable-shared

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH \
--host=$TOOLCHAIN_PREFIX \
--build=x86_64 \
--disable-shared --disable-gcc-warnings --disable-silent-rules

try $MAKESMP install

pop_arm
}

Expand Down
23 changes: 19 additions & 4 deletions android/recipes/openssl/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ function prebuild_openssl() {

function shouldbuild_openssl() {
# If lib is newer than the sourcecode skip build
if [ $STAGE_PATH/lib/libssl.so -nt $BUILD_openssl/.patched ]; then
if [ $STAGE_PATH/lib/libssl_3.so -nt $BUILD_openssl/.patched ]; then
DO_BUILD=0
fi

DO_BUILD=1
}

# function called to build the source code
Expand All @@ -44,17 +46,30 @@ function build_openssl() {

try $BUILD_openssl/Configure shared ${SSL_ARCH} -D__ANDROID_API__=$ANDROIDAPI --prefix=/
${MAKE} depend
${MAKE} DESTDIR=${STAGE_PATH} SHLIB_VERSION_NUMBER= SHLIB_EXT=_1_1.so build_libs
${MAKE} DESTDIR=${STAGE_PATH} SHLIB_VERSION_NUMBER= build_libs

# install
try ${MAKE} SHLIB_VERSION_NUMBER= SHLIB_EXT=_1_1.so DESTDIR=$STAGE_PATH install_dev install_engines
try ${MAKE} SHLIB_VERSION_NUMBER= DESTDIR=$STAGE_PATH install_dev

cd $STAGE_PATH/lib
rm libcrypto.a
rm libssl.a


mv libcrypto.so libcrypto_3.so
try patchelf --set-soname libcrypto_3.so libcrypto_3.so

mv libssl.so libssl_3.so
try patchelf --set-soname libssl_3.so libssl_3.so

try patchelf --replace-needed libcrypto.so libcrypto_3.so libssl_3.so

pop_arm
}

# function called after all the compile have been done
function postbuild_openssl() {
if [ ! -f ${STAGE_PATH}/lib/libssl.so ]; then
if [ ! -f ${STAGE_PATH}/lib/libssl_3.so ]; then
error "Library was not successfully build for ${ARCH}"
exit 1;
fi
Expand Down
11 changes: 11 additions & 0 deletions android/recipes/qgis/patches/geonode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/core/geocms/geonode/qgsgeonoderequest.cpp
+++ b/src/core/geocms/geonode/qgsgeonoderequest.cpp
@@ -426,7 +426,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle( cons
return geoNodeStyle;
}

- success = geoNodeStyle.body.setContent( this->lastResponse() );
+ success = bool(geoNodeStyle.body.setContent( this->lastResponse() ));
if ( !success )
{
return geoNodeStyle;
3 changes: 3 additions & 0 deletions android/recipes/qgis/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ function prebuild_qgis() {
# remove when https://github.com/qgis/QGIS/pull/50866 is merged
try patch -p1 < $RECIPE_qgis/patches/qt640.patch

# remove when using qgis 3.30+
try patch -p1 < $RECIPE_qgis/patches/geonode.patch

touch .patched
}

Expand Down
Empty file removed aqtinstall.log
Empty file.
2 changes: 1 addition & 1 deletion ios/config.conf.default
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export QT_VERSION=6.3.2
export QT_VERSION=6.5.0

export ROOT_OUT_PATH=/opt/INPUT/input-sdk-ios-DEV

Expand Down
13 changes: 5 additions & 8 deletions ios/recipes/libtasn1/recipe.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,14 @@ function shouldbuild_libtasn1() {
function build_libtasn1() {
push_arm

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try cd $BUILD_libtasn1
try $MAKE autoreconf

try mkdir -p $BUILD_PATH/libtasn1/build-$ARCH
try cd $BUILD_PATH/libtasn1/build-$ARCH

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH --host=${TOOLCHAIN_PREFIX} --disable-shared

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH --host=${TOOLCHAIN_PREFIX} --disable-shared --disable-gcc-warnings --disable-silent-rules
try $MAKESMP install

pop_arm
}

Expand Down
11 changes: 11 additions & 0 deletions ios/recipes/qgis/patches/geonode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/core/geocms/geonode/qgsgeonoderequest.cpp
+++ b/src/core/geocms/geonode/qgsgeonoderequest.cpp
@@ -426,7 +426,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle( cons
return geoNodeStyle;
}

- success = geoNodeStyle.body.setContent( this->lastResponse() );
+ success = bool(geoNodeStyle.body.setContent( this->lastResponse() ));
if ( !success )
{
return geoNodeStyle;
3 changes: 3 additions & 0 deletions ios/recipes/qgis/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function prebuild_qgis() {
# remove when https://github.com/qgis/QGIS/pull/50866 is merged
try patch -p1 < $RECIPE_qgis/patches/qt640.patch

# remove when using qgis 3.30+
try patch -p1 < $RECIPE_qgis/patches/geonode.patch

touch .patched
}

Expand Down
2 changes: 1 addition & 1 deletion ios/tools/depsort.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2
#! /usr/bin/env python3

import argparse
import sys
Expand Down
11 changes: 11 additions & 0 deletions linux/recipes/qgis/patches/geonode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/core/geocms/geonode/qgsgeonoderequest.cpp
+++ b/src/core/geocms/geonode/qgsgeonoderequest.cpp
@@ -426,7 +426,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle( cons
return geoNodeStyle;
}

- success = geoNodeStyle.body.setContent( this->lastResponse() );
+ success = bool(geoNodeStyle.body.setContent( this->lastResponse() ));
if ( !success )
{
return geoNodeStyle;
3 changes: 3 additions & 0 deletions linux/recipes/qgis/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function prebuild_qgis() {
# remove when https://github.com/qgis/QGIS/pull/50866 is merged
try patch -p1 < $RECIPE_qgis/patches/qt640.patch

# remove when using qgis 3.30+
try patch -p1 < $RECIPE_qgis/patches/geonode.patch

touch .patched
}

Expand Down
2 changes: 1 addition & 1 deletion mac/config.conf.default
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### PATHS ####
export QT_VER="6.4.0"
export QT_VER="6.5.0"
export MACOSX_DEPLOYMENT_TARGET=10.15.0
export ROOT_OUT_PATH=/Users/$USER/Projects/input-sdk/build/macos

Expand Down
13 changes: 4 additions & 9 deletions mac/recipes/libtasn1/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,13 @@ function shouldbuild_libtasn1() {
# function called to build the source code
function build_libtasn1() {
push_env

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try cd $BUILD_libtasn1
try $MAKE autoreconf

patch_configure_file configure

try mkdir -p $BUILD_PATH/libtasn1/build-$ARCH
try cd $BUILD_PATH/libtasn1/build-$ARCH

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH --disable-shared

export CFLAGS="${CFLAGS} -Wno-error=implicit-function-declaration"

try $BUILD_libtasn1/configure --disable-doc --disable-valgrind-tests --prefix=$STAGE_PATH --disable-shared --disable-gcc-warnings --disable-silent-rules
try $MAKESMP install

pop_env
Expand Down
11 changes: 11 additions & 0 deletions mac/recipes/qgis/patches/geonode.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/core/geocms/geonode/qgsgeonoderequest.cpp
+++ b/src/core/geocms/geonode/qgsgeonoderequest.cpp
@@ -426,7 +426,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle( cons
return geoNodeStyle;
}

- success = geoNodeStyle.body.setContent( this->lastResponse() );
+ success = bool(geoNodeStyle.body.setContent( this->lastResponse() ));
if ( !success )
{
return geoNodeStyle;
3 changes: 3 additions & 0 deletions mac/recipes/qgis/recipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function prebuild_qgis() {
# remove when https://github.com/qgis/QGIS/pull/50866 is merged
try patch -p1 < $RECIPE_qgis/patches/qt640.patch

# remove when using qgis 3.30+
try patch -p1 < $RECIPE_qgis/patches/geonode.patch

touch .patched
}

Expand Down
2 changes: 1 addition & 1 deletion mac/tools/depsort.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python2
#! /usr/bin/env python3

import argparse
import sys
Expand Down
4 changes: 2 additions & 2 deletions vcpkg-overlay/ports/geodiff/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to update both of these versions together.
set(GEODIFF_VERSION 1.0.6)
set(GEODIFF_HASH e91c189fd14434cb8b1975de52f986e54495a4cebde27c53ec5b4fef78ff880df3b329705b50a39ffec3c60bae62967e235fd8f60ed41d8505191184d02cae8f)
set(GEODIFF_VERSION 2.0.2)
set(GEODIFF_HASH 290f10ec1a0d419d13996e915d02b7d226f23359c2745a72a1a286d439bed3afdf536d5bb8771c3d4fb3df2d56ac5c0d4c7f178ee31493f4bf02d597c8b9a878)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
Expand Down
Loading

0 comments on commit d21c4f3

Please sign in to comment.