Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

How to compile armv7 arch in centos 7 #167

Open
zenghp97 opened this issue Sep 7, 2020 · 3 comments
Open

How to compile armv7 arch in centos 7 #167

zenghp97 opened this issue Sep 7, 2020 · 3 comments

Comments

@zenghp97
Copy link

zenghp97 commented Sep 7, 2020

I compiled the ARMV7 arch of libuv dynamic library in centos7 with android-ndk-r21b. as follow command:
cmake ../ -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/data/src/utopalive/network/20200409/tool/android/android-ndk-r21b -DCMAKE_SYSTEM_VERSION=24 -DCMAKE_C_COMPILER=aarch64-linux-android-gcc

Compile failed with the following information:

-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:

aarch64-linux-android-gcc

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.

thus, how to compile armv7 ach in centos 7? thanks!

@bnoordhuis bnoordhuis transferred this issue from libuv/libuv Sep 7, 2020
@bnoordhuis
Copy link
Member

I'm moving this to libuv/help because that looks like a system-local issue, not libuv.

You probably need to either pass the full path in -DCMAKE_C_COMPILER=aarch64-linux-android-gcc or make sure it's on your PATH.

@zenghp97
Copy link
Author

zenghp97 commented Sep 9, 2020

It feels unfriendly to remove the Android Help for compile cross platform. At a minimum, you need to give a description of the variables or macros required. Otherwise, how would anyone know?

@bnoordhuis
Copy link
Member

You're welcome to send a pull request that updates the README.

To set expectations straight: Android is not a supported platform. We accept pull requests but other than that you're on your own.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants