dear Faisal Shafait,

Thanks for a quick reply.
I also tried that before, then I got a whole bunch of other errors
about undefined items in ocr-utils.h , ocr-layout-rast.h , ocr-deskew-
rast.h and other files. Just wanted to see whether anyone else had
this issue before posting the whole bunch of errors here. Can do that
later if asked to.
Can you please tell me what should be sufficient command to compile
main-ocr-layout-rast.cc and works for you, and whether it is that my
svn version is making it hard for me. I haven't tried the formal 3.1
version yet.

Maybe I don't even need to use the -I option in g++ ? Tried both
though, none worked.

with best regards,
Snorri

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