Skip to content

Commit

Permalink
first try
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Apr 12, 2023
1 parent 3b165cc commit 206489d
Show file tree
Hide file tree
Showing 29 changed files with 139 additions and 72 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ 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' }}
XC_VERSION: ${{ '14.3' }}

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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
XC_VERSION: ${{ '14.2' }}
CACHE_VERSION: 0
XC_VERSION: ${{ '14.3' }}

steps:
- uses: actions/checkout@v2
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
6 changes: 3 additions & 3 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ 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' }}
XC_VERSION: ${{ '14.3' }}

steps:
- uses: actions/checkout@v2
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
17 changes: 9 additions & 8 deletions android/distribute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,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 +270,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 +302,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
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
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
2 changes: 1 addition & 1 deletion vcpkg-overlay/ports/geodiff/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Be sure to update both of these versions together.
set(GEODIFF_VERSION 1.0.6)
set(GEODIFF_VERSION 2.0.2)
set(GEODIFF_HASH e91c189fd14434cb8b1975de52f986e54495a4cebde27c53ec5b4fef78ff880df3b329705b50a39ffec3c60bae62967e235fd8f60ed41d8505191184d02cae8f)

vcpkg_from_github(
Expand Down
2 changes: 1 addition & 1 deletion vcpkg-overlay/ports/geodiff/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "geodiff",
"version": "1.0.6",
"version": "2.0.2",
"port-version": 0,
"description": "Library for handling diffs for geospatial data",
"homepage": "https://github.com/MerginMaps/geodiff",
Expand Down
11 changes: 11 additions & 0 deletions vcpkg-overlay/ports/qgis-qt6/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: 2 additions & 1 deletion vcpkg-overlay/ports/qgis-qt6/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(QGIS_REF final-3_28_0)
set(QGIS_REF final-3_28_5)
set(QGIS_SHA512 35579ec2122059be7ec9fad7742e8e94f2bc646071cc5a5db9ba584cb44ee8784d5bbc8cf7225fda80c647c093ad06667b6388846fdd4eab01ffc14e7a0a08b3)

vcpkg_from_github(
Expand All @@ -14,6 +14,7 @@ vcpkg_from_github(
crssync.patch
bigobj.patch
qt640.patch
geonode.patch
)

file(REMOVE ${SOURCE_PATH}/cmake/FindQtKeychain.cmake)
Expand Down
2 changes: 1 addition & 1 deletion vcpkg-overlay/ports/qt6/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qt6",
"version-string": "6.4.2",
"version-string": "6.5.0",
"description": "Qt6 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
"homepage": "https://www.qt.io/"
}
Loading

0 comments on commit 206489d

Please sign in to comment.