Hi Caius,
Besides, including the header files, you also need to link to the libraries.
Here is a command that should produce an executable named xycut:
g++ main-ocr-pageseg-xycut.cc *-o xycut* -I/usr/local/include/colib
-I/usr/local/include/iulib -I/usr/local/include/ocropus* -lpng -liulib
-ljpeg -locropus*

Cheers,
Faisal

On Sun, Sep 14, 2008 at 10:15 PM, Caius <[EMAIL PROTECTED]> wrote:

>
> Hi list!
>
> Ok, sorry for the generic parts I could go study myself, but I wasn't
> sure what's really holding me back here... The problem is I can't
> compile main-ocr-pageseg-xycut to see what it does.
>
> I've tried this from the ocr-pageseg subdirectory:
>
> g++ main-ocr-pageseg-xycut.cc -I/usr/local/include/colib -I/usr/local/
> include/iulib -I/usr/local/include/ocropus
>
> And it complains like this:
>
> main-ocr-pageseg-xycut.cc: In function 'void
> invertbg(colib::intarray&)':
> main-ocr-pageseg-xycut.cc:38: error: 'simple_recolor' was not declared
> in this scope
> main-ocr-pageseg-xycut.cc: In function 'int main(int, char**)':
> main-ocr-pageseg-xycut.cc:58: error: invalid use of incomplete type
> 'struct ocropus::SegmentPageByXYCUTS'
> ocr-pageseg-xycut.h:40: error: forward declaration of 'struct
> ocropus::SegmentPageByXYCUTS'
>
> So probably it's just how I'm trying to do the compiling.. Could
> someone help a C++ newbie, please?
>
> I've got ocropus r1194 from svn compiled and installed, and the "run-
> tests" script finishes successfully.
>
> Thanks!
> Caius
>
> >
>

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