OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 8611|回复: 7

OpenCV如何在EVC下编译?

[复制链接]
发表于 2007-7-23 11:35:38 | 显示全部楼层 |阅读模式
我的编译环境是:Pocket PC2003 SDK, Win32(WCE ARMV4) Debug
编译後系统提示错误:

d:\program files\opencv\cxcore\include\cxtypes.h(212) : error C4235: nonstandard extension used : '__asm' keyword not supported in this product
d:\program files\opencv\cxcore\include\cxtypes.h(214) : error C2065: 'fld' : undeclared identifier
d:\program files\opencv\cxcore\include\cxtypes.h(214) : error C2146: syntax error : missing ';' before identifier 'value'
d:\program files\opencv\cxcore\include\cxtypes.h(215) : error C2065: 'fistp' : undeclared identifier
d:\program files\opencv\cxcore\include\cxtypes.h(215) : error C2146: syntax error : missing ';' before identifier 't'

如果在Win32(WCE emulator) Debug环境下编译是可以顺利通过的,可是无法在我得PPC上运行。

请问OpenCV能否在ARMV4环境下编译?如果可以的话,应该如何正确设置呢?
回复

使用道具 举报

发表于 2007-7-23 14:48:52 | 显示全部楼层

OpenCV如何在EVC下编译?

你好,我之前也有遇到跟你一樣的問題,給你一些參考
我的環境是ARM AT2440, Win32(WCE ARMVI4)
主要原因我猜是一個x86一個不是所以沒辦法用asm的指令
我是參考這個網站http://www.alereimondo.com.ar/OpenCV裡面有介紹
我的作法是自己做一個cxcore.lib跟cv.lib 你可以參考看看,只不過我現在卡在Highgui上,很多要調整
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-23 15:13:13 | 显示全部楼层

OpenCV如何在EVC下编译?

嗯,好像是arm里面不支持 __asm指令,考虑按你的建议重做lib。

不过我先尝试着把出错的__asm指令注释了后重新编译,在Win32(WCE ARMV4) 下所有的cvXXX函数都说找不到:
LoadImageDlg.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function "protected: void __cdecl CLoadImageDlg::OnButton1(void)" (?OnButton1@CLoadImageDlg@@IAAXXZ)

然后还有几个头文件也找不到:


D:\\PROGRAM FILES\\OPENCV\\CV\\INCLUDE\\cv.h(53): Could not find the file chdl.h.
D:\\PROGRAM FILES\\OPENCV\\OTHERLIBS\\HIGHGUI\\highgui.h(104): Could not find the file chdl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxcore.h(59): Could not find the file ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxcore.h(61): Could not find the file ipl/ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(67): Could not find the file emmintrin.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(74): Could not find the file fastmath.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(76): Could not find the file mathimf.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(84): Could not find the file ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(86): Could not find the file ipl/ipl.h.

不知道这究竟是怎么回事啊?
回复 支持 反对

使用道具 举报

发表于 2007-7-25 02:42:42 | 显示全部楼层

OpenCV如何在EVC下编译?

你現在遇到的狀況就是因為cvloadImage會用到highgui這邊。導致你發生這樣的錯誤,昨天把highgui大致了解了一下,我這邊主要的原因是AMRV4I中,stdio.h跟stdlib.h跟實際PC中的stdio.h, stdlib.h有很多是沒有的,例如:tmpfile(), abort()...etc,所以導致找不到linkage。以上這些只是關於loadsave.cpp那個檔案中的要件問題。其他是否還有我也不太清楚,不過大概就是這個原因。
回复 支持 反对

使用道具 举报

发表于 2008-3-13 09:34:58 | 显示全部楼层

OpenCV如何在EVC下编译?

有人又evc编译过的opencv库吗?
回复 支持 反对

使用道具 举报

发表于 2009-10-11 18:17:11 | 显示全部楼层

OpenCV如何在EVC下编译?

请问各位:这个问题解决了吗?我现在也碰到了同样的问题。希望各位赐教!
回复 支持 反对

使用道具 举报

发表于 2009-11-5 00:21:56 | 显示全部楼层

OpenCV如何在EVC下编译?

嗯,好像是arm里面不支持 __asm指令,考虑按你的建议重做lib。

不过我先尝试着把出错的__asm指令注释了后重新编译,在Win32(WCE ARMV4) 下所有的cvXXX函数都说找不到:
LoadImageDlg.obj : error LNK2019: unresolved external symbol cvReleaseImage referenced in function "protected: void __cdecl CLoadImageDlg::OnButton1(void)" (?OnButton1@CLoadImageDlg@@IAAXXZ)

然后还有几个头文件也找不到:


D:\\PROGRAM FILES\\OPENCV\\CV\\INCLUDE\\cv.h(53): Could not find the file chdl.h.
D:\\PROGRAM FILES\\OPENCV\\OTHERLIBS\\HIGHGUI\\highgui.h(104): Could not find the file chdl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxcore.h(59): Could not find the file ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxcore.h(61): Could not find the file ipl/ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(67): Could not find the file emmintrin.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(74): Could not find the file fastmath.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(76): Could not find the file mathimf.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(84): Could not find the file ipl.h.
D:\\PROGRAM FILES\\OPENCV\\CXCORE\\INCLUDE\\cxtypes.h(86): Could not find the file ipl/ipl.h.

不知道这究竟是怎么回事啊?
我的经验是库中调用的库的路径需要修改。
回复 支持 反对

使用道具 举报

发表于 2012-4-9 21:35:26 | 显示全部楼层

OpenCV如何在EVC下编译?

我的 可以运行。。。。然后在 仿真器中 点击程序运行的时候,出现了:

Cannot find\'evc_mytest\'(or one of its components). Make sure the path and filename
are correct and that all the required libraries are avaliable .

========================
我用的 EVC4.0 + opencv1.0

请问,这个应该怎么处理?
我在网上搜,说需要把 静态链接库的 头文件.h ,库文件.lib 以及动态链接看 .dll  放到工程目录下~~~
另外我把需要打开的图片也放到了工程目录下~~~

可是这样还是不可以~~~

求指导呀~~~~
=======================
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-5-7 05:28 , Processed in 0.009669 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表