<?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: Profiling OpenCV</title>
	<atom:link href="http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/</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/profiling-opencv/comment-page-1/#comment-863</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Sun, 08 Aug 2010 23:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-863</guid>
		<description>Hi Blaha,

Sorry for a late response. If you still  need help, here is some thoughts about your problem:
First of all, configure script is not a part of cross-compiler (code sourcery). If is a part of OpenCV distribution. Just go to the directory when you have installed opencv and it should be there. If it is not, you probably are using wrong distribution (for instance, Windows version does not have configure script, but Linux does).

Hope this helps.

Best regards,
Yuri</description>
		<content:encoded><![CDATA[<p>Hi Blaha,</p>
<p>Sorry for a late response. If you still  need help, here is some thoughts about your problem:<br />
First of all, configure script is not a part of cross-compiler (code sourcery). If is a part of OpenCV distribution. Just go to the directory when you have installed opencv and it should be there. If it is not, you probably are using wrong distribution (for instance, Windows version does not have configure script, but Linux does).</p>
<p>Hope this helps.</p>
<p>Best regards,<br />
Yuri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaha</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-806</link>
		<dc:creator>Blaha</dc:creator>
		<pubDate>Thu, 01 Jul 2010 14:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-806</guid>
		<description>Hi Yuri,

First of all thanks a lot for this great work.
I follow it step by step but it goes down when I want to configure.
At the line ./configure I get the error :no such file or directory.
I&#039;m using arm-2009q3-67-arm-none-linux-gnueabi, which I installed on $HOME/CodeSourcery. I seek for the configure script and I can&#039;t find it.

What can I do?

Thank you</description>
		<content:encoded><![CDATA[<p>Hi Yuri,</p>
<p>First of all thanks a lot for this great work.<br />
I follow it step by step but it goes down when I want to configure.<br />
At the line ./configure I get the error :no such file or directory.<br />
I&#8217;m using arm-2009q3-67-arm-none-linux-gnueabi, which I installed on $HOME/CodeSourcery. I seek for the configure script and I can&#8217;t find it.</p>
<p>What can I do?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sagar J</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-612</link>
		<dc:creator>Sagar J</dc:creator>
		<pubDate>Mon, 29 Mar 2010 06:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-612</guid>
		<description>Thanks a lot Yuri,

That include error was a copy paste mistake.. Sorry for that. And yes I was using a UI but mistakenly copied a wrong test project. :(

I have built the project with carbon support. and will try porting it to the target. 

Thanks a lot for your help :D ... 

Regards 
Sagar</description>
		<content:encoded><![CDATA[<p>Thanks a lot Yuri,</p>
<p>That include error was a copy paste mistake.. Sorry for that. And yes I was using a UI but mistakenly copied a wrong test project. <img src='http://www.computer-vision-software.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I have built the project with carbon support. and will try porting it to the target. </p>
<p>Thanks a lot for your help <img src='http://www.computer-vision-software.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  &#8230; </p>
<p>Regards<br />
Sagar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-599</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Wed, 24 Mar 2010 05:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-599</guid>
		<description>Sagar,

I am glad that my post has helped you in your work.

As for your questions, please read below:
First of all, the code you provided is not complete. I see &quot;#include&quot; without actual header you are including.
Next, you are writing that it falls while trying to execute &quot;cvNamedWindow&quot; function, but in your &quot;main&quot; function there is not such call.

In case you really trying to call cvNamedWindow - you are correct. If you build OpenCV without GTK/Carbon support there is no way for you to use any User Interface functions such as cvNamedWindow, cvShowImage, etc. You will have to rebuild OpenCV with GTK+ or Carbon support.

Another way to solve this problem it is to write corresponding wrapper functions, such as &quot;myCvNamedWindow&quot;, &quot;myCvShowImage&quot; and so on, and use them instead of standard &quot;cvNamedWindow&quot;, &quot;cvShowImage&quot;, etc. Inside these wrapper functions you may use any graphical framework (such as QT) available on your target platform to show what you need to show. By other words, you may create a new QT window in &quot;myCvNamedWinodw&quot; and display your image using QT API inside the &quot;myCvShowImage&quot; wrapper.

Hope this helps.

Best Regards,
Yuri Vashchenko</description>
		<content:encoded><![CDATA[<p>Sagar,</p>
<p>I am glad that my post has helped you in your work.</p>
<p>As for your questions, please read below:<br />
First of all, the code you provided is not complete. I see &#8220;#include&#8221; without actual header you are including.<br />
Next, you are writing that it falls while trying to execute &#8220;cvNamedWindow&#8221; function, but in your &#8220;main&#8221; function there is not such call.</p>
<p>In case you really trying to call cvNamedWindow &#8211; you are correct. If you build OpenCV without GTK/Carbon support there is no way for you to use any User Interface functions such as cvNamedWindow, cvShowImage, etc. You will have to rebuild OpenCV with GTK+ or Carbon support.</p>
<p>Another way to solve this problem it is to write corresponding wrapper functions, such as &#8220;myCvNamedWindow&#8221;, &#8220;myCvShowImage&#8221; and so on, and use them instead of standard &#8220;cvNamedWindow&#8221;, &#8220;cvShowImage&#8221;, etc. Inside these wrapper functions you may use any graphical framework (such as QT) available on your target platform to show what you need to show. By other words, you may create a new QT window in &#8220;myCvNamedWinodw&#8221; and display your image using QT API inside the &#8220;myCvShowImage&#8221; wrapper.</p>
<p>Hope this helps.</p>
<p>Best Regards,<br />
Yuri Vashchenko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sagar J</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-598</link>
		<dc:creator>Sagar J</dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-598</guid>
		<description>Dear Yuri, 

I Got tremendous help reading your posts and your article on crosscompilation of OpenCV for ARM9 platform. Thanks a lot for that. :) 
For now I have successfully crosscompiled the OpenCV for ARM using all the info you have shared. There is a small problem. 
I have used your shown configuration script during OpenCV build, without GTK and CARBON support. 

Following was a small test code I was trying to compile for ARM 9 (Beagle board)

#include &quot;cv.h&quot;
#include &quot;highgui.h&quot;
#include &quot;cxcore.h&quot;
#include

int main()
{
  printf(&quot;\n\n This is a test program&quot;);
  IplImage * I = cvLoadImage(&quot;test.bmp&quot;,0);
  cvSaveImage(&quot;temp.bmp&quot;,I);
  exit(0);
}

Initial compile gave some errors but adding -pthread in the LDFLAGS variable in make solved them and generated the binary.

But when I tried to execute the binary on the Beagleboard I got the following errors

-&gt;
root@beagleboard:~# cd /media/mmcblk0p1/Sagar/
root@beagleboard:/media/mmcblk0p1/Sagar# ls
ARMscript.sh  gmon.out    makefile  sapa    temp.bmp  test.cpp
root@beagleboard:/media/mmcblk0p1/Sagar# ./sapa


OpenCV ERROR: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support)
    in function cvNamedWindow, window.cpp(71)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...
    called from cvUnregisterType, cxpersistence.cpp(4933)
Terminating the application...

 This is a test programroot@beagleboard:/media/mmcblk0p1/Sagar# 
root@beagleboard:/media/mmcblk0p1/Sagar# 

Now what I guessed from this is that as OPenCV was build without GTK CARBON support, the ARM was not able to include libraries used for GUI and Image load like highgui.lib.

Kindly tell me if my guess is right or not. If it is right please guide me in how do I resolve it.
I improvised by building the library using GTK support, but that generated a bunch of errors in the compile phase itself.

Kindly help :).

Thanks and Regards
 Sagar Joglekar</description>
		<content:encoded><![CDATA[<p>Dear Yuri, </p>
<p>I Got tremendous help reading your posts and your article on crosscompilation of OpenCV for ARM9 platform. Thanks a lot for that. <img src='http://www.computer-vision-software.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
For now I have successfully crosscompiled the OpenCV for ARM using all the info you have shared. There is a small problem.<br />
I have used your shown configuration script during OpenCV build, without GTK and CARBON support. </p>
<p>Following was a small test code I was trying to compile for ARM 9 (Beagle board)</p>
<p>#include &#8220;cv.h&#8221;<br />
#include &#8220;highgui.h&#8221;<br />
#include &#8220;cxcore.h&#8221;<br />
#include</p>
<p>int main()<br />
{<br />
  printf(&#8220;\n\n This is a test program&#8221;);<br />
  IplImage * I = cvLoadImage(&#8220;test.bmp&#8221;,0);<br />
  cvSaveImage(&#8220;temp.bmp&#8221;,I);<br />
  exit(0);<br />
}</p>
<p>Initial compile gave some errors but adding -pthread in the LDFLAGS variable in make solved them and generated the binary.</p>
<p>But when I tried to execute the binary on the Beagleboard I got the following errors</p>
<p>-&gt;<br />
root@beagleboard:~# cd /media/mmcblk0p1/Sagar/<br />
root@beagleboard:/media/mmcblk0p1/Sagar# ls<br />
ARMscript.sh  gmon.out    makefile  sapa    temp.bmp  test.cpp<br />
root@beagleboard:/media/mmcblk0p1/Sagar# ./sapa</p>
<p>OpenCV ERROR: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support)<br />
    in function cvNamedWindow, window.cpp(71)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;<br />
    called from cvUnregisterType, cxpersistence.cpp(4933)<br />
Terminating the application&#8230;</p>
<p> This is a test programroot@beagleboard:/media/mmcblk0p1/Sagar#<br />
root@beagleboard:/media/mmcblk0p1/Sagar# </p>
<p>Now what I guessed from this is that as OPenCV was build without GTK CARBON support, the ARM was not able to include libraries used for GUI and Image load like highgui.lib.</p>
<p>Kindly tell me if my guess is right or not. If it is right please guide me in how do I resolve it.<br />
I improvised by building the library using GTK support, but that generated a bunch of errors in the compile phase itself.</p>
<p>Kindly help <img src='http://www.computer-vision-software.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Thanks and Regards<br />
 Sagar Joglekar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitri</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-310</link>
		<dc:creator>Dmitri</dc:creator>
		<pubDate>Mon, 21 Sep 2009 06:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-310</guid>
		<description>Thanx Yuri Vashchenko...

your last post has been very helpful....I successfully recompiled facedetect.c in Dec-C++ using this information...

thanx alot...</description>
		<content:encoded><![CDATA[<p>Thanx Yuri Vashchenko&#8230;</p>
<p>your last post has been very helpful&#8230;.I successfully recompiled facedetect.c in Dec-C++ using this information&#8230;</p>
<p>thanx alot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-242</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Tue, 01 Sep 2009 21:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-242</guid>
		<description>Hello daynie,

I am willing to help you, but I need more information.
As I understand, you are trying to compile some code that requires opencv and you are running Windows and Visual Studio 2008.
Do you need to make changes to existing opencv release or you just need to be able to use opencv library for your own applications?
If you do not need  to do any changes to OpenCV library, the easiest way to start using opencv library is just to install it with provided installer (OpenCV_1.1pre1a.exe). When installed, you need to update your Visual Studio project properties to be able to  compile your application.
First, you need to go to C/C++-&gt;General page and put paths to your opencv headers into &quot;Additional Include Directories&quot; field to make compiler know where to find them. It depends on where you have installed opencv, but by defaul it should read like &quot;C:\Program Files\OpenCV\otherlibs\highgui&quot;;&quot;C:\Program Files\OpenCV\cxcore\include&quot;;&quot;C:\Program Files\OpenCV\cv\include&quot;.
Next, you need to give linker directory on where to look for opencv libraries - go to Linker-&gt;General properties page and put the path into Additional Library Directories field. By default, the path is &quot;C:\Program Files\OpenCV\lib&quot;.
Finally, you need to say linker which libraries to use. Go to Linker-&gt;Input page and put &quot;cv.lib cxcore.lib highgui.lib&quot; (without quotes) into Additional Dependencies field. If you are using debug configuration, this should read &quot;cvd.lib cxcored.lib highguid.lib&quot; (without quotes)
That should make your application compile and run.
If not, you may want to send me your source code to look at. If I have it I can probably be more helpfull to you.</description>
		<content:encoded><![CDATA[<p>Hello daynie,</p>
<p>I am willing to help you, but I need more information.<br />
As I understand, you are trying to compile some code that requires opencv and you are running Windows and Visual Studio 2008.<br />
Do you need to make changes to existing opencv release or you just need to be able to use opencv library for your own applications?<br />
If you do not need  to do any changes to OpenCV library, the easiest way to start using opencv library is just to install it with provided installer (OpenCV_1.1pre1a.exe). When installed, you need to update your Visual Studio project properties to be able to  compile your application.<br />
First, you need to go to C/C++-&gt;General page and put paths to your opencv headers into &#8220;Additional Include Directories&#8221; field to make compiler know where to find them. It depends on where you have installed opencv, but by defaul it should read like &#8220;C:\Program Files\OpenCV\otherlibs\highgui&#8221;;&#8221;C:\Program Files\OpenCV\cxcore\include&#8221;;&#8221;C:\Program Files\OpenCV\cv\include&#8221;.<br />
Next, you need to give linker directory on where to look for opencv libraries &#8211; go to Linker-&gt;General properties page and put the path into Additional Library Directories field. By default, the path is &#8220;C:\Program Files\OpenCV\lib&#8221;.<br />
Finally, you need to say linker which libraries to use. Go to Linker-&gt;Input page and put &#8220;cv.lib cxcore.lib highgui.lib&#8221; (without quotes) into Additional Dependencies field. If you are using debug configuration, this should read &#8220;cvd.lib cxcored.lib highguid.lib&#8221; (without quotes)<br />
That should make your application compile and run.<br />
If not, you may want to send me your source code to look at. If I have it I can probably be more helpfull to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daynie</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-240</link>
		<dc:creator>daynie</dc:creator>
		<pubDate>Tue, 01 Sep 2009 04:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-240</guid>
		<description>dear Yuri,
Sorry, I&#039;m newbie .. 
I found some source for compiling in Ms Vis Studio 2008, this source need OpenCV configuration in Ms Vis Studio 2008 and I did. Now, I dont know how to combine and integrate between the source, OpenCV and Ms Vis Studio 2008.
Any suggest and help would so appreciate .. 

thankyou,</description>
		<content:encoded><![CDATA[<p>dear Yuri,<br />
Sorry, I&#8217;m newbie ..<br />
I found some source for compiling in Ms Vis Studio 2008, this source need OpenCV configuration in Ms Vis Studio 2008 and I did. Now, I dont know how to combine and integrate between the source, OpenCV and Ms Vis Studio 2008.<br />
Any suggest and help would so appreciate .. </p>
<p>thankyou,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri Vashchenko</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-69</link>
		<dc:creator>Yuri Vashchenko</dc:creator>
		<pubDate>Sun, 17 May 2009 21:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-69</guid>
		<description>Vihang,

I am not sure I understand you question. What do you mean &quot;compile individually cxcore&quot;? What was the purpose of &quot;hacking&quot; the configure and makefile? Please clarify.
If you compiled the whole opencv, you already compiled cxcore, cv and cvaux. You can use generated libraries separately with your own applications.
If you ran the configure script, it should have generated Makefiles for all opencv compoinents. When you run Makefile, it first compiles cvcore, and even it fails (for any reason) later on other opencv components, it cxcore built successfully, you can use it separately. Next goes cv, then cvaux and finally, ml.
If you need opencv for a mulitiple platforms, you need a cross-compiler. Just give the &quot;configure&quot; script correct host, build and target platform names and it will generate you correct Makefiles. If your cross-compiler (I recommend you CodeSourcery G++ toolchain, they build gcc for different platforms) configured correctly everything should work, you do not need to modify your configure script or any Makefiles.  

Thanks,
Yuri.</description>
		<content:encoded><![CDATA[<p>Vihang,</p>
<p>I am not sure I understand you question. What do you mean &#8220;compile individually cxcore&#8221;? What was the purpose of &#8220;hacking&#8221; the configure and makefile? Please clarify.<br />
If you compiled the whole opencv, you already compiled cxcore, cv and cvaux. You can use generated libraries separately with your own applications.<br />
If you ran the configure script, it should have generated Makefiles for all opencv compoinents. When you run Makefile, it first compiles cvcore, and even it fails (for any reason) later on other opencv components, it cxcore built successfully, you can use it separately. Next goes cv, then cvaux and finally, ml.<br />
If you need opencv for a mulitiple platforms, you need a cross-compiler. Just give the &#8220;configure&#8221; script correct host, build and target platform names and it will generate you correct Makefiles. If your cross-compiler (I recommend you CodeSourcery G++ toolchain, they build gcc for different platforms) configured correctly everything should work, you do not need to modify your configure script or any Makefiles.  </p>
<p>Thanks,<br />
Yuri.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vihang</title>
		<link>http://www.computer-vision-software.com/blog/2009/03/profiling-opencv/comment-page-1/#comment-68</link>
		<dc:creator>vihang</dc:creator>
		<pubDate>Sat, 16 May 2009 05:45:19 +0000</pubDate>
		<guid isPermaLink="false">http://computer-vision-software.com/blog/?p=28#comment-68</guid>
		<description>Hello,
I am new user to opencv. I have successfully compiled opencv source code ver 1.1.0 on ubuntu hardy heron - intel. Now I want to compile individually cxcore for same. I tried to hack root configure and makefile. But it did not work out. I guess that is a wrong way to do?
My ultimate aim is to compile cxcore,cv,cvaux for ubuntu and then cross compile them for other platform.
Can you suggest me steps to do that?
or guide me to source where I can find it. I have dropped query on opencv forum but no response.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I am new user to opencv. I have successfully compiled opencv source code ver 1.1.0 on ubuntu hardy heron &#8211; intel. Now I want to compile individually cxcore for same. I tried to hack root configure and makefile. But it did not work out. I guess that is a wrong way to do?<br />
My ultimate aim is to compile cxcore,cv,cvaux for ubuntu and then cross compile them for other platform.<br />
Can you suggest me steps to do that?<br />
or guide me to source where I can find it. I have dropped query on opencv forum but no response.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

