Anton Gerasimov
2018-04-23 16:03:28 UTC
Hi all,
I'm new to Android and am trying to compile a pre-existing library written
a C++ as a native part of an Android application. The library uses CMake
and is divided into small modules, so I decided as a first try to add one
of these modules to the CMakeLists.txt generated by Android Studio (under
"External Build Files" list) with add_subdirectory cmake command.
Unfortunately the error message I've got from Gradle was not really
helpful. When I try to "Sync" the project, I get a single error in
top-level task and the error is just "Extenal native build issues: Error
configuring". Build gives and error in "Run build" -> "Calculate task
graph" -> "Configure project: app" with "Cause: executing external native
build for cmake". Both of these unfortunately give me no insight into what
has failed. Is there a way to get the actual error log from Android Studio?
Maybe the whole idea to use the Studio was wrong and there is a command
line build system for Android (if yes, is the workflow documented
somewhere)?
Thanks in advance.
I'm new to Android and am trying to compile a pre-existing library written
a C++ as a native part of an Android application. The library uses CMake
and is divided into small modules, so I decided as a first try to add one
of these modules to the CMakeLists.txt generated by Android Studio (under
"External Build Files" list) with add_subdirectory cmake command.
Unfortunately the error message I've got from Gradle was not really
helpful. When I try to "Sync" the project, I get a single error in
top-level task and the error is just "Extenal native build issues: Error
configuring". Build gives and error in "Run build" -> "Calculate task
graph" -> "Configure project: app" with "Cause: executing external native
build for cmake". Both of these unfortunately give me no insight into what
has failed. Is there a way to get the actual error log from Android Studio?
Maybe the whole idea to use the Studio was wrong and there is a command
line build system for Android (if yes, is the workflow documented
somewhere)?
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/c71eba74-ee38-4297-be60-9e45e675fc58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/c71eba74-ee38-4297-be60-9e45e675fc58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.