From c83cf637436c9747ef78afe3a4149ed2551e3f2d Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sun, 23 Aug 2020 00:35:03 +0200 Subject: [PATCH 1/3] Use shared c++ --- distribute.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribute.sh b/distribute.sh index 1c634e9..3644b5b 100755 --- a/distribute.sh +++ b/distribute.sh @@ -239,7 +239,7 @@ function push_arm() { export CMAKECMD="$CMAKECMD -DANDROID_LINKER_FLAGS=$ANDROID_CMAKE_LINKER_FLAGS" export CMAKECMD="$CMAKECMD -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$ANDROIDNDK/build/cmake/android.toolchain.cmake" export CMAKECMD="$CMAKECMD -DCMAKE_FIND_ROOT_PATH:PATH=$ANDROID_NDK;$QT_ANDROID;$BUILD_PATH;$STAGE_PATH" - export CMAKECMD="$CMAKECMD -DANDROID_ABI=$ARCH -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=$ANDROIDAPI -DANDROID=ON" + export CMAKECMD="$CMAKECMD -DANDROID_ABI=$ARCH -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=$ANDROIDAPI -DANDROID=ON -DANDROID_STL=c++_shared" # export environment for Qt From 85a4799a621c6a79d8514b4224ff9f2d9bb4f70b Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 27 Aug 2020 20:53:08 +0200 Subject: [PATCH 2/3] Remove unrequired build params --- recipes/qtkeychain/recipe.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/recipes/qtkeychain/recipe.sh b/recipes/qtkeychain/recipe.sh index 5371745..0f96615 100755 --- a/recipes/qtkeychain/recipe.sh +++ b/recipes/qtkeychain/recipe.sh @@ -50,13 +50,7 @@ function build_qtkeychain() { # configure try $CMAKECMD \ - -DQT4_BUILD=OFF \ - -DQCA_SUFFIX=qt5 \ -DCMAKE_INSTALL_PREFIX:PATH=$STAGE_PATH \ - -DBUILD_TESTS=OFF \ - -DBUILD_TOOLS=OFF \ - -DWITH_nss_PLUGIN=OFF \ - -DWITH_pkcs11_PLUGIN=OFF \ $BUILD_qtkeychain try $MAKESMP VERBOSE=1 install From 41a0132fe99f93dac07e874814fe385fd31f970e Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 27 Aug 2020 23:13:17 +0200 Subject: [PATCH 3/3] shared c++ --- distribute.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribute.sh b/distribute.sh index 3644b5b..0556683 100755 --- a/distribute.sh +++ b/distribute.sh @@ -193,7 +193,7 @@ function push_arm() { export CFLAGS="$CFLAGS -isystem $ANDROIDNDK/sysroot/usr/include -isystem $ANDROIDNDK/sysroot/usr/include/$TOOLCHAIN_SHORT_PREFIX" export CFLAGS="$CFLAGS -D__ANDROID_API__=$ANDROIDAPI" - export CXXFLAGS="$CFLAGS" + export CXXFLAGS="$CFLAGS -stdlib=libc++" export CPPFLAGS="$CFLAGS" if [ "X${ARCH}" == "Xarmeabi-v7a" ]; then @@ -211,7 +211,7 @@ function push_arm() { ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$QT_ANDROID/lib" ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$ANDROIDNDK/platforms/android-$ANDROIDAPI/arch-$QT_ARCH_PREFIX/usr/lib" ANDROID_CMAKE_LINKER_FLAGS="$ANDROID_CMAKE_LINKER_FLAGS;-Wl,-rpath=$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH" - export LDFLAGS="-Wl,-rpath=$STAGE_PATH/lib $LDFLAGS" + export LDFLAGS="-Wl,-rpath=$STAGE_PATH/lib -Wl,-rpath=$ANDROIDNDK/sources/cxx-stl/llvm-libc++/libs/$ARCH $LDFLAGS" fi export PATH="$ANDROIDNDK/toolchains/llvm/prebuilt/$PYPLATFORM-x86_64/bin/:$ANDROIDSDK/tools:$ANDROIDNDK:$QT_ANDROID/bin:$PATH"