tried it with NDK v7 and trunk r7332
1) first try:
#include <jni.h>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;
using namespace std;
extern "C"{
JNIEXPORT void JNICALL
Java_de_dschaudel_cv_TrafficSignDetectionAndRecognitionActivity_setimage
(JNIEnv *env, jobject obj) {
cv::Mat image1;
cv::Mat image2;
}
}
NO ERROR
2) second try!
#include <jni.h>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;
using namespace std;
extern "C"{
JNIEXPORT void JNICALL
Java_de_dschaudel_cv_TrafficSignDetectionAndRecognitionActivity_setimage
(JNIEnv *env, jobject obj) {
cv::Mat image1;
cv::Mat image2;
cv::Mat image3;
}
}
ERROR!
SharedLibrary : libimagefea.so
make: *** [obj/local/armeabi-v7a/libimagefea.so] Error 1
3) console out of sh cmake_android.sh
-- Detected version of GNU GCC: 44 (404)
-- Extracting svn version, please wait...
-- SVNVERSION: svn:7332
-- Use NumPy headers from: /usr/lib/pymodules/python2.7/numpy/core/
include
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sphinx
-- Found android tool: /home/dschaudel/android-sdks/tools/android
-- Found apache ant 1.8.2: /usr/bin/ant
--
-- General configuration for opencv 2.3.3
=====================================
--
-- Built as dynamic libs?: NO
-- C++ Compiler: /home/dschaudel/android-toolchain/
bin/arm-linux-androideabi-g++
-- C++ flags (Release): --sysroot="/home/dschaudel/android-
toolchain/sysroot" -fsigned-char -march=armv7-a -mfloat-abi=softfp -
mfpu=vfp -fPIC -Wno-psabi -frtti -fexceptions -Wall -ffunction-
sections -mthumb -O3 -fomit-frame-pointer -DNDEBUG -fomit-frame-
pointer -DNDEBUG
-- C++ flags (Debug): --sysroot="/home/dschaudel/android-
toolchain/sysroot" -fsigned-char -march=armv7-a -mfloat-abi=softfp -
mfpu=vfp -fPIC -Wno-psabi -frtti -fexceptions -Wall -ffunction-
sections -marm -Os -finline-limit=64 -fno-strict-aliasing -fno-omit-
frame-pointer -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -ggdb3
-- Linker flags (Release): -Wl,--fix-cortex-a8 -Wl,--no-
undefined -lstdc++
-- Linker flags (Debug): -Wl,--fix-cortex-a8 -Wl,--no-
undefined -lstdc++
--
-- OpenCV modules:
-- To be built: androidcamera calib3d contrib core
features2d flann highgui imgproc java legacy ml objdetect stitching ts
video
-- Disabled by user: -
-- Disabled by dependency: -
-- Unavailable: gpu python
--
-- Android:
-- Android ABI: armeabi-v7a
-- Native API level: android-8
-- SDK target: android-8
-- Android toolchain: /home/dschaudel/android-toolchain
-- android tool: /home/dschaudel/android-sdks/tools/
android (Android SDK Tools, revision 16.)
-- ant: /usr/bin/ant (ver 1.8.2)
--
-- GUI:
-- GTK+ 2.x: NO
-- GThread : NO
-- GtkGlExt: NO
-- OpenGL support: NO
--
-- Media I/O:
-- ZLib: build
-- JPEG: build
-- PNG: build
-- TIFF: build
-- JPEG 2000: build
-- OpenEXR: NO
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: NO
-- FFMPEG: NO
-- codec: NO
-- format: NO
-- util: NO
-- swscale: NO
-- gentoo-style: NO
-- GStreamer: NO
-- UniCap: NO
-- PvAPI: NO
-- V4L/V4L2: FALSE/FALSE
-- Xine: NO
-- AndroidNativeCamera: YES, use prebuilt libraries
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use TBB: NO
-- Use Cuda: NO
-- Use Eigen: NO
--
-- Python interpreter: /usr/bin/python2.7 (ver 2.7)
--
-- Interfaces:
-- Python: NO
-- Python numpy: YES
-- Java: YES
--
-- Documentation:
-- Sphinx: NO
-- PdfLaTeX compiler: /usr/bin/pdflatex
-- Build Documentation: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- Examples: NO
-- Android tests: YES
-- Android examples: YES
--
-- Install path: /home/dschaudel/android-toolchain/
user
--
-- cvconfig.h is in: /home/dschaudel/opencv/android/
build
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dschaudel/opencv/android/
build
On Feb 17, 4:11 pm, Andrey Pavlenko <
andrey.pavle...@itseez.com>
wrote: