在Windows下为Android制作Opencv。。。can';我找不到iostream

在Windows下为Android制作Opencv。。。can';我找不到iostream,android,opencv,cmake,Android,Opencv,Cmake,我正在尝试为opencv运行cmake_android.cmd脚本,详情如下: 所以我可以得到一个OpenCV.mk文件来与Android一起使用 所以我启动cmd.exe 当我在opencv\android中时 我运行scripts\cmake_android.cmd 它达到3%左右,但由于找不到iostream而失败 [ 3%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o C:\

我正在尝试为opencv运行cmake_android.cmd脚本,详情如下:

所以我可以得到一个OpenCV.mk文件来与Android一起使用

所以我启动cmd.exe 当我在
opencv\android中时
我运行
scripts\cmake_android.cmd

它达到3%左右,但由于找不到iostream而失败

[  3%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o
C:\opencv\3rdparty\libtiff\tif_stream.cxx:31:20: error: iostream: No such file or directory
这是我的wincfg.cmd文件

:: variables required for OpenCV build ::
:: Note: all pathes should be specified without tailing slashes!
SET ANDROID_NDK=C:\android-ndk-r8b-windows\android-ndk-r8b
SET CMAKE_EXE=C:\Program Files (x86)\CMake 2.8\bin\cmake.exe
SET MAKE_EXE=%ANDROID_NDK%\prebuilt\windows\bin\make.exe

:: variables required for android-opencv build ::
SET ANDROID_SDK=C:\Program Files (x86)\Android\android-sdk
SET ANT_DIR=C:\opencv\android\apache-ant-1.8.4
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09

:: configuration options ::
:::: general ARM-V7 settings
SET ANDROID_ABI=armeabi-v7a
SET BUILD_DIR=build

:::: uncomment following lines to compile for old emulator or old device
::SET ANDROID_ABI=armeabi
::SET BUILD_DIR=build_armeabi

:::: uncomment following lines to compile for ARM-V7 with NEON support
::SET ANDROID_ABI=armeabi-v7a with NEON
::SET BUILD_DIR=build_neon

:::: uncomment following lines to compile for x86
::SET ANDROID_ABI=x86
::SET BUILD_DIR=build_x86

:::: other options
::SET ANDROID_NATIVE_API_LEVEL=8   &:: android-3 is enough for native part of OpenCV but android-8 is required for Java API

非常感谢您的帮助

对于NDK r8b,您需要存储库中最新的OpenCV


OpenCV 2.4.2版本支持从r5到r8的NDK。来自sourceforge和Google Play的预构建Android二进制文件是用NDK r8编译的。

这可能会有所帮助:谢谢,但我不想用NDK编译项目代码。我正在尝试使用cmakeThanks构建OpenCV!我知道这一点,我想是在你回答的时候。我成功地编译了所有内容。我的项目正在我的手机上进行。令人惊叹的!