<?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 Osra on Ubuntu Jaunty</title>
	<atom:link href="http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/feed/" rel="self" type="application/rss+xml" />
	<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/</link>
	<description>Things that interest me.</description>
	<lastBuildDate>Wed, 18 Jan 2012 10:18:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: iryt</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-6332</link>
		<dc:creator>iryt</dc:creator>
		<pubDate>Wed, 29 Dec 2010 17:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6332</guid>
		<description>I have some problems witch compiling, gocr/pgm2asc.h is in folder but configure don&#039;t like it.
Is there any hope for creating deb file for people that don&#039;t want to compile?</description>
		<content:encoded><![CDATA[<p>I have some problems witch compiling, gocr/pgm2asc.h is in folder but configure don&#8217;t like it.<br />
Is there any hope for creating deb file for people that don&#8217;t want to compile?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mick</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-5737</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Sat, 03 Apr 2010 23:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-5737</guid>
		<description>Hi AM,

Glad you were able to get it to compile. :)

Cheers
Mick</description>
		<content:encoded><![CDATA[<p>Hi AM,</p>
<p>Glad you were able to get it to compile. <img src='http://timony.com/mickzblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers<br />
Mick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: am</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-5735</link>
		<dc:creator>am</dc:creator>
		<pubDate>Thu, 01 Apr 2010 11:53:22 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-5735</guid>
		<description>Thanks, it worked, however there was one more thing I had to do. I had to search and replace all the /usr/local/... occurrences in the Makefile and change them to /usr/ not just the 4 variables above.

BTW: I use Ubuntu 9.04 Jaunty but with the Karmic instruction it works fine. 
Thank you very very much you are a life saver</description>
		<content:encoded><![CDATA[<p>Thanks, it worked, however there was one more thing I had to do. I had to search and replace all the /usr/local/&#8230; occurrences in the Makefile and change them to /usr/ not just the 4 variables above.</p>
<p>BTW: I use Ubuntu 9.04 Jaunty but with the Karmic instruction it works fine.<br />
Thank you very very much you are a life saver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mick</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-5734</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Wed, 31 Mar 2010 05:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-5734</guid>
		<description>What version of Ubuntu are you on?

I just tried rebuilding 1.3.5 on Ubuntu Karmic and I had to make some changes to the steps above. Note, I had to use ocrad 0.19 from GNU and not the source package that Ubuntu has. The Osra website says you have to use 0.19 for Osra 1.3.5 to compile.

So do the following to compile 1.3.5 on Ubuntu Karmic:
cd /tmp/OSRA; wget http://cactus.nci.nih.gov/osra/osra-1.3.5.tgz; tar xzvf osra-1.3.5.tgz
cd /tmp/OSRA; wget http://ftp.gnu.org/gnu/ocrad/ocrad-0.19.tar.gz
tar xzvf ocrad-0.19.tar.gz; cd ocrad-0.19/; ./configure; make;

Make the following changes the the Osra Makefile (in /tmp/OSRA/osra-1.3.5):

POTRACE=../potrace-1.8/
GOCR=../gocr-0.46/
OCRAD=../ocrad-0.19/
OPENBABEL=/usr/

Then run make and it should work.

Let me know if this works for you and if it does I&#039;ll do a new posting on how to do this on Karmic.

If your not on Karmic let me know.

Also, this is late at night and there might be some typos or errors ... :)</description>
		<content:encoded><![CDATA[<p>What version of Ubuntu are you on?</p>
<p>I just tried rebuilding 1.3.5 on Ubuntu Karmic and I had to make some changes to the steps above. Note, I had to use ocrad 0.19 from GNU and not the source package that Ubuntu has. The Osra website says you have to use 0.19 for Osra 1.3.5 to compile.</p>
<p>So do the following to compile 1.3.5 on Ubuntu Karmic:<br />
cd /tmp/OSRA; wget <a href="http://cactus.nci.nih.gov/osra/osra-1.3.5.tgz" rel="nofollow">http://cactus.nci.nih.gov/osra/osra-1.3.5.tgz</a>; tar xzvf osra-1.3.5.tgz<br />
cd /tmp/OSRA; wget <a href="http://ftp.gnu.org/gnu/ocrad/ocrad-0.19.tar.gz" rel="nofollow">http://ftp.gnu.org/gnu/ocrad/ocrad-0.19.tar.gz</a><br />
tar xzvf ocrad-0.19.tar.gz; cd ocrad-0.19/; ./configure; make;</p>
<p>Make the following changes the the Osra Makefile (in /tmp/OSRA/osra-1.3.5):</p>
<p>POTRACE=../potrace-1.8/<br />
GOCR=../gocr-0.46/<br />
OCRAD=../ocrad-0.19/<br />
OPENBABEL=/usr/</p>
<p>Then run make and it should work.</p>
<p>Let me know if this works for you and if it does I&#8217;ll do a new posting on how to do this on Karmic.</p>
<p>If your not on Karmic let me know.</p>
<p>Also, this is late at night and there might be some typos or errors &#8230; <img src='http://timony.com/mickzblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: am</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-5728</link>
		<dc:creator>am</dc:creator>
		<pubDate>Wed, 24 Mar 2010 11:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-5728</guid>
		<description>I followed you instructions but I get compilation errors. I tried with osra-1.3.5 and also with osra-1.2.1 but I&#039;m getting compilation errors.

patching file ../ocrad-0.17//character.h
g   -g -O2 -fPIC -I../ocrad-0.17/  -D_LIB -D_MT -Wall -I../potrace-1.8//src/ -I../gocr-0.45//src/ -I../gocr-0.45//include/ -I/usr//include/openbabel-2.0/ -I/usr/include/tclap/ -I/usr/include/ImageMagick -g -O2 -Wall -W -c osra_ocr.cpp
In file included from /usr/include/c  /4.3/cwchar:52,
                 from /usr/include/c  /4.3/bits/postypes.h:47,
                 from /usr/include/c  /4.3/bits/char_traits.h:47,
                 from /usr/include/c  /4.3/string:47,
                 from ../ocrad-0.17/common.h:18,
                 from osra_ocr.cpp:34:
/usr/include/wchar.h:140: error: declaration of ‘wchar_t* wcscpy(wchar_t*, const wchar_t*) throw ()’ throws different exceptions
pgm2asc.h:36: error: from previous declaration ‘wchar_t* wcscpy(wchar_t*, const wchar_t*)’
/usr/include/wchar.h:208: error: declaration of ‘wchar_t* wcsdup(const wchar_t*) throw ()’ throws different exceptions
pgm2asc.h:40: error: from previous declaration ‘wchar_t* wcsdup(const wchar_t*)’
/usr/include/wchar.h:214: error: declaration of ‘wchar_t* wcschr(const wchar_t*, wchar_t) throw ()’ throws different exceptions
pgm2asc.h:35: error: from previous declaration ‘wchar_t* wcschr(const wchar_t*, wchar_t)’
/usr/include/wchar.h:249: error: declaration of ‘size_t wcslen(const wchar_t*) throw ()’ throws different exceptions
pgm2asc.h:37: error: from previous declaration ‘size_t wcslen(const wchar_t*)’
osra_ocr.cpp: In function ‘char get_atom_label(Magick::Image, Magick::ColorGray, int, int, int, int, double, int, int)’:
osra_ocr.cpp:56: warning: deprecated conversion from string constant to ‘char*’
osra_ocr.cpp: In function ‘bool detect_bracket(int, int, unsigned char*)’:
osra_ocr.cpp:202: warning: deprecated conversion from string constant to ‘char*’
make: *** [osra_ocr.o] Error 1

What am I going wrong? please help</description>
		<content:encoded><![CDATA[<p>I followed you instructions but I get compilation errors. I tried with osra-1.3.5 and also with osra-1.2.1 but I&#8217;m getting compilation errors.</p>
<p>patching file ../ocrad-0.17//character.h<br />
g   -g -O2 -fPIC -I../ocrad-0.17/  -D_LIB -D_MT -Wall -I../potrace-1.8//src/ -I../gocr-0.45//src/ -I../gocr-0.45//include/ -I/usr//include/openbabel-2.0/ -I/usr/include/tclap/ -I/usr/include/ImageMagick -g -O2 -Wall -W -c osra_ocr.cpp<br />
In file included from /usr/include/c  /4.3/cwchar:52,<br />
                 from /usr/include/c  /4.3/bits/postypes.h:47,<br />
                 from /usr/include/c  /4.3/bits/char_traits.h:47,<br />
                 from /usr/include/c  /4.3/string:47,<br />
                 from ../ocrad-0.17/common.h:18,<br />
                 from osra_ocr.cpp:34:<br />
/usr/include/wchar.h:140: error: declaration of ‘wchar_t* wcscpy(wchar_t*, const wchar_t*) throw ()’ throws different exceptions<br />
pgm2asc.h:36: error: from previous declaration ‘wchar_t* wcscpy(wchar_t*, const wchar_t*)’<br />
/usr/include/wchar.h:208: error: declaration of ‘wchar_t* wcsdup(const wchar_t*) throw ()’ throws different exceptions<br />
pgm2asc.h:40: error: from previous declaration ‘wchar_t* wcsdup(const wchar_t*)’<br />
/usr/include/wchar.h:214: error: declaration of ‘wchar_t* wcschr(const wchar_t*, wchar_t) throw ()’ throws different exceptions<br />
pgm2asc.h:35: error: from previous declaration ‘wchar_t* wcschr(const wchar_t*, wchar_t)’<br />
/usr/include/wchar.h:249: error: declaration of ‘size_t wcslen(const wchar_t*) throw ()’ throws different exceptions<br />
pgm2asc.h:37: error: from previous declaration ‘size_t wcslen(const wchar_t*)’<br />
osra_ocr.cpp: In function ‘char get_atom_label(Magick::Image, Magick::ColorGray, int, int, int, int, double, int, int)’:<br />
osra_ocr.cpp:56: warning: deprecated conversion from string constant to ‘char*’<br />
osra_ocr.cpp: In function ‘bool detect_bracket(int, int, unsigned char*)’:<br />
osra_ocr.cpp:202: warning: deprecated conversion from string constant to ‘char*’<br />
make: *** [osra_ocr.o] Error 1</p>
<p>What am I going wrong? please help</p>
]]></content:encoded>
	</item>
</channel>
</rss>

