我已经下载了https://developer.nvidia.com/tegra-android-development-pack,其中包含 OpenCV for Tegra 2.4.3.2。如何将 opencV 导入项目。
我已经安装了它,然后运行 Eclipse 并导入 opencv 示例,但后来我得到了很多,我无法修复它
The import org.opencv.imgproc cannot be resolved
而且我不知道我应该在项目中添加什么以使其工作。目录中没有jar。这些是来自 Nvidia 包的真实样本,因此它们应该可以工作。
控制台输出:
16:00:48 **** Auto Build of configuration Default for project OpenCV Tutorial 4 - Mix Java+Native OpenCV ****
"D:\\Programowanie\\EclipseTegra\\cygwin\\bin\\bash" "D:\\Programowanie\\EclipseTegra\\android-ndk-r8d/ndk-build" NDK_DEBUG=1 V=1
cygwin warning:
MS-DOS style path detected: D:\Programowanie\EclipseTegra\OpenCV-2.4.3.2-android-sdk-tadp\samples\tutorial-4-mixed
Preferred POSIX equivalent is: /cygdrive/d/Programowanie/EclipseTegra/OpenCV-2.4.3.2-android-sdk-tadp/samples/tutorial-4-mixed
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
rm -f ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/mips/lib*.so ./libs/x86/lib*.so
rm -f ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/mips/gdbserver ./libs/x86/gdbserver
rm -f ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/mips/gdb.setup ./libs/x86/gdb.setup
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
install -p /cygdrive/d/Programowanie/EclipseTegra/android-ndk-r8d/prebuilt/android-arm/gdbserver/gdbserver ./libs/armeabi-v7a/gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
echo "set solib-search-path ./obj/local/armeabi-v7a" > ./libs/armeabi-v7a/gdb.setup
echo "directory D:/Programowanie/EclipseTegra/android-ndk-r8d/platforms/android-9/arch-arm/usr/include D:/Programowanie/EclipseTegra/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++ "../../sdk/native/jni/include/opencv" "../../sdk/native/jni/include" D:/Programowanie/EclipseTegra/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/include D:/Programowanie/EclipseTegra/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/include" >> ./libs/armeabi-v7a/gdb.setup
Install : libmixed_sample.so => libs/armeabi-v7a/libmixed_sample.so
install -p ./obj/local/armeabi-v7a/libmixed_sample.so ./libs/armeabi-v7a/libmixed_sample.so
/cygdrive/d/Programowanie/EclipseTegra/android-ndk-r8d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded ./libs/armeabi-v7a/libmixed_sample.so
16:00:51 Build Finished (took 2s.621ms)
蚀
主目录
opencv目录