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

how to compile source for android using CMake #91

Open
ntimesc opened this issue Jun 1, 2016 · 1 comment
Open

how to compile source for android using CMake #91

ntimesc opened this issue Jun 1, 2016 · 1 comment

Comments

@ntimesc
Copy link

ntimesc commented Jun 1, 2016

i am trying to compile poco for android using CMake , i am using CMake 3.5.2 and Android CMake

https://github.com/taka-no-me/android-cmake

C:\Program Files (x86)\CMake\bin>cmake -DCMAKE_TOOLCHAIN_FILE="E:\ndk\android-cm
ake-master\android.toolchain.cmake" -DANDROID_NDK="D:\android-ndk-r10e" -DCMAKE_
BUILD_TYPE=Release -DANDROID_ABI="armeabi" "E:\ndk\poco-1.7.3" && cmake --build


i am getting following error 

> CMake Error at CMakeLists.txt:11 (project):
>   CMAKE_SYSTEM_NAME is 'Android' but 'NVIDIA Nsight Tegra Visual Studio
>   Edition' is not installed.
> 
> 
> -- Configuring incomplete, errors occurred!
> See also "C:/Program Files (x86)/CMake/bin/CMakeFiles/CMakeOutput.log".


can anyone please suggest a proper roadmap to compile it for android , i hunt over a net a lot but couldnt find anything
@yuangu
Copy link

yuangu commented Aug 16, 2017

cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=C:/code/android-cmake/android.toolchain.cmake -DCMAKE_MAKE_PROGRAM= "%ANDROID_NDK%\prebuilt\windows\bin\make.exe" -DANDROID_NATIVE_API_LEVEL=android-19 ..

it's work.

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