前提:opencv已经编译安装好了arm版本。
这里指的是在pc机上,arm-linux-gcc test.c -o test ....................出现的一个bug
提示如下:
In file included from /usr/local/arm/opencv/include/opencv/cxcore.h:70,
from test.c:4:
/usr/local/arm/opencv/include/opencv/cxtypes.h:240: warning: incompatible implicit declaration of built-in function 'lrint'
解决方法:
找到opencv/include/opencv目录下的cxtypes.h 第240的“return (int)lrint(value);”改为“return (int)(value + 0.5)即可。
参考资料:
http://blog.chinaunix.net/uid-20764801-id-1851117.html