Skip to content

Commit

Permalink
Merge pull request zeromq#1301 from stephan57160/master
Browse files Browse the repository at this point in the history
Problem: Android - Build failure on Ubuntu 22.04
  • Loading branch information
bluca authored Sep 19, 2022
2 parents 2f48a7d + 516d7dd commit 4d393c8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions zproject_java.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -790,13 +790,16 @@ echo "******** Building $(project.name:) JNI for Android"
rm -rf build && mkdir build && cd build
# Export android build's environment variables for cmake
android_build_set_env $BUILD_ARCH
cmake -v \\
-DANDROID_ABI=$TOOLCHAIN_ABI \\
-DANDROID_PLATFORM=$MIN_SDK_VERSION \\
-DANDROID_STL=c++_shared \\
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \\
-DCMAKE_FIND_ROOT_PATH=$ANDROID_BUILD_PREFIX \\
..
(
VERBOSE=1 \\
cmake \\
-DANDROID_ABI=$TOOLCHAIN_ABI \\
-DANDROID_PLATFORM=$MIN_SDK_VERSION \\
-DANDROID_STL=c++_shared \\
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake \\
-DCMAKE_FIND_ROOT_PATH=$ANDROID_BUILD_PREFIX \\
..
)

# CMake wrongly searches current directory and then toolchain path instead
# of lib path for these files, so make them available temporarily
Expand Down

0 comments on commit 4d393c8

Please sign in to comment.