Can not find Java folder in OpenCV build
I have built OpenCV for android on Windows using CMAKE, MINGW and NVIDIA Android NDK.
After I make
it and make install
it, I found the following folders:
install:
-apk:
-sdk:
--etc
--native
there is no java
folder inside the sdk
folder. libopencv_java3.so
is also mssing. What did I miss?
EDIT (CMake output):
Detected version of GNU GCC: 49 (409)
FP16: Compiler support is available
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.2" (found C:/Python27/python.exe)
Found apache ant 1.8.2: C:/NVPACK/apache-ant-1.8.2/bin/ant.bat
Assume that non-module dependency is available: z (for module opencv_core)
[OpenCV for Android SDK]: A new OpenGL Camera Bridge (CameraGLSurfaceView, CameraGLRendererBase, CameraRenderer, Camera2Renderer) is disabled, because ANDROID_SDK_TARGET (15) < 21
Sample example-tutorial-4-opencl is disabled, because ANDROID_OPENCL_SDK is not specified
General configuration for OpenCV 3.1.0-dev =====================================
Version control: 3.1.0-1661-gacaa1e1
Platform:
Timestamp: 2016-12-06T13:36:05Z
Host: Windows 10.0.10586 AMD64
Target: Android 1 armv7-a
CMake: 3.4.2
CMake generator: Unix Makefiles
CMake build tool: C:/PROGRA~2/GnuWin32/bin/make.exe
Configuration: Release
C/C++:
Built as dynamic libs?: NO
C++ Compiler: C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++.exe (ver 4.9)
C++ flags (Release): -fexceptions -frtti -fpic -Wno-psabi --sysroot=C:/NVPACK/android-ndk-r12b/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -fvisibility-inlines-hidden -mfpu=neon-fp16 -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fexceptions -frtti -fpic -Wno-psabi --sysroot=C:/NVPACK/android-ndk-r12b/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -fvisibility-inlines-hidden -mfpu=neon-fp16 -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG
C Compiler: C:/NVPACK/android-ndk-r12b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe
C flags (Release): -fexceptions -fpic -Wno-psabi --sysroot=C:/NVPACK/android-ndk-r12b/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -mfp16-format=ieee -mfpu=neon -fvisibility=hidden -mfpu=neon-fp16 -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fexceptions -fpic -Wno-psabi --sysroot=C:/NVPACK/android-ndk-r12b/platforms/android-9/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections ...
can we see your cmake output ?
@berak Thanks.. I have added them
hey, thanks, but that's a directory listing, not the console-log from running cmake.
(theory is, that it is missing something, and thus did not build the java wrappers)
it seems that you are right : Java: ant: C:/NVPACK/apache-ant-1.8.2/bin/ant.bat (ver 1.8.2) Java wrappers: NO Java tests: NO
so it found ant (that's good !)
do you have python ? (needed to generate the java code)
(i'm sure, there's more hints in that log, so maybe add it to question (yes, it's long!))
yes i do not have python and I am going to add that log right now.. thank you very much for your time
Oh! adding python solves the problem and the new log contains java wrapper... thank you again :)
now, don't tell me, it's solved, now .. (there's usually more than 1 problem) ,]
or, is it ?
@berak.. it failed when compiling :/ I thought that it was solved when cmake operation succeeded. I have edited with the cmake output. many thanks