在 Eclipse 中导入 openCV 时出现的错误不会消失吗?
我正在使用本指南:
在我导入openCV之后,eclipse列出了一堆错误,这是预期的 指导。
但该指南表示,在按 F5 或从菜单中选择“修复项目属性”后,这些错误应该会消失。我都尝试过。我的错误不会消失。我做错了什么?
来自日食:
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
I'm using this guide:
After I imported openCV, eclipse lists a bunch of errors, which are anticipated by the guide.
But the guide says those errors should go away after hitting F5, or selecting "fix project properties" from the menu. I tried both. My errors wont go away. What am I doing wrong?
From 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,看来我之前的回答不太好,这次我知道问题出在哪里了。
正如您所指出的,您应该遵循教程中的每个步骤。棘手的部分是你应该下载这个 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,这些示例在 Samsung Galaxy S II 手机中运行顺利。
OK, it seems that my previous answers wasn't a good one, this time I figured out what the problem was.
As you point out you should follow each step in the Tutorial. The tricky part is that you should download this OpenCV package "OpenCV-2.3.1-android-bin.tar.bz2" instead of this one "http://sourceforge.net/projects/opencvlibrary/files/opencv-android/" (labeled in there as ""Looking for the latest version? Download OpenCV-2.3.1a.tar.bz2 (32.7 MB) )
Ones you download the OpenCV-2.3.1-android-bin.tar.bz2 package proceed as the tutorials said (unzip the package, copy to desired location, import it to Eclipse, etc.", I didn't even got the Error mentioned in tutorial.
I'm using Mac Lion, Eclipse Indigo Release 2, and Android SDK 2.3.3, the samples run smoothly in a Samsung Galaxy S II phone.