小编Arm*_*ent的帖子

OpenCV Native Samples未构建

我花了很长时间试图让这个东西工作,我认为我的错误是非常微不足道的,但我一直无法解决它.另外,我知道之前有过这方面的问题,但没有人帮助我解决我的问题.

我在eclipse juno中使用android-opencv库

当我构建示例时,我将使用示例4作为示例,我在控制台中收到此消息:

15:29:35 **** Build of configuration Default for project org.opencv.samples.tutorial4.Sample4Mixed ****
"C:\\dev\\android-ndk-re8b-windows\\ndk-build.cmd" 
Cannot run program "C:\dev\android-ndk-re8b-windows\ndk-build.cmd": Launching failed

Error: Program "C:\dev\android-ndk-re8b-windows\ndk-build.cmd" not found in PATH
PATH=[C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Broadcom\WHL\;C:\Program Files\Broadcom\WHL\syswow64;C:\Program Files\Broadcom\WHL\SysWow64\;C:\Program Files\Broadcom\WHL\SysWow64\syswow64;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\MATLAB\R2011a Student\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files …
Run Code Online (Sandbox Code Playgroud)

eclipse android opencv android-ndk

15
推荐指数
2
解决办法
1万
查看次数

为什么ADK的demokit程序不能在Arduino中编译?

我对Arduino和Java有很好的理解,我决定尝试用我的三星Galaxy 10.1选项卡来控制我的Arduino ATMega.我已经安装了API 12和SDK管理器,Ec​​lipse的ADT插件,现在我按照安装Arduino软件和必要的库(在Android开放附件开发套件中)的说明来安装ADK板的固件.当我点击编译时,它给了我两个错误:

demokit:146:错误:'acc'未在此范围内声明

demokit:249:错误:'touch_robot'未在此范围内声明

并说

'AndroidAccessory'没有命名类型.

代码如下所示:

#include <Wire.h>
#include <Servo.h>

#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>

#include <CapSense.h>

#define  LED3_RED       2
#define  LED3_GREEN     4
#define  LED3_BLUE      3

#define  LED2_RED       5
#define  LED2_GREEN     7
#define  LED2_BLUE      6

#define  LED1_RED       8
#define  LED1_GREEN     10
#define  LED1_BLUE      9

#define  SERVO1         11
#define  SERVO2         12
#define  SERVO3         13

#define  TOUCH_RECV     14
#define  TOUCH_SEND     15

#define  RELAY1         A0
#define  RELAY2         A1

#define  LIGHT_SENSOR   A2
#define  TEMP_SENSOR    A3

#define …
Run Code Online (Sandbox Code Playgroud)

android arduino adk

9
推荐指数
1
解决办法
6225
查看次数

我应该关注Eclipse控制台区域中的DDMS消息吗?

几个小时后,我终于安装了适当版本的Eclipse(3.6.2),SDK(16.0.1)和用于eclipse的ADT插件.我能够"插入"SDK入门套件没有问题.然后,当我去安装最新的API 4.0.3(窗口 - > SDK管理器...)时,在控制台窗口的下半部分(以"DDMS"为首)显示以下消息:

[2011-12-30 16:23:03 - DDMS] DDMS files not found: C:\Program Files    (x86)\eclipse\platform-tools\adb.exe C:\Program Files (x86)\eclipse\tools\hprof-conv.exe  C:\Program Files (x86)\eclipse\tools\traceview.bat 
[2011-12-30 16:47:18 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2011-12-30 16:47:19 - DeviceMonitor] Connection attempts: 1
Run Code Online (Sandbox Code Playgroud)

我相信有些东西是在eclipse文件夹中寻找DDMS而不是Android文件夹.如果这是问题或其他问题,我该如何解决?提前致谢!

BTW我使用的是Windows 7(64位)

eclipse android adt

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×3

eclipse ×2

adk ×1

adt ×1

android-ndk ×1

arduino ×1

opencv ×1