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

An error occurred when I executed the following command “conan build . --profile:build=default --build=missing” #1

Open
WangHao311 opened this issue Apr 17, 2024 · 1 comment

Comments

@WangHao311
Copy link

WangHao311 commented Apr 17, 2024

My profile is as follows:

[settings]
os=Android
os.api_level=26
arch=armv8
build_type=Release
compiler=clang
compiler.version=17
compiler.libcxx=c++_shared
compiler.cppstd=20

[conf]
tools.android:ndk_path=/home/wh/Android/Sdk/ndk/25.2.9519653

[buildenv]
CHOST=aarch64-linux-android
CC=/home/wh/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang
CXX=/home/wh/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang++

But I occurred an error while executing the following command “conan build . --profile:build=default --build=missing”.

-------- Installing package cmake/3.29.0 (2 of 14) --------
cmake/3.29.0: Building from source
cmake/3.29.0: Package cmake/3.29.0:15a941fe83fff0b4f3a7082c59650f85ed38cf06
cmake/3.29.0: Copying sources to build folder
cmake/3.29.0: Building your package in /home/wh/.conan2/p/b/cmake0b68c9ca57c3f/b
cmake/3.29.0: Generating aggregated env files
cmake/3.29.0: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
cmake/3.29.0: Calling build()
cmake/3.29.0: ERROR: 
Package '15a941fe83fff0b4f3a7082c59650f85ed38cf06' build failed
cmake/3.29.0: WARN: Build folder /home/wh/.conan2/p/b/cmake0b68c9ca57c3f/b
ERROR: cmake/3.29.0: Error in build() method, line 30
	get(self, **self.conan_data["sources"][self.version][str(self.settings.os)][arch],
	KeyError: 'Android'

May I ask how I need to make changes?

@guoguo1314
Copy link

Hello, I've encountered the same issue. Have you managed to resolve it? If so, how did you solve it? Thank you in advance!

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

No branches or pull requests

2 participants