• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : mini2440能否安装opencv 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 7900
精华: 0
发帖: 1
金钱: 10 两
威望: 10 点
综合积分: 2 分
注册时间: 2009-08-02
最后登录: 2009-10-21
楼主  发表于: 2009-08-03 20:33

 mini2440能否安装opencv

大家好,我是新手,小弟在这里问下,在mini2440上的linux系统下,可以安装运行opencv吗?尤其是能否利用opencv实时的通过中星微的摄像头读取视频进行处理?先谢谢各位的指导!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-08-03 22:24
如果你知道opencv对linux系统的要求,我相信我能告诉你mini2440的目前linux系统能否支持它
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 9533
精华: 0
发帖: 8
金钱: 60 两
威望: 24 点
综合积分: 16 分
注册时间: 2009-10-04
最后登录: 2017-09-13
2楼  发表于: 2009-10-04 05:30

 回 1楼(kasim) 的帖子

我已经弄好了交叉编译环境
但是每次编译都出现
cc1plus: warning: include location "/usr/local/include/opencv" is unsafe for cross-compilation
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation
而且编译过的文件
在ARM2440,就是友善之臂的MINI2440上用
出现:
OpenCV ERROR: Unspecified error (The function is not implemented. Rebuild the li
brary with Windows, GTK+ 2.x or Carbon support)
in function cvNamedWindow, window.cpp(71)
Terminating the application...
我编译的就是那个drawing例程啊……
求助,在线等回复
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-10-04 07:43
看起来是因为编译时没有指明OpenCV使用哪一种GUI(MS Windows, GTK+或者CARBON)。我想对于mini2440而言,GTK+是比较可行的实现方式。详细信息看window.cpp:
复制代码
  1. #if   defined WIN32 || defined _WIN32         // see window_w32.cpp
  2. #elif defined (HAVE_GTK)      // see window_gtk.cpp
  3. #elif defined (HAVE_CARBON)   // see window_carbon.cpp
  4. #else
  5. // No windowing system present at compile time ;-(
  6. //
  7. // We will build place holders that don't break the API but give an error
  8. // at runtime. This way people can choose to replace an installed HighGUI
  9. // version with a more capable one without a need to recompile dependent
  10. // applications or libraries.
  11. #define CV_NO_GUI_ERROR(funcname) \
  12.     cvError( CV_StsError, funcname, \
  13.     "The function is not implemented. " \
  14.     "Rebuild the library with Windows, GTK+ 2.x or Carbon support. "\
  15.     "If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script", \
  16.     __FILE__, __LINE__ )
  17. CV_IMPL int cvNamedWindow( const char*, int )
  18. {
  19.     CV_NO_GUI_ERROR("cvNamedWindow");
  20.     return -1;
  21. }    
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 9533
精华: 0
发帖: 8
金钱: 60 两
威望: 24 点
综合积分: 16 分
注册时间: 2009-10-04
最后登录: 2017-09-13
4楼  发表于: 2009-10-04 15:11

 回 3楼(kasim) 的帖子

能不能给的详细一些呢?我是初学者……
级别: 新手上路
UID: 9533
精华: 0
发帖: 8
金钱: 60 两
威望: 24 点
综合积分: 16 分
注册时间: 2009-10-04
最后登录: 2017-09-13
5楼  发表于: 2009-10-04 15:13

 回 3楼(kasim) 的帖子

再有我的arm使用的是QT linux
级别: 新手上路
UID: 9533
精华: 0
发帖: 8
金钱: 60 两
威望: 24 点
综合积分: 16 分
注册时间: 2009-10-04
最后登录: 2017-09-13
6楼  发表于: 2009-10-04 15:14

 回 3楼(kasim) 的帖子

就是友善之臂给的那个linux
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-10-04 17:53
看起来OpenCV不支持QT,也就是说,如果你要支持GUI部分,必须先自己移植一种OpenCV支持的GUI平台(MS Winodws, GTK+或者CARBON)到mini2440上。MS Windows或者CARBON我想不太可行,只有GTK+有可能。已经有基于GTK+的distribution移植到了mini2440, 比如Angstrom (http://www.angstrom-distribution.org/)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 12108
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2009-12-29
最后登录: 2009-12-29
8楼  发表于: 2009-12-29 14:43
我也要做opencv在2440上的移植,如果我不需要用GUI 只是要再2440中使用OPENCV不知道可不可以呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2009-12-29 16:52

 回 8楼(醉蟹菜) 的帖子

只要你能搞定OpenCV让它不要运行其中的GUI部分就可以
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go