You need to link with OCRopus as well (-locropus).

Tom

On Mon, Jan 12, 2009 at 08:35, Qurat-ul-Ain Akram <[email protected]>wrote:

> Hi All,
>
> I have installed the ocropus-0.3 version according to the instructions
> given in the wiki site. Now I want to test the binarization methods. The
> main procedure is given below:
>
> the OCRopus source code is given in root/bstg/ocropus-0.3
> I made a directory "imginvert" in the ocropus .
> make a .cc file named "Otsu_Method" . and write code which is given below
>
> -----------------------------------------------------------------------------
> #include "iulib/imgio.h"
> #include <ocropus/ocr-binarize-otsu.h>
>
> using  namespace ocropus;
> using namespace colib;
> using namespace iulib;
>
> int main(int argc,char **argv)
>  {
>         bytearray    image;
>     bytearray result;
> autodel<IBinarize>  binarizer  (make_BinarizeByOtsu());
> read_image_gray(image,argv[1]);
> makelike(result,image);
>
> binarizer->binarize(result,image);
> write_image_binary(argv[2],result);
>
> }
>
> ---------------------------------------------------------------
>
> the command  for compiling is
>
> g++ Otsu_Method.cc -liulib -lSDL_gfx -lSDL  -lpng -ljpeg
>
> but when i entered this  command , the following error come
>
> /tmp/ccaKKgc2.o: In function `main':
> Otsu_Method2.cc:(.text+0x1da): undefined reference to
> `ocropus::make_BinarizeByOtsu()'
> collect2: ld returned 1 exit status
>
> Can anybody tell me , what this error meant, and how to solve it.
>
>
> waiting for reply
>
> Ainie
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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