Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve android-build tools path #2685

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Resolve android-build tools path #2685

merged 1 commit into from
Sep 26, 2023

Conversation

swan-amazon
Copy link
Contributor

Fixes #2452

In a previous commit a bunch of directories were moved under /tools, including android-build. At this time, scripts and CMake configurations were not updated, which has caused build failures.

Fixes #2452

In a previous [commit](de98602)
a bunch of directories were moved under /tools, including android-build.
At this time, scripts and CMake configurations were not updated, which
has caused build failures.
@swan-amazon
Copy link
Contributor Author

I was able to successfully build the static libraries for Android using these un-optimized sequence of commands:

export ANDROID_NDK=/opt/android-ndk-r19c
export ANDROID_NDK_ROOT=$ANDROID_NDK
export PATH=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:$PATH
mkdir -p /workspace/sysroot/zlib/include/zlib
mkdir -p /workspace/build/aws-sdk-cpp && cd /workspace/build/aws-sdk-cpp
cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_ONLY="core;s3" -DTARGET_ARCH=ANDROID -DCMAKE_INSTALL_PREFIX=/workspace/sysroot -DCMAKE_TOOLCHAIN_FILE=/workspace/android_arm64_toolchain.cmake /workspace/aws-sdk-cpp
make -j$(nproc)
make install

@SergeyRyabinin SergeyRyabinin merged commit 16f2ed6 into aws:main Sep 26, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors when building for Android
3 participants