<?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>Thu, 03 May 2012 13:54:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mick</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-6381</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Sun, 25 Mar 2012 00:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6381</guid>
		<description>New posting about Osra 1.3.8 on Ubuntu 11.10:

http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/</description>
		<content:encoded><![CDATA[<p>New posting about Osra 1.3.8 on Ubuntu 11.10:</p>
<p><a href="http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/" rel="nofollow">http://timony.com/mickzblog/2012/03/24/build-install-osra-1-3-8/</a></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-6380</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Sat, 24 Mar 2012 23:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6380</guid>
		<description>I got it to build, I had to install the patched gocr that they mention in their install docs, pointing configure at the sources didn&#039;t work.

Here&#039;s my quick tips, I&#039;ll write a new posting about this later this weekend:


Get Osra, at time of writing it&#039;s 1.3.8:

cd /tmp; mkdir OSRA; cd OSRA; wget http://cactus.nci.nih.gov/osra/osra-1.3.8.tgz ; wget http://cactus.nci.nih.gov/osra/gocr-0.50pre-patched.tgz ;


Extract both packages:
tar xzvf osra-1.3.8.tgz
tar xzvf gocr-0.50pre-patched.tgz 


Install the following (you will need some gaphicsmagick packages also, libgraphicsmagick1-dev libgraphicsmagick  3  and maybe some others).

sudo apt-get install openbabel potrace ocrad libtclap-dev  libopenbabel-dev libpotrace-dev libocrad-dev

You need to make and install the patched Gocr:

cd /tmp/OSRA/gocr-0.50pre-patched
sudo make install;

This will install the patched gocr into /usr/local . This may cause conflicts if you&#039;ve installed gocr using another methods for instance using apt-get or aptitude.

Next compile Osra:

cd /tmp/OSRA/gocr-0.50pre-patched
./configure
make all

To install Osra on your system, run the following using sudo:
sudo make install

Look for it in /usr/local/bin .</description>
		<content:encoded><![CDATA[<p>I got it to build, I had to install the patched gocr that they mention in their install docs, pointing configure at the sources didn&#8217;t work.</p>
<p>Here&#8217;s my quick tips, I&#8217;ll write a new posting about this later this weekend:</p>
<p>Get Osra, at time of writing it&#8217;s 1.3.8:</p>
<p>cd /tmp; mkdir OSRA; cd OSRA; wget <a href="http://cactus.nci.nih.gov/osra/osra-1.3.8.tgz" rel="nofollow">http://cactus.nci.nih.gov/osra/osra-1.3.8.tgz</a> ; wget <a href="http://cactus.nci.nih.gov/osra/gocr-0.50pre-patched.tgz" rel="nofollow">http://cactus.nci.nih.gov/osra/gocr-0.50pre-patched.tgz</a> ;</p>
<p>Extract both packages:<br />
tar xzvf osra-1.3.8.tgz<br />
tar xzvf gocr-0.50pre-patched.tgz </p>
<p>Install the following (you will need some gaphicsmagick packages also, libgraphicsmagick1-dev libgraphicsmagick  3  and maybe some others).</p>
<p>sudo apt-get install openbabel potrace ocrad libtclap-dev  libopenbabel-dev libpotrace-dev libocrad-dev</p>
<p>You need to make and install the patched Gocr:</p>
<p>cd /tmp/OSRA/gocr-0.50pre-patched<br />
sudo make install;</p>
<p>This will install the patched gocr into /usr/local . This may cause conflicts if you&#8217;ve installed gocr using another methods for instance using apt-get or aptitude.</p>
<p>Next compile Osra:</p>
<p>cd /tmp/OSRA/gocr-0.50pre-patched<br />
./configure<br />
make all</p>
<p>To install Osra on your system, run the following using sudo:<br />
sudo make install</p>
<p>Look for it in /usr/local/bin .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-6379</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 22 Mar 2012 09:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6379</guid>
		<description>Thank you very much Mick!</description>
		<content:encoded><![CDATA[<p>Thank you very much Mick!</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-6378</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Thu, 22 Mar 2012 02:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6378</guid>
		<description>I&#039;ll see if I can get it to work on 11.10 in the next week or so.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll see if I can get it to work on 11.10 in the next week or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://timony.com/mickzblog/2009/07/04/compiling-osra-on-ubuntu-jaunty/comment-page-1/#comment-6377</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 20 Mar 2012 11:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://timony.com/mickzblog/?p=646#comment-6377</guid>
		<description>I have to tried to install the OSRA 1.3.8 on ubuntu 10.10, but I was not lucky. When I tried to configure it I got an error around the gocr pgm2asc.h file. But when I try to change the path of the gocr source it also could find the pgm2asc.h

Somebody has an idea what am I wrong or how can I complie the OSRA under ubuntu 10.10 or in the lucky case under ubuntu 11.10?</description>
		<content:encoded><![CDATA[<p>I have to tried to install the OSRA 1.3.8 on ubuntu 10.10, but I was not lucky. When I tried to configure it I got an error around the gocr pgm2asc.h file. But when I try to change the path of the gocr source it also could find the pgm2asc.h</p>
<p>Somebody has an idea what am I wrong or how can I complie the OSRA under ubuntu 10.10 or in the lucky case under ubuntu 11.10?</p>
]]></content:encoded>
	</item>
	<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>

