<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Compiling OpenCV for ARM9 platform</title>
	<atom:link href="http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/</link>
	<description>Rhonda Ltd., computer vision software blog</description>
	<lastBuildDate>Sun, 17 Jul 2011 16:11:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1277</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Sun, 06 Feb 2011 22:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1277</guid>
		<description>Hello Amit,

First, you need to make sure you have the cross-compiler working. Try to create very simple &quot;Hello world&quot; application and compile it for your ARM7. This simple app should use only standard c library. When you successfully compiled, linked and executed your simple app on your target ARM hardware, use the guide in post to cross-compile the opencv library.

Best Regards,
Yuri Vashchenko</description>
		<content:encoded><![CDATA[<p>Hello Amit,</p>
<p>First, you need to make sure you have the cross-compiler working. Try to create very simple &#8220;Hello world&#8221; application and compile it for your ARM7. This simple app should use only standard c library. When you successfully compiled, linked and executed your simple app on your target ARM hardware, use the guide in post to cross-compile the opencv library.</p>
<p>Best Regards,<br />
Yuri Vashchenko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1267</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Thu, 03 Feb 2011 11:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1267</guid>
		<description>I have to compile openCV for armv7 , i have g++-arm-linux-gnueabi 4.3 installed directly from synaptic package manager in ubuntu, how do i cross compile openCV for target?</description>
		<content:encoded><![CDATA[<p>I have to compile openCV for armv7 , i have g++-arm-linux-gnueabi 4.3 installed directly from synaptic package manager in ubuntu, how do i cross compile openCV for target?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1200</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Tue, 11 Jan 2011 00:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1200</guid>
		<description>Hi Ramaraju,

Segmentation fault may be caused by many different issues.

You provided too little information on you problem, so I cannot give you any specific solution. As this thread is related to compiling the OpenCV library, I&#039;d like you to make sure you have correctly compiled OpenCV library itself.

Start with running OpenCV&#039;s &quot;configure&quot; script, then &quot;make&quot;, then &quot;install&quot; the Library. If you get any errors during this process, you need to solve them first.
Then, write a very basic (just a few lines) application that uses OpenCV library. You may use any of the OpenCV&#039;s examples found in distribution package. Compile it and execute. If you made everything right, it should run without any issues. When you verified that OpenCV itself is built and installed correctly, you may start to debug more complex applications.

Hope this helps,

Best Regards,
Yuri Vashchenko</description>
		<content:encoded><![CDATA[<p>Hi Ramaraju,</p>
<p>Segmentation fault may be caused by many different issues.</p>
<p>You provided too little information on you problem, so I cannot give you any specific solution. As this thread is related to compiling the OpenCV library, I&#8217;d like you to make sure you have correctly compiled OpenCV library itself.</p>
<p>Start with running OpenCV&#8217;s &#8220;configure&#8221; script, then &#8220;make&#8221;, then &#8220;install&#8221; the Library. If you get any errors during this process, you need to solve them first.<br />
Then, write a very basic (just a few lines) application that uses OpenCV library. You may use any of the OpenCV&#8217;s examples found in distribution package. Compile it and execute. If you made everything right, it should run without any issues. When you verified that OpenCV itself is built and installed correctly, you may start to debug more complex applications.</p>
<p>Hope this helps,</p>
<p>Best Regards,<br />
Yuri Vashchenko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramaraju</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1199</link>
		<dc:creator>Ramaraju</dc:creator>
		<pubDate>Mon, 10 Jan 2011 20:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1199</guid>
		<description>Hi,
I am using OpenCV libraries as part of my masters thesis work that&#039;s related to Computer Vision. I used to work in Windows 7 and everything was fine. But of late, I started using Ubuntu 10.10 64-bit. Compilation of  my source files in Ubuntu that were earlier written on Windows platform is going fine. But when I run the executables produced with the g++ compiler, they are producing the &quot;Segmentation Fault&quot; error. Could you tell me where I was going wrong? The following piece of information may be of some help.

&#039;g++ --version&#039; produced the following output:

g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Appreciate any help in this regard as this is very critical for my thesis. If it doesn&#039;t work, I&#039;ll have to return to Windows which I don&#039;t really like.

Thanks,
Ramaraju</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using OpenCV libraries as part of my masters thesis work that&#8217;s related to Computer Vision. I used to work in Windows 7 and everything was fine. But of late, I started using Ubuntu 10.10 64-bit. Compilation of  my source files in Ubuntu that were earlier written on Windows platform is going fine. But when I run the executables produced with the g++ compiler, they are producing the &#8220;Segmentation Fault&#8221; error. Could you tell me where I was going wrong? The following piece of information may be of some help.</p>
<p>&#8216;g++ &#8211;version&#8217; produced the following output:</p>
<p>g++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5<br />
Copyright (C) 2010 Free Software Foundation, Inc.<br />
This is free software; see the source for copying conditions.  There is NO<br />
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p>Appreciate any help in this regard as this is very critical for my thesis. If it doesn&#8217;t work, I&#8217;ll have to return to Windows which I don&#8217;t really like.</p>
<p>Thanks,<br />
Ramaraju</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1192</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Sun, 09 Jan 2011 22:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1192</guid>
		<description>Hello,

As far as I understand, the problem is with your OpenCv library. It looks like you are trying to compile a sample for ARM using libraries compiled for x86. Your directive &quot;-L/usr/local/lib&quot; tells the linker to look for libraries at &quot;-L/usr/local/lib&quot;, where probably Ubuntu (x86) libraries are stored. You need to recompile the whole OpenCV for your target platform.

Hope this helps,
Best Regards,
Yuri Vashchenko</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>As far as I understand, the problem is with your OpenCv library. It looks like you are trying to compile a sample for ARM using libraries compiled for x86. Your directive &#8220;-L/usr/local/lib&#8221; tells the linker to look for libraries at &#8220;-L/usr/local/lib&#8221;, where probably Ubuntu (x86) libraries are stored. You need to recompile the whole OpenCV for your target platform.</p>
<p>Hope this helps,<br />
Best Regards,<br />
Yuri Vashchenko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ric</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1180</link>
		<dc:creator>ric</dc:creator>
		<pubDate>Tue, 04 Jan 2011 13:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1180</guid>
		<description>Hello,

I&#039;m a beginner in embedded and I would like to ask you for support. 
I&#039;m trying to cross compile a test file using Sourcery_G++_Lite_for_ARM_GNU_Linux and the cross compilation fails in the following way: 

ric@ubuntu:~/CodeSourcery/gnueabi/samples$ arm-none-linux-gnueabi-gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcxcore -lcvaux contours.c -o contours
cc1: warning: include location &quot;/usr/local/include/opencv&quot; is unsafe for cross-compilation
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path &quot;/usr/local/lib&quot; is unsafe for cross-compilation
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libcv.so when searching for -lcv
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcv
collect2: ld returned 1 exit status

The host is an ubuntu_10.04.1 VM on a Windows XP Laptop, target will be an ARM based IGEPV2 board.
CV libs seems to be correctly installed since I can compile using gcc in the host and execute and execute on it.
About Cross compilation tool, after installing there were created two folders :
 /usr/local/lib : 

lrwxrwxrwx 1 root root       15 2011-01-03 02:37 libcvaux.so -&gt; libcvaux.so.2.0
lrwxrwxrwx 1 root root       17 2011-01-03 02:37 libcvaux.so.2.0 -&gt; libcvaux.so.2.0.0
-rw-r--r-- 1 root root  1162062 2011-01-03 02:34 libcvaux.so.2.0.0
lrwxrwxrwx 1 root root       12 2011-01-03 02:37 libcv.so -&gt; libcv.so.2.0
lrwxrwxrwx 1 root root       14 2011-01-03 02:37 libcv.so.2.0 -&gt; libcv.so.2.0.0
-rw-r--r-- 1 root root  2057645 2011-01-03 02:33 libcv.so.2.0.0
lrwxrwxrwx 1 root root       16 2011-01-03 02:37 libcxcore.so -&gt; libcxcore.so.2.0
lrwxrwxrwx 1 root root       18 2011-01-03 02:37 libcxcore.so.2.0 -&gt; libcxcore.so.2.0.0
-rw-r--r-- 1 root root  2711305 2011-01-03 02:31 libcxcore.so.2.0.0
lrwxrwxrwx 1 root root       17 2011-01-03 02:37 libhighgui.so -&gt; libhighgui.so.2.0
lrwxrwxrwx 1 root root       19 2011-01-03 02:37 libhighgui.so.2.0 -&gt; libhighgui.so.2.0.0
-rw-r--r-- 1 root root   247528 2011-01-03 02:33 libhighgui.so.2.0.0
lrwxrwxrwx 1 root root       12 2011-01-03 02:37 libml.so -&gt; libml.so.2.0
lrwxrwxrwx 1 root root       14 2011-01-03 02:37 libml.so.2.0 -&gt; libml.so.2.0.0
-rw-r--r-- 1 root root   446543 2011-01-03 02:33 libml.so.2.0.0
drwxr-xr-x 2 root root     4096 2011-01-03 02:37 pkgconfig
drwxrwsr-x 4 root staff    4096 2010-08-16 02:35 python2.6

and  /usr/local/include/opencv :

-rw-r--r-- 1 root root  63883 2010-12-31 08:28 cvaux.h
-rw-r--r-- 1 root root  51258 2010-12-31 08:28 cvaux.hpp
-rw-r--r-- 1 root root  40678 2010-12-31 08:28 cvcompat.h
-rw-r--r-- 1 root root  71716 2010-12-31 08:28 cv.h
-rw-r--r-- 1 root root  43897 2010-12-31 08:28 cv.hpp
-rw-r--r-- 1 root root  12503 2010-12-31 08:28 cvtypes.h
-rw-r--r-- 1 root root   2538 2010-12-31 08:28 cvver.h
-rw-r--r-- 1 root root  41990 2010-12-31 08:28 cvvidsurv.hpp
-rw-r--r-- 1 root root  20730 2010-12-31 08:28 cvwimage.h
-rw-r--r-- 1 root root  87498 2010-12-31 08:28 cxcore.h
-rw-r--r-- 1 root root  81321 2010-12-31 08:28 cxcore.hpp
-rw-r--r-- 1 root root   8757 2010-12-31 08:28 cxerror.h
-rw-r--r-- 1 root root   6937 2010-12-31 08:28 cxflann.h
-rw-r--r-- 1 root root 152510 2010-12-31 08:28 cxmat.hpp
-rw-r--r-- 1 root root  27967 2010-12-31 08:28 cxmisc.h
-rw-r--r-- 1 root root  86570 2010-12-31 08:28 cxoperations.hpp
-rw-r--r-- 1 root root  53713 2010-12-31 08:28 cxtypes.h
-rw-r--r-- 1 root root  18165 2010-12-31 08:28 highgui.h
-rw-r--r-- 1 root root   4652 2010-12-31 08:28 highgui.hpp
-rw-r--r-- 1 root root  72650 2010-12-31 08:28 ml.h

 Does anybody knows the cause of that problem?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m a beginner in embedded and I would like to ask you for support.<br />
I&#8217;m trying to cross compile a test file using Sourcery_G++_Lite_for_ARM_GNU_Linux and the cross compilation fails in the following way: </p>
<p>ric@ubuntu:~/CodeSourcery/gnueabi/samples$ arm-none-linux-gnueabi-gcc -I/usr/local/include/opencv -L/usr/local/lib -lcv -lhighgui -lcxcore -lcvaux contours.c -o contours<br />
cc1: warning: include location &#8220;/usr/local/include/opencv&#8221; is unsafe for cross-compilation<br />
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: library search path &#8220;/usr/local/lib&#8221; is unsafe for cross-compilation<br />
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/local/lib/libcv.so when searching for -lcv<br />
/home/ric/CodeSourcery/gnueabi/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcv<br />
collect2: ld returned 1 exit status</p>
<p>The host is an ubuntu_10.04.1 VM on a Windows XP Laptop, target will be an ARM based IGEPV2 board.<br />
CV libs seems to be correctly installed since I can compile using gcc in the host and execute and execute on it.<br />
About Cross compilation tool, after installing there were created two folders :<br />
 /usr/local/lib : </p>
<p>lrwxrwxrwx 1 root root       15 2011-01-03 02:37 libcvaux.so -&gt; libcvaux.so.2.0<br />
lrwxrwxrwx 1 root root       17 2011-01-03 02:37 libcvaux.so.2.0 -&gt; libcvaux.so.2.0.0<br />
-rw-r&#8211;r&#8211; 1 root root  1162062 2011-01-03 02:34 libcvaux.so.2.0.0<br />
lrwxrwxrwx 1 root root       12 2011-01-03 02:37 libcv.so -&gt; libcv.so.2.0<br />
lrwxrwxrwx 1 root root       14 2011-01-03 02:37 libcv.so.2.0 -&gt; libcv.so.2.0.0<br />
-rw-r&#8211;r&#8211; 1 root root  2057645 2011-01-03 02:33 libcv.so.2.0.0<br />
lrwxrwxrwx 1 root root       16 2011-01-03 02:37 libcxcore.so -&gt; libcxcore.so.2.0<br />
lrwxrwxrwx 1 root root       18 2011-01-03 02:37 libcxcore.so.2.0 -&gt; libcxcore.so.2.0.0<br />
-rw-r&#8211;r&#8211; 1 root root  2711305 2011-01-03 02:31 libcxcore.so.2.0.0<br />
lrwxrwxrwx 1 root root       17 2011-01-03 02:37 libhighgui.so -&gt; libhighgui.so.2.0<br />
lrwxrwxrwx 1 root root       19 2011-01-03 02:37 libhighgui.so.2.0 -&gt; libhighgui.so.2.0.0<br />
-rw-r&#8211;r&#8211; 1 root root   247528 2011-01-03 02:33 libhighgui.so.2.0.0<br />
lrwxrwxrwx 1 root root       12 2011-01-03 02:37 libml.so -&gt; libml.so.2.0<br />
lrwxrwxrwx 1 root root       14 2011-01-03 02:37 libml.so.2.0 -&gt; libml.so.2.0.0<br />
-rw-r&#8211;r&#8211; 1 root root   446543 2011-01-03 02:33 libml.so.2.0.0<br />
drwxr-xr-x 2 root root     4096 2011-01-03 02:37 pkgconfig<br />
drwxrwsr-x 4 root staff    4096 2010-08-16 02:35 python2.6</p>
<p>and  /usr/local/include/opencv :</p>
<p>-rw-r&#8211;r&#8211; 1 root root  63883 2010-12-31 08:28 cvaux.h<br />
-rw-r&#8211;r&#8211; 1 root root  51258 2010-12-31 08:28 cvaux.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  40678 2010-12-31 08:28 cvcompat.h<br />
-rw-r&#8211;r&#8211; 1 root root  71716 2010-12-31 08:28 cv.h<br />
-rw-r&#8211;r&#8211; 1 root root  43897 2010-12-31 08:28 cv.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  12503 2010-12-31 08:28 cvtypes.h<br />
-rw-r&#8211;r&#8211; 1 root root   2538 2010-12-31 08:28 cvver.h<br />
-rw-r&#8211;r&#8211; 1 root root  41990 2010-12-31 08:28 cvvidsurv.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  20730 2010-12-31 08:28 cvwimage.h<br />
-rw-r&#8211;r&#8211; 1 root root  87498 2010-12-31 08:28 cxcore.h<br />
-rw-r&#8211;r&#8211; 1 root root  81321 2010-12-31 08:28 cxcore.hpp<br />
-rw-r&#8211;r&#8211; 1 root root   8757 2010-12-31 08:28 cxerror.h<br />
-rw-r&#8211;r&#8211; 1 root root   6937 2010-12-31 08:28 cxflann.h<br />
-rw-r&#8211;r&#8211; 1 root root 152510 2010-12-31 08:28 cxmat.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  27967 2010-12-31 08:28 cxmisc.h<br />
-rw-r&#8211;r&#8211; 1 root root  86570 2010-12-31 08:28 cxoperations.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  53713 2010-12-31 08:28 cxtypes.h<br />
-rw-r&#8211;r&#8211; 1 root root  18165 2010-12-31 08:28 highgui.h<br />
-rw-r&#8211;r&#8211; 1 root root   4652 2010-12-31 08:28 highgui.hpp<br />
-rw-r&#8211;r&#8211; 1 root root  72650 2010-12-31 08:28 ml.h</p>
<p> Does anybody knows the cause of that problem?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tan</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1059</link>
		<dc:creator>Tan</dc:creator>
		<pubDate>Fri, 26 Nov 2010 09:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1059</guid>
		<description>actually i had given a wrong path...now the problem is solved.

Thanks</description>
		<content:encoded><![CDATA[<p>actually i had given a wrong path&#8230;now the problem is solved.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1046</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Fri, 19 Nov 2010 01:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1046</guid>
		<description>Hello Tan,

ld: cannot find -lcv means that your linker cannot find library libcv.a. Do you have this file built? What you probably need to do is to check if this library was actually created and if your path where linker looks for this lib contains a correct directory. See section &quot;Compile and link, 1.3&quot; above.

Hope this helps,

Best regards,
Yuri Vashchenko</description>
		<content:encoded><![CDATA[<p>Hello Tan,</p>
<p>ld: cannot find -lcv means that your linker cannot find library libcv.a. Do you have this file built? What you probably need to do is to check if this library was actually created and if your path where linker looks for this lib contains a correct directory. See section &#8220;Compile and link, 1.3&#8243; above.</p>
<p>Hope this helps,</p>
<p>Best regards,<br />
Yuri Vashchenko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tan</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-1043</link>
		<dc:creator>Tan</dc:creator>
		<pubDate>Tue, 16 Nov 2010 14:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-1043</guid>
		<description>Hi

I am trying to cross-compile a armtest.c file using arm-linux-gcc ,
toolchain 4.3.2. The .c file is using open cv2.0.0 libraries. when I try to
cross compile the file, the following error is coming

 root@tanushri-desktop:~# arm-linux-gcc -o2 -I/usr/local/include/
opencv armtest.c -L//root/Downloads/OpenCV-2.0.0/src/.libs -lcv -
lhighgui -lcxcore -lml -lcvaux -lrt -lpthread -ldl -lz -lpng12 -ljpeg -
o armtest
cc1: warning: include location &quot;/usr/local/include/opencv&quot; is unsafe
for cross-compilation
In file included from /usr/local/include/opencv/cxcore.h:70,
                 from /usr/local/include/opencv/cv.h:58,
                 from armtest.c:12:
/usr/local/include/opencv/cxtypes.h: In function &#039;cvRound&#039;:
/usr/local/include/opencv/cxtypes.h:240: warning: incompatible
implicit declaration of built-in function &#039;lrint&#039;
/opt/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/
4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcv

HELP!</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I am trying to cross-compile a armtest.c file using arm-linux-gcc ,<br />
toolchain 4.3.2. The .c file is using open cv2.0.0 libraries. when I try to<br />
cross compile the file, the following error is coming</p>
<p> root@tanushri-desktop:~# arm-linux-gcc -o2 -I/usr/local/include/<br />
opencv armtest.c -L//root/Downloads/OpenCV-2.0.0/src/.libs -lcv -<br />
lhighgui -lcxcore -lml -lcvaux -lrt -lpthread -ldl -lz -lpng12 -ljpeg -<br />
o armtest<br />
cc1: warning: include location &#8220;/usr/local/include/opencv&#8221; is unsafe<br />
for cross-compilation<br />
In file included from /usr/local/include/opencv/cxcore.h:70,<br />
                 from /usr/local/include/opencv/cv.h:58,<br />
                 from armtest.c:12:<br />
/usr/local/include/opencv/cxtypes.h: In function &#8216;cvRound&#8217;:<br />
/usr/local/include/opencv/cxtypes.h:240: warning: incompatible<br />
implicit declaration of built-in function &#8216;lrint&#8217;<br />
/opt/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/<br />
4.3.2/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lcv</p>
<p>HELP!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/compiling-opencv-for-arm9-platform-pico/comment-page-1/#comment-864</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Sun, 08 Aug 2010 23:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=11#comment-864</guid>
		<description>Hi JPN,

We did not use any tools to change doubles to fixed point operation.
We rewrote the big part of opencv manually.

Unfortunately, it had not given significant improvement in performance on our target ARM platform.

So, if you need fixed point operations for your DSP of whatever your target platform is, you will probably have to rewrite a part of opencv code yourself.

Start with running a profiler on your target platform to understand which code takes most of the execution time.
Then, using opencv source code, try to understand how it works and start replacing double precision variables and operations with fixed point ones. In our experiments, we even had been able to rewrite some code to use 32 bit integers only. It affected precision in some cases, but until overall quality is acceptable, you can do such trade-offs.

Hope this helps,

Best regards,
Yuri</description>
		<content:encoded><![CDATA[<p>Hi JPN,</p>
<p>We did not use any tools to change doubles to fixed point operation.<br />
We rewrote the big part of opencv manually.</p>
<p>Unfortunately, it had not given significant improvement in performance on our target ARM platform.</p>
<p>So, if you need fixed point operations for your DSP of whatever your target platform is, you will probably have to rewrite a part of opencv code yourself.</p>
<p>Start with running a profiler on your target platform to understand which code takes most of the execution time.<br />
Then, using opencv source code, try to understand how it works and start replacing double precision variables and operations with fixed point ones. In our experiments, we even had been able to rewrite some code to use 32 bit integers only. It affected precision in some cases, but until overall quality is acceptable, you can do such trade-offs.</p>
<p>Hope this helps,</p>
<p>Best regards,<br />
Yuri</p>
]]></content:encoded>
	</item>
</channel>
</rss>

