* [Buildroot] probleme building tesseract-ocr
@ 2015-05-07 16:02 Cédric Castanet
2015-05-08 20:20 ` Gilles Talis
0 siblings, 1 reply; 3+ messages in thread
From: Cédric Castanet @ 2015-05-07 16:02 UTC (permalink / raw)
To: buildroot
Hello,
I started recently to use buildroot for a Pi Target.
I'm not sure i'm on the right place to ask for support, if not please
tel where to post.
after somme succes building target whith simple custom package, I succed
in adding leptonica (leptonica.org) as autotools-package, but i find a
probleme for adding tesseract-ocr as autotools-package:
during the build process, it include file
from /usr/local/include/leptonica in place of $STAGING_DIR/... !!!
so there is a warning for this during compilation then an error probably
du to this.
ex : arm-none-linux-gnueabi-g++: WARNING: unsafe header/library path
used in cross-compilation: '/usr/local/include/leptonica'
here is my .mk file :
################################################################################
#
# TESSERACT_OCR
#
################################################################################
# TESSERACT_OCR_VERSION = 53eab2ee9239a2400f97c6194207432e5837aede
TESSERACT_OCR_SITE = https://code.google.com/p/tesseract-ocr/
TESSERACT_OCR_SITE_METHOD = git
TESSERACT_OCR_VERSION = d508751e585559e2bfe1dcb1c460cba765470884
TESSERACT_OCR_LICENSE = Apache
TESSERACT_OCR_AUTORECONF = YES
TESSERACT_OCR_AUTORECONF_ENV = ./autogen.sh
TESSERACT_OCR_INSTALL_STAGING = YES
TESSERACT_OCR_DEPENDENCIES = leptonica
$(eval $(autotools-package))
I've found the right includes in the staging directory. I ned help to
solve my problem.
regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] probleme building tesseract-ocr
2015-05-07 16:02 [Buildroot] probleme building tesseract-ocr Cédric Castanet
@ 2015-05-08 20:20 ` Gilles Talis
2015-07-14 22:04 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Talis @ 2015-05-08 20:20 UTC (permalink / raw)
To: buildroot
Hello Cedric,
2015-05-07 18:02 GMT+02:00 C?dric Castanet <cedriccastanet@free.fr>:
> Hello,
> I started recently to use buildroot for a Pi Target.
> I'm not sure i'm on the right place to ask for support, if not please
> tel where to post.
You have come to the right place.
> after somme succes building target whith simple custom package, I succed
> in adding leptonica (leptonica.org) as autotools-package, but i find a
> probleme for adding tesseract-ocr as autotools-package:
> during the build process, it include file
> from /usr/local/include/leptonica in place of $STAGING_DIR/... !!!
> so there is a warning for this during compilation then an error probably
> du to this.
>
> ex : arm-none-linux-gnueabi-g++: WARNING: unsafe header/library path
> used in cross-compilation: '/usr/local/include/leptonica'
>
> here is my .mk file :
>
> ################################################################################
> #
> # TESSERACT_OCR
> #
> ################################################################################
>
> # TESSERACT_OCR_VERSION = 53eab2ee9239a2400f97c6194207432e5837aede
> TESSERACT_OCR_SITE = https://code.google.com/p/tesseract-ocr/
> TESSERACT_OCR_SITE_METHOD = git
> TESSERACT_OCR_VERSION = d508751e585559e2bfe1dcb1c460cba765470884
> TESSERACT_OCR_LICENSE = Apache
> TESSERACT_OCR_AUTORECONF = YES
> TESSERACT_OCR_AUTORECONF_ENV = ./autogen.sh
> TESSERACT_OCR_INSTALL_STAGING = YES
> TESSERACT_OCR_DEPENDENCIES = leptonica
>
> $(eval $(autotools-package))
>
>
> I've found the right includes in the staging directory. I ned help to
> solve my problem.
> regards
I have some work-in-progress patches around these packages, that you
can re-use. Both packages build and have been quickly tested. However,
they need to be cleaned up, verified against toolchain dependencies,
etc...
Patches are attached, I'd be grateful if you could clean them up and
send them for review once you are happy with them.
Thanks
Gilles.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-leptonica-new-package.patch
Type: text/x-patch
Size: 2646 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150508/792cb4e7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-tesseract-ocr-new-package.patch
Type: text/x-patch
Size: 23226 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150508/792cb4e7/attachment-0001.bin>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] probleme building tesseract-ocr
2015-05-08 20:20 ` Gilles Talis
@ 2015-07-14 22:04 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-07-14 22:04 UTC (permalink / raw)
To: buildroot
Gilles, C?dric,
On Fri, 8 May 2015 22:20:53 +0200, Gilles Talis wrote:
> I have some work-in-progress patches around these packages, that you
> can re-use. Both packages build and have been quickly tested. However,
> they need to be cleaned up, verified against toolchain dependencies,
> etc...
> Patches are attached, I'd be grateful if you could clean them up and
> send them for review once you are happy with them.
Have you found some time to work on those patches? Since Gilles sent
them, they have been sitting in our patch tracking system, but they are
indeed not ready for merging.
So I will mark them as "Not Applicable" so that they no longer appear
in our list of pending patches. So if you're still interested in
tesseract-ocr, please resend an updated version of the patches once you
consider them to be ready for review.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-14 22:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07 16:02 [Buildroot] probleme building tesseract-ocr Cédric Castanet
2015-05-08 20:20 ` Gilles Talis
2015-07-14 22:04 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox