ocr-layout directory

2 views
Skip to first unread message

Bill

unread,
Jul 1, 2009, 11:16:51 AM7/1/09
to ocropus
Hi,
In my adventure with OCRopus I stumbled upon the contents of the ocr-
layout directory. I wanted to try out some page segmentation algorithm
implementations present there (besides RAST). I wanted to compile the
ocr-pageseg-wcuts.cc file, but got a lot of errors of missing var
types (probably because of wrong headers included)...
My question is - are the files located in the ocr-layout directory
meant to be there only for test purposes? Or is there a way to include
them in your own project...

Thanks in advance for your help,
Sending kind regards,

Bill

Bill

unread,
Jul 2, 2009, 10:08:14 AM7/2/09
to ocropus
Ok, I've managed to narrow down the problem...
After issuing the following command in the ocr-layout directory:

g++ -o ocr-pageseg-wcuts ocr-pageseg-wcuts.cc -g
-I/usr/local/include/ocropus -I/usr/local/include/colib -I/usr/local/
include/iulib
-lpng -ljpeg -ltiff -locropus -liulib

I get the following error:

/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crt1.o: In function
`_start':
/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined
reference to `main'
collect2: ld returned 1 exit status

Now this is something new, as it does not apply to OCRopus, but IMHO
to gcc...
Has anyone a clue?

Thanks in advance for your help,
Regards,
Bill
Reply all
Reply to author
Forward
0 new messages