On Tue, Dec 9, 2008 at 5:20 AM, snorrsi <[EMAIL PROTECTED]> wrote:

>
> Can you please tell me what should be sufficient command to compile
> main-ocr-layout-rast.cc and works for you,


You need to have iulib and ocropus installed. Then this command will work:
g++ -o ocr-layout-rast main-ocr-layout-rast.cc -g
-I/usr/local/include/ocropus -I/usr/local/include/colib
-I/usr/local/include/iulib -lpng -ljpeg -ltiff -locropus -liulib

BTW I am using 0.3 release




> On Dec 9, 5:20 am, "Faisal Shafait" <[EMAIL PROTECTED]> wrote:
> > You are probably missing linking flag to libocropus... just add -locropus
> to
> > the end of command line. Of course, you should have installed ocropus for
> > that (sudo make install)
> >
> > On Tue, Dec 9, 2008 at 2:54 AM, snorrsi <[EMAIL PROTECTED]> wrote:
> >
> > > dear readers,
> >
> > > I've been trying to compile the samples for Ocropus.
> > > I have had success with few scripts but I can't compile the main-ocr-
> > > layout-rast.cc located in the ocr-layout-rast folder.
> > > Can anyone please advise me of how to compile Ocropus scripts in C++.
> > > I am trying to see what advantages Ocropus in c++ has over Lua but
> > > can't get over this compile issue.
> >
> > > I am using the Ocropus svn r1307
> >
> > > $ g++ main-ocr-layout-rast.cc -o ocr-layout-rast-test -I/usr/local/
> > > include/colib -I/usr/local/include/iulib -I/usr/loca/include/ocropus -
> > > lpng -liulib -ljpeg -lSDL -lSDL_gfx
> > > /tmp/ccpxdJbK.o: In function `main': main-ocr-layout-rast.cc:(.text
> > > +0xa7b): undefined reference to `ocropus::make_SegmentPageByRAST()'
> > > collect2: ld returned 1 exit status
> > > $
> >
> > > Any hints or guesses are more than welcome
> >
> > > with best regards,
> > > Snorri Siemsen
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to