On Thu, May 27, 2010 at 5:35 PM, Jimmy O'Regan <[email protected]> wrote:

> On 27 May 2010 13:47, michael <[email protected]> wrote:
> > Hi all,
> >
> > I'm trying to compile tesseract for microblaze but after different
> > things to disable GRAPHICS, I have some problem
> > on compile libtesseract_api
> >
>
> You haven't provided enough information. You need to at least specify
> which version of tesseract you're using, and, as you've made custom
> changes, you should provide specific information about those changes -
> a diff is better, but attaching whole makefiles works for me too -
> otherwise you may as well asking for someone to guess how many grains
> of sand there are on the beach (without even saying which beach :)
>
> > mb-linux-g++ -DHAVE_CONFIG_H -I. -I..  -I../ccutil -I../ccstruct -I../
> > image -I../viewer -I../ccops -I../dict -I../classify -I../ccmain -I../
> > wordrec -I../cutil -I../textord   -g -O2 -MT baseapi.o -MD -MP -
> > MF .deps/baseapi.Tpo -c -o baseapi.o baseapi.cpp
> > mv -f .deps/baseapi.Tpo .deps/baseapi.Po
> > ar cru libtesseract_api.a libtesseract_api.o ; ranlib
> > libtesseract_api.a
> > ar: libtesseract_api.o: No such file or directory
> > ranlib: 'libtesseract_api.a': No such file
> > make[1]: *** [libtesseract_api.a] Error 1
> >
> > The problem is that it unable to generate the object file.
> > libtesseract_api.o: baseapi.o \
> >    ../ccmain/libtesseract_main.a \
> >    ../textord/libtesseract_textord.a \
> >    ../wordrec/libtesseract_wordrec.a \
> >    ../classify/libtesseract_classify.a \
> >    ../dict/libtesseract_dict.a \
> >    ../ccstruct/libtesseract_ccstruct.a \
> >    ../image/libtesseract_image.a \
> >    ../cutil/libtesseract_cutil.a \
> >    ../viewer/libtesseract_viewer.a \
> >    ../ccutil/libtesseract_ccutil.a
> >
> > This is the tag but I don't see any rule to create
> >
> > Any point on this?
> >
> > Best Regards
> > Michael Trimarchi
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<tesseract-ocr%[email protected]>
> .
> > For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en.
> >
> >
>
> svn  trunk

Index: config/config.sub
===================================================================
--- config/config.sub   (revision 374)
+++ config/config.sub   (working copy)
@@ -273,6 +273,7 @@
        | v850 | v850e \
        | we32k \
        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
+       | mb \
        | z8k)
                basic_machine=$basic_machine-unknown
                ;;
@@ -357,6 +358,7 @@
        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
        | xstormy16-* | xtensa-* \
        | ymp-* \
+       | mb-* \
        | z8k-*)
                ;;
        m32c-*)
@@ -1060,6 +1062,9 @@
                basic_machine=z8k-unknown
                os=-sim
                ;;
+       mb-*)
+               basic_machine=mb-linux
+               ;;
        none)
                basic_machine=none-none
                os=-none


This is the main change. But force to compile without graphics doens't work.
For different reason:

- this include is not always on the top
#ifdef HAVE_CONFIG_H
#include "config_auto.h"
#endif

- there are some function that are used by depend on graphics.

Michael Trimarchi


>
>
> --
> <Leftmost> jimregan, that's because deep inside you, you are evil.
> <Leftmost> Also not-so-deep inside you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tesseract-ocr%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tesseract-ocr?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" 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/tesseract-ocr?hl=en.

Reply via email to