我正在使用本指南:
在我导入openCV之后,eclipse列出了一系列错误,这些错误可由指南预测。
但是指南说这些错误应该在点击F5之后消失,或者从菜单中选择“修复项目属性”。我试过了两个。我的错误不会消失。我究竟做错了什么?
来自Eclipse:
Description Resource Path Location Type
The project cannot be built until build path errors are resolved es2_globe Unknown Java Problem
The project cannot be built until build path errors are resolved es2_water Unknown Java Problem
The project cannot be built until build path errors are resolved event_accelerometer Unknown Java Problem
The project cannot be built until build path errors are resolved event_lorenz Unknown Java Problem
The project cannot be built until build path errors are resolved jniperftest Unknown Java Problem
The project cannot be built until build path errors are resolved multitouch Unknown Java Problem
The project cannot be built until build path errors are resolved native_globe Unknown Java Problem
The project cannot be built until build path errors are resolved native_lorenz Unknown Java Problem
The project cannot be built until build path errors are resolved surface_texture_java Unknown Java Problem
Cannot run program "gcc": Launching failed libs-sdk9 [Discovery Options] page in project properties C/C++ Problem
Cannot run program "gcc": Launching failed native_globe [Discovery Options] page in project properties C/C++ Problem
Cannot run program "gcc": Launching failed native_lorenz [Discovery Options] page in project properties C/C++ Problem
Error launching external scanner info generator (gcc -E -P -v -dD C:/NVPACK/nvsample_workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) libs-sdk9 [Discovery Options] page in project properties C/C++ Problem
Error launching external scanner info generator (gcc -E -P -v -dD C:/NVPACK/nvsample_workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) native_globe [Discovery Options] page in project properties C/C++ Problem
Error launching external scanner info generator (gcc -E -P -v -dD C:/NVPACK/nvsample_workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp) native_lorenz [Discovery Options] page in project properties C/C++ Problem
Program 'gcc' is not found in $PATH native_globe [Discovery Options] page in project properties C/C++ Problem
Program 'gcc' is not found in $PATH native_lorenz [Discovery Options] page in project properties C/C++ Problem
The import android.util.Log is never used NvEventQueueActivity.java /libs/src/com/nvidia/devtech line 54 Java Problem
The import android.util.Log is never used NvGLESActivity.java /libs/src/com/nvidia/devtech line 39 Java Problem
答案 0 :(得分:0)
好的,似乎我以前的答案不是很好,这一次我弄明白问题是什么。
正如您所指出的那样,您应该遵循教程中的每一步。棘手的部分是你应该下载这个OpenCV软件包“OpenCV-2.3.1-android-bin.tar.bz2”而不是这个“http://sourceforge.net/projects/opencvlibrary/files/opencv-android/”(在那里标注为“”寻找最新版本?下载OpenCV-2.3.1a.tar .bz2(32.7 MB))
您下载OpenCV-2.3.1-android-bin.tar.bz2软件包按照教程所述进行操作(解压缩包,复制到所需位置,将其导入Eclipse等),我甚至没有得到了教程中提到的错误。
我正在使用Mac Lion,Eclipse Indigo Release 2和Android SDK 2.3.3,样本在三星Galaxy S II手机中流畅运行。