-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Errors when building for Android #2452
Comments
Can you confirm that this dir does exist and that you are running the cmake commands with the proper permissions to access this folder:
This error:
points to something being wrong with this folder. You shouldn't need admin/sudo access to the folder but it could be blocked by that. |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
The problem is the non existence of "android-build" folder inside the "aws-sdk-cpp" folder. i feel this suppose to be present in the aws-sdk-cpp in the latest code (main branch). However, When i refer the branch "version1.9", the "android-build" folder exists. Please recommend which branch to be used to create Andorid build. |
We are also facing the same issue sdk compiling fine for win and linux.But for android we are helples. -- Building Curl as part of AWS SDK |
Hello @vinothkumarc2805 and @ankurgamedev , Thank you very much for your submissions and collaboration. In the meantime, are you able to work around this by using previous versions of the SDK? Thank you once again for your time and for reporting this issue. Sincerely, Yasmine. |
Yes sdk 1.8 is compiling fine. But as a game project we have four build targets Win64 linux ios and android and want to stick with same latest sdk version. |
Thank you very much for your feedback @ankurgamedev! Sincerely, Yasmine. |
### If you want build latest sdk for android change below files and it will compile successfully.Tested and Working.
Thanks |
After using this fix i got a problem with OpelSSL -- Configuring incomplete, errors occurred!` Do you know what could be the possible causes and solutions? |
Please provide cmake command you are using to build?? |
@ankurgamedev here it is |
Try -G "Ninja" instead of -GNinja and cmake version 3.21.6 installed because as far as I know sdk has issues with latest cmake |
I have install cmake version 3.21.6 and changed cmake command to |
Are you able to build for windows?? Have you installed visual studio llvm component for target cpu. Please share visual studio components installed? |
Yes, i am able to build for windows, problems start with build for android When i'm trying to build with VS 2019 - error is different: When compile with Ninja error is still with OpenSSL |
Maybe add one:
|
Signed-off-by: AMZN-Gene <genewalt@amazon.com>
Signed-off-by: AMZN-Gene <genewalt@amazon.com>
Signed-off-by: AMZN-Gene <genewalt@amazon.com>
|
AWS C++ SDK upgrade from 1.9 to 1.11 in order to support GameLift 5.1.1 Leaving Android back at 1.9 due to a bug: [Errors when building for Android · Issue #2452 · aws/aws-sdk-cpp (github.com)](aws/aws-sdk-cpp#2452) AWS MobileAnalytics no longer exists and was replaced by AWS Pinpoint. Removing MobileAnalytics and can bring back AWS Pinpoint at a later date if desired. Pass AWSCore.Tests Pass AWSClientAuth.Tests Pass AWSGameLift.Client.Tests Pass AWSGameLift.Server.Tests Pass AWSMetrics.Tests Deployed GameLift server on Windows and Linux
Describe the issue
While creating the AWS SDK C++ for Android as per the AWS SDK C++ documentation, I am getting the following error.
vinoth@vinoth-HP-245-G7-Notebook-PC:~/sdk_build$ cmake ../aws-sdk-cpp -DNDK_DIR="/home/vinoth/Android/Sdk/ndk/21.3.6528147/" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug -DCUSTOM_MEMORY_MANAGEMENT=ON -DTARGET_ARCH=ANDROID -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_PREFIX_PATH="/usr/local" -DLEGACY_MODE=OFF
CMake Warning at CMakeLists.txt:9 (message):
In 1.11 releases, we are releasing experimental alternative building
mode.By setting -DLEGACY_MODE=OFF you can test our advances in modern CMake
building and provide early feedback. The legacy support is set by default
in 1.11, when you complete build updating scripts please update the build
flags as mentioned in README.md and set -DLEGACY_BUILD=OFF. The legacy
support will be removed at 1.12.0 release.
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_policy):
The OLD behavior for policy CMP0077 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Building AWS libraries as static objects
-- Android ABI: none specified, defaulting to armeabi-v7a
-- Android toolchain unspecified, defaulting to clang
-- Android std lib: c++_shared
-- Android API level: 21
-- Building project version: 1.11.62
-- Building Zlib as part of AWS SDK
-- Encryption: LibCrypto
-- Building Openssl as part of AWS SDK
-- Http client: Curl
-- Building Curl as part of AWS SDK
CMake Error: The source directory "/home/vinoth/aws-sdk-cpp/android-build" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Error at cmake/build_external.cmake:139 (message):
Failed to configure dependency libraries.
Call Stack (most recent call first):
CMakeLists.txt:198 (include)
-- Configuring incomplete, errors occurred!
Links
https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/setup-linux.html
The text was updated successfully, but these errors were encountered: