# \#ndk

**URL:** https://forum.opencv.org/tag/ndk/51.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Python binding prolem when cross compiling OpenCV4.10 with Android cmake and NDK toolchains on Ubuntu](https://forum.opencv.org/t/python-binding-prolem-when-cross-compiling-opencv4-10-with-android-cmake-and-ndk-toolchains-on-ubuntu/23215)

<div class="topic-metadata">

**Author:** [@oldcoder-pixel](https://forum.opencv.org/u/oldcoder-pixel)\
**Replies:** 0\
**Last updated:** [July 19, 2025, 12:00pm UTC](https://forum.opencv.org/t/python-binding-prolem-when-cross-compiling-opencv4-10-with-android-cmake-and-ndk-toolchains-on-ubuntu/23215 "2025-07-19T12:00:06Z")

</div>

Environment and Target Build environment: Ubuntu Target environment: aarch64-Linux-Android I have cross compiled Python 3.11 and it can run on Android arm-v8a. I want to cross compile OpenCV to generate a Python libr…

---

## [cv::VideoCapture::read() empty frames](https://forum.opencv.org/t/cv-read-empty-frames/16820)

<div class="topic-metadata">

**Author:** [@jzavala](https://forum.opencv.org/u/jzavala)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 3:13pm UTC](https://forum.opencv.org/t/cv-read-empty-frames/16820 "2024-03-21T15:13:12Z")

</div>

Hello OpenCV Community On Android C++ I’m getting empty frames from cv::VideoCapture:read() basically im doing this: VideoCapture camera; camera.open(index, mode); if (camera.isOpened())//it's ok here return 0.0; …

---

## [No NDK Camera support in prebuilt 4.9.0 binary for Android?](https://forum.opencv.org/t/no-ndk-camera-support-in-prebuilt-4-9-0-binary-for-android/16600)

<div class="topic-metadata">

**Author:** [@DarkSoda](https://forum.opencv.org/u/DarkSoda)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 11:02pm UTC](https://forum.opencv.org/t/no-ndk-camera-support-in-prebuilt-4-9-0-binary-for-android/16600 "2024-02-26T23:02:08Z")

</div>

I am trying to use OpenCV v4.9.0 for Android to open a camera in my Native C++ code, but got failure after trying different index and api combinations. When trying cv::CAP\_ANDROID, I got this error \[ WARN:0@0.002\] glob…

---

## [OpenCV 4.5.2 Android in Visual Studio 2019](https://forum.opencv.org/t/opencv-4-5-2-android-in-visual-studio-2019/3614)

<div class="topic-metadata">

**Author:** [@Arvid](https://forum.opencv.org/u/Arvid)\
**Replies:** 12\
**Last updated:** [June 10, 2021, 10:22pm UTC](https://forum.opencv.org/t/opencv-4-5-2-android-in-visual-studio-2019/3614 "2021-06-10T22:22:39Z")

</div>

I try to compile a .so library using Visual Studio 2019 along with OpenCV Android in order to use this library in Unity. There are some answers on how to configure Visual Studio to use OpenCV Android (here or here) but …

---

## [Which ndk is ideal for 4.5.2?](https://forum.opencv.org/t/which-ndk-is-ideal-for-4-5-2/3770)

<div class="topic-metadata">

**Author:** [@SavedByZero](https://forum.opencv.org/u/SavedByZero)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 7:56pm UTC](https://forum.opencv.org/t/which-ndk-is-ideal-for-4-5-2/3770 "2021-06-09T19:56:17Z")

</div>

Hello, For anyone who knows about the android sdks – which android NDK goes with OpenCV 4.5.2 for library compilation purposes? 21d is no longer listed on the downloads page. I tried to match it with 21e, but ran into…

---

## [Trouble with using a OpenCV4.5.0 c++ library in Unity on Android](https://forum.opencv.org/t/trouble-with-using-a-opencv4-5-0-c-library-in-unity-on-android/2741)

<div class="topic-metadata">

**Author:** [@FerJZhao](https://forum.opencv.org/u/FerJZhao)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 4:10am UTC](https://forum.opencv.org/t/trouble-with-using-a-opencv4-5-0-c-library-in-unity-on-android/2741 "2021-04-13T04:10:26Z")

</div>

The development environment： Windows10：19041 AndroidStudio： 4.1.3 AndroidSDK：Android11 NDK：22.0.7026061 OpenCV：4.5.0 Unity：2019.4.18f1c1 Description： I built my AndroidStudio native c++ project and successfully a…

---

## [Android problem to add 64bit libraries for Play Store compatibility (opencv2413)](https://forum.opencv.org/t/android-problem-to-add-64bit-libraries-for-play-store-compatibility-opencv2413/2966)

<div class="topic-metadata">

**Author:** [@Roberto\_Zanaboni](https://forum.opencv.org/u/Roberto_Zanaboni)\
**Replies:** 0\
**Last updated:** [April 24, 2021, 10:02pm UTC](https://forum.opencv.org/t/android-problem-to-add-64bit-libraries-for-play-store-compatibility-opencv2413/2966 "2021-04-24T22:02:44Z")

</div>

Hi, my x64 device wants this line of code ndk.abiFilters ‘x86’, ‘armeabi’, ‘mips’, ‘armeabi-v7a’ in the Gradle. Without the line of code, my camera show only a black display. My problem is that I cannot release my app…

---

## [Linker errors in Android App using OpenCV: undefined reference to 'std::\_\_ndk1::to\_string(int)](https://forum.opencv.org/t/linker-errors-in-android-app-using-opencv-undefined-reference-to-std-to-string-int/2503)

<div class="topic-metadata">

**Author:** [@Kazanian](https://forum.opencv.org/u/Kazanian)\
**Replies:** 0\
**Last updated:** [March 31, 2021, 8:53am UTC](https://forum.opencv.org/t/linker-errors-in-android-app-using-opencv-undefined-reference-to-std-to-string-int/2503 "2021-03-31T08:53:46Z")

</div>

Hi, I need to build OpenCV and integrate it into my Capacitor Android Plugin. Building OpenCV and including OpenCV in my c++ code worked. But when I ran the app, there are a lot of errors of this kind: logtagconfigpar…

---

## [Trying to make a unity plugin for android with Visual Studio/C++: iostream not found](https://forum.opencv.org/t/trying-to-make-a-unity-plugin-for-android-with-visual-studio-c-iostream-not-found/3698)

<div class="topic-metadata">

**Author:** [@SavedByZero](https://forum.opencv.org/u/SavedByZero)\
**Replies:** 14\
**Last updated:** [June 8, 2021, 7:22pm UTC](https://forum.opencv.org/t/trying-to-make-a-unity-plugin-for-android-with-visual-studio-c-iostream-not-found/3698 "2021-06-08T19:22:34Z")

</div>

Hey all. After much googling, I landed here as no similar problems I read about were my exact cocktail of issues. Here’s what I’ve done so far: -successfully put out a very simple, one function dll plugin for unity us…

---

## [OpenCV library linking issues in Visual Studio](https://forum.opencv.org/t/opencv-library-linking-issues-in-visual-studio/3251)

<div class="topic-metadata">

**Author:** [@mal345](https://forum.opencv.org/u/mal345)\
**Replies:** 12\
**Last updated:** [June 7, 2021, 8:56pm UTC](https://forum.opencv.org/t/opencv-library-linking-issues-in-visual-studio/3251 "2021-06-07T20:56:24Z")

</div>

I am trying to link opencv to my c++ project (shared library) in Visual Studio. I have tried using both precompiled headers for WIndows as well as tried compiling myself from the source. But I get the same error. I have…

---

## [Self-compiled libraries almost 10x larger than official build](https://forum.opencv.org/t/self-compiled-libraries-almost-10x-larger-than-official-build/2315)

<div class="topic-metadata">

**Author:** [@phillies](https://forum.opencv.org/u/phillies)\
**Replies:** 3\
**Last updated:** [March 23, 2021, 9:24am UTC](https://forum.opencv.org/t/self-compiled-libraries-almost-10x-larger-than-official-build/2315 "2021-03-23T09:24:51Z")

</div>

I try to build the OpenCV 4.5.1 SDK for Android because I need the SDK with contrib modules and the official release \[1\] only has the standard modules. But the libraries I build are almost 10x larger, for example: libop…
