Skip to content

Patch for NDK r10 and Android-L#3327

Merged
opencv-pushbot merged 1 commit intoopencv:2.4from
JonasVautherin:patch_cmake_android_r10
Oct 11, 2014
Merged

Patch for NDK r10 and Android-L#3327
opencv-pushbot merged 1 commit intoopencv:2.4from
JonasVautherin:patch_cmake_android_r10

Conversation

@JonasVautherin
Copy link
Copy Markdown
Contributor

With the NDK r10 and Android-L, android.toolchain.cmake could not find the NDK_API_LEVEL as it was doing before.

Indeed, it was looking in the corresponding file (api-level.h corresponding to the platform) for:

#define __ANDROID_API__ <version>

With being a number. Now, the files look like:

#define __ANDROID_API__ 9999 /*'L'*/

But 9999 does not work with CMake, since it is expecting L.

I therefore added a new regex to handle this case.

@vpisarev
Copy link
Copy Markdown
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit d83372a into opencv:2.4 Oct 11, 2014
@JonasVautherin JonasVautherin deleted the patch_cmake_android_r10 branch October 12, 2014 14:58
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

Successfully merging this pull request may close these issues.

4 participants