13 Replies Latest reply on Mar 11, 2016 2:21 PM by aadil095

    can't load library 'liblept.so.4'

    Heshamnouby

      I am installing tesseract package and leptonica but when I run tesseract

       

      cmd tell me that tesseract cant load library "liblept.so.4"owever , this library on usr/local/lib

       

      plz HElp me ! is this error on image or in installation of packages

       

      note :I installed alexts rep " g++ - gcc - devtool"configure-make"

       

      if anything else ?

       

       

      that readme file leptonica

      I installed it : 1-./configure then make then make install  only

      but redme is

       

      Building on Linux/Unix/MacOS

       

        There are two ways to build the library:

       

          (1) By customization:  Use the existing static makefile,

              src/makefile.static and customize the build by setting flags

              in src/environ.h.  See src/environ.h and src/makefile for details.

              Note: if you are going to develop with leptonica, I encourage

              you to use the static makefiles.

       

          (2) Using autoconf.  Run ./configure in this directory to

              build Makefiles here and in src.  Autoconf handles the

              following automatically:

                  * architecture endianness

                  * enabling Leptonica I/O image read/write functions that

                    depend on external libraries (if the libraries exist)

                  * enabling functions for redirecting formatted image stream

                    I/O to memory (on linux only)

              After running ./configure: make; make install.  There's also

              a 'make check' for testing.

        In more detail:

       

          (1) Customization using the static makefiles:

       

             * FIRST THING: Run make-for-local.  This simply renames

                     src/makefile.static  -->  src/makefile

                     prog/makefile.static -->  prog/makefile

               [Note: the autoconf build will not work if you have any files

                named "makefile" in src or prog.  If you've already run

                make-for-local and renamed the static makefiles, and you then

                want to build with autoconf, run make-for-auto to rename them

                back to makefile.static.]

       

             * You can customize for:

               (a) Including Leptonica I/O functions that depend on external

                   libraries [use flags in src/environ.h]

               (b) Adding functions for redirecting formatted image stream

                   I/O to memory [use flag in src/environ.h]

               (c) Specifying the location of the object code.  By default it

                   goes into a tree whose root is also the parent of the src

                   and prog directories.  This can be changed using the

                   ROOT_DIR variable in makefile.

       

             * Build the library:

               - To make an optimized version of the library (in src):

                     make

               - To make a debug version of the library (in src):

                     make DEBUG=yes debug

               - To make a shared library version (in src):

                     make SHARED=yes shared

               - To make the prototype extraction program (in src):

                     make   (to make the library first)

                     make xtractprotos

       

             * To use shared libraries, you need to include the location of

               the shared libraries in your LD_LIBRARY_PATH.

       

             * To make the programs in the prog directory, first make liblept

               in src.  Then in prog you can customize the makefile for linking

               the external libraries:

               Finally, do 'make' in the prog directory.

       

             VERY IMPORTANT: the 240+ programs in the prog directory are

             an integral part of this package.  These can be divided into

             four groups:

               (1) Programs that are useful applications for running on the

                   command line.  They can be installed from autoconf builds

                   using 'make install'.  Examples of these are the PostScript

                   and pdf conversion programs: converttopdf, converttops,

                   convertfilestopdf, convertfilestops, convertsegfilestopdf,

                   convertsegfilestops, printimage and printsplitimage.

               (2) Programs that are used as regression tests in alltests_reg.

                   These are named *_reg, and 66 of them are invoked together

                   (alltests_reg).  The regression test framework has been

                   standardized, and regresstion tests are relatively easy

                   to write.  See regutils.h for details.

               (3) Other regression tests, some of which have not (yet) been

                   put into the framework.  They are also named *_reg.

               (4) Programs that were used to test library functions or

                   auto-generate library code.  These are useful for testing

                   the behavior of small sets of functions, and for

                   providing example code.

       

          (2) Building using autoconf  (Thanks to James Le Cuirot)

       

             Use the standard incantation, in the root directory (the

             directory with configure):

                ./configure    [build the Makefile]

                make   [builds the library and shared library versions of

                        all the progs]

                make install  [as root; this puts liblept.a into /usr/local/lib/

                               and 13 of the the progs into /usr/local/bin/ ]

                make [-j2] check  [runs the alltests_reg set of regression tests.

                                   This works even if you build in a different

                                   place from the distribution. The -j parameter

                                   should not exceed half the number of cores.

                                   If the test fails, just run with 'make check']

       

             Configure also supports building in a separate directory from the

             source.  Run "/(path-to)/leptonica-1.72/configure" and then "make"

             from the desired build directory.

       

             Configure has a number of useful options; run "configure --help" for

             details.  If you're not planning to modify the library, adding the

             "--disable-dependency-tracking" option will speed up the build.  By

             default, both static and shared versions of the library are built.  Add

             the "--disable-shared" or "--disable-static" option if one or the other

             isn't needed.  To skip building the programs, use "--disable-programs".

       

             By default, the library is built with debugging symbols.  If you do not

             want these, use "CFLAGS=-O2 ./configure" to eliminate symbols for

             subsequent compilations, or "make CFLAGS=-O2" to override the default

             for compilation only.  Another option is to use the 'install-strip'

             target (i.e., "make install-strip") to remove the debugging symbols

             when the library is installed.

       

             Finally, if you find that the installed programs are unable to link

             at runtime to the installed library, which is in /usr/local/lib,

             try to run configure in this way:

                 LDFLAGS="-Wl,-rpath -Wl,/usr/local/lib" ./configure

             which causes the compiler to pass those options through to the linker.

       

             For the debian distribution, out of all the programs in the prog

             directory, we only build a small subset of general purpose

             utility programs.  This subset is the same set of programs that

             'make install' puts into /usr/local/bin.  It has no dependency on

             the image files that are bundled in the prog directory for testing

      and when I type make check :

      root@clanton:/media/realroot/leptonica-1.72# make check

      Making check in src

      make[1]: Entering directory `/media/realroot/leptonica-1.72/src'

      make[1]: Nothing to be done for `check'.

      make[1]: Leaving directory `/media/realroot/leptonica-1.72/src'

      Making check in prog

      make[1]: Entering directory `/media/realroot/leptonica-1.72/prog'

      make  alphaops_reg alphaxform_reg bilateral2_reg binarize_reg blackwhite_reg blend3_reg blend4_reg colorcontent_reg coloring_reg colorize_reg colormask_reg colorquant_reg colorspace_reg compare_reg convolve_reg dewarp_reg dna_reg dwamorph1_reg enhance_reg findcorners_reg findpattern_reg fpix1_reg fpix2_reg genfonts_reg graymorph2_reg hardlight_reg insert_reg ioformats_reg jpegio_reg kernel_reg label_reg maze_reg multitype_reg nearline_reg newspaper_reg overlap_reg paint_reg paintmask_reg pdfseg_reg pixa2_reg pixserial_reg pngio_reg pnmio_reg projection_reg psio_reg psioseg_reg pta_reg rankbin_reg rankhisto_reg rasteropip_reg rotate1_reg rotate2_reg rotateorth_reg scale_reg seedspread_reg selio_reg shear1_reg shear2_reg skew_reg splitcomp_reg subpixel_reg texturefill_reg threshnorm_reg translate_reg warper_reg writetext_reg xformbox_reg

      make[2]: Entering directory `/media/realroot/leptonica-1.72/prog'

      make[2]: `alphaops_reg' is up to date.

      make[2]: `alphaxform_reg' is up to date.

      make[2]: `bilateral2_reg' is up to date.

      make[2]: `binarize_reg' is up to date.

      make[2]: `blackwhite_reg' is up to date.

      make[2]: `blend3_reg' is up to date.

      make[2]: `blend4_reg' is up to date.

      make[2]: `colorcontent_reg' is up to date.

      make[2]: `coloring_reg' is up to date.

      make[2]: `colorize_reg' is up to date.

      make[2]: `colormask_reg' is up to date.

      make[2]: `colorquant_reg' is up to date.

      make[2]: `colorspace_reg' is up to date.

      make[2]: `compare_reg' is up to date.

      make[2]: `convolve_reg' is up to date.

      make[2]: `dewarp_reg' is up to date.

      make[2]: `dna_reg' is up to date.

      make[2]: `dwamorph1_reg' is up to date.

      make[2]: `enhance_reg' is up to date.

      make[2]: `findcorners_reg' is up to date.

      make[2]: `findpattern_reg' is up to date.

      make[2]: `fpix1_reg' is up to date.

      make[2]: `fpix2_reg' is up to date.

      make[2]: `genfonts_reg' is up to date.

      make[2]: `graymorph2_reg' is up to date.

      make[2]: `hardlight_reg' is up to date.

      make[2]: `insert_reg' is up to date.

      make[2]: `ioformats_reg' is up to date.

      make[2]: `jpegio_reg' is up to date.

      make[2]: `kernel_reg' is up to date.

      make[2]: `label_reg' is up to date.

      make[2]: `maze_reg' is up to date.

      make[2]: `multitype_reg' is up to date.

      make[2]: `nearline_reg' is up to date.

      make[2]: `newspaper_reg' is up to date.

      make[2]: `overlap_reg' is up to date.

      make[2]: `paint_reg' is up to date.

      make[2]: `paintmask_reg' is up to date.

      make[2]: `pdfseg_reg' is up to date.

      make[2]: `pixa2_reg' is up to date.

      make[2]: `pixserial_reg' is up to date.

      make[2]: `pngio_reg' is up to date.

      make[2]: `pnmio_reg' is up to date.

      make[2]: `projection_reg' is up to date.

      make[2]: `psio_reg' is up to date.

      make[2]: `psioseg_reg' is up to date.

      make[2]: `pta_reg' is up to date.

      make[2]: `rankbin_reg' is up to date.

      make[2]: `rankhisto_reg' is up to date.

      make[2]: `rasteropip_reg' is up to date.

      make[2]: `rotate1_reg' is up to date.

      make[2]: `rotate2_reg' is up to date.

      make[2]: `rotateorth_reg' is up to date.

      make[2]: `scale_reg' is up to date.

      make[2]: `seedspread_reg' is up to date.

      make[2]: `selio_reg' is up to date.

      make[2]: `shear1_reg' is up to date.

      make[2]: `shear2_reg' is up to date.

      make[2]: `skew_reg' is up to date.

      make[2]: `splitcomp_reg' is up to date.

      make[2]: `subpixel_reg' is up to date.

      make[2]: `texturefill_reg' is up to date.

      make[2]: `threshnorm_reg' is up to date.

      make[2]: `translate_reg' is up to date.

      make[2]: `warper_reg' is up to date.

      make[2]: `writetext_reg' is up to date.

      make[2]: `xformbox_reg' is up to date.

      make[2]: Leaving directory `/media/realroot/leptonica-1.72/prog'

      make  check-TESTS

      make[2]: Entering directory `/media/realroot/leptonica-1.72/prog'

      make[3]: Entering directory `/media/realroot/leptonica-1.72/prog'

      FAIL: alphaops_reg

      FAIL: alphaxform_reg

      FAIL: bilateral2_reg

      FAIL: binarize_reg

      FAIL: blackwhite_reg

      FAIL: blend3_reg

      FAIL: blend4_reg

      FAIL: colorcontent_reg

      FAIL: coloring_reg

      FAIL: colorize_reg

      SKIP: colormask_reg

      FAIL: colorquant_reg

      SKIP: colorspace_reg

      FAIL: compare_reg

      FAIL: convolve_reg

      FAIL: dewarp_reg

      SKIP: dna_reg

      FAIL: dwamorph1_reg

      SKIP: enhance_reg

      FAIL: findcorners_reg

      FAIL: findpattern_reg

      SKIP: fpix1_reg

      FAIL: fpix2_reg

      FAIL: genfonts_reg

      FAIL: graymorph2_reg

      FAIL: hardlight_reg

      FAIL: insert_reg

      PASS: ioformats_reg

      PASS: jpegio_reg

      SKIP: kernel_reg

      FAIL: label_reg

      FAIL: maze_reg

      FAIL: multitype_reg

      SKIP: nearline_reg

      FAIL: newspaper_reg

      FAIL: overlap_reg

      FAIL: paint_reg

      FAIL: paintmask_reg

      FAIL: pdfseg_reg

      FAIL: pixa2_reg

      FAIL: pixserial_reg

      FAIL: pngio_reg

      FAIL: pnmio_reg

      SKIP: projection_reg

      FAIL: psio_reg

      FAIL: psioseg_reg

      FAIL: pta_reg

      SKIP: rankbin_reg

      SKIP: rankhisto_reg

      FAIL: rasteropip_reg

      FAIL: rotate1_reg

      FAIL: rotate2_reg

      FAIL: rotateorth_reg

      FAIL: scale_reg

      FAIL: seedspread_reg

      FAIL: selio_reg

      FAIL: shear1_reg

      FAIL: shear2_reg

      FAIL: skew_reg

      FAIL: splitcomp_reg

      FAIL: subpixel_reg

      FAIL: texturefill_reg

      FAIL: threshnorm_reg

      FAIL: translate_reg

      FAIL: warper_reg

      FAIL: writetext_reg

      FAIL: xformbox_reg

      =======================

      55 of 57 tests failed

      (10 tests were not run)

      See prog/test-suite.log

      =======================

      make[3]: *** [test-suite.log] Error 1

      make[3]: Leaving directory `/media/realroot/leptonica-1.72/prog'

      make[2]: *** [check-TESTS] Error 2

      make[2]: Leaving directory `/media/realroot/leptonica-1.72/prog'

      make[1]: *** [check-am] Error 2

      make[1]: Leaving directory `/media/realroot/leptonica-1.72/prog'

      make: *** [check-recursive] Error 1

        • 3. Re: can't load library 'liblept.so.4'
          Heshamnouby

          AlexT_Intel

          plz help me any package , tha leptonica nd tesseract needed ?

          • 4. Re: can't load library 'liblept.so.4'
            Heshamnouby

            joe_intel

            Do u know how can i sopve this problem?

            • 5. Re: can't load library 'liblept.so.4'
              Intel_Peter

              Hello Heshamnouby,

               

              I can see that you installed gcc, g++ and make, but did you make sure to also install the package buildessential? This package is very important for the Galileo, packages may not install correctly if it is not present.

               

              Also, I can see in Installing application, that you tried to install tesseract before leptonica. If that's true then the error message would make sense since leptonica is a dependency for tesseract. And as I found in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664175 that error should be corrected by updating leptonica.

               

              I'm a little lost on what may be causing this issue, could you explain step by step  what you've done so far?

               

              Peter.

              • 6. Re: can't load library 'liblept.so.4'
                Heshamnouby

                thank u for replying Intel_Peter

                 

                1- I installed alexts rep

                2- installed by it g++ , gcc , git , build essential

                 

                3- installed leptonica the last version

                4- installed then tesseract
                5- when I run tesseract  , cant load liblept.so.4

                 

                leptonica  configure

                root@clanton:/media/realroot/leptonica-1.72# ./configure
                checking build system type... i586-pc-linux-gnu
                checking host system type... i586-pc-linux-gnu
                checking how to print strings... printf
                checking for gcc... gcc
                checking whether the C compiler works... yes
                checking for C compiler default output file name... a.out
                checking for suffix of executables...
                checking whether we are cross compiling... no
                checking for suffix of object files... o
                checking whether we are using the GNU C compiler... yes
                checking whether gcc accepts -g... yes
                checking for gcc option to accept ISO C89... none needed
                checking for a sed that does not truncate output... /bin/sed
                checking for grep that handles long lines and -e... /bin/grep
                checking for egrep... /bin/grep -E
                checking for fgrep... /bin/grep -F
                checking for ld used by gcc... /usr/i586-poky-linux-uclibc/bin/ld
                checking if the linker (/usr/i586-poky-linux-uclibc/bin/ld) is GNU ld... yes
                checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
                checking the name lister (/usr/bin/nm -B) interface... BSD nm
                checking whether ln -s works... no, using cp -p
                checking the maximum length of command line arguments... 32768
                checking whether the shell understands some XSI constructs... yes
                checking whether the shell understands "+="... yes
                checking how to convert i586-pc-linux-gnu file names to i586-pc-linux-gnu format... func_convert_file_noop
                checking how to convert i586-pc-linux-gnu file names to toolchain format... func_convert_file_noop
                checking for /usr/i586-poky-linux-uclibc/bin/ld option to reload object files... -r
                checking for objdump... objdump
                checking how to recognize dependent libraries... pass_all
                checking for dlltool... no
                checking how to associate runtime and link libraries... printf %s\n
                checking for ar... ar
                checking for archiver @FILE support... @
                checking for strip... strip
                checking for ranlib... ranlib
                checking for gawk... no
                checking for mawk... no
                checking for nawk... no
                checking for awk... awk
                checking command to parse /usr/bin/nm -B output from gcc object... ok
                checking for sysroot... no
                checking for mt... no
                checking if : is a manifest tool... no
                checking how to run the C preprocessor... gcc -E
                checking for ANSI C header files... yes
                checking for sys/types.h... yes
                checking for sys/stat.h... yes
                checking for stdlib.h... yes
                checking for string.h... yes
                checking for memory.h... yes
                checking for strings.h... yes
                checking for inttypes.h... yes
                checking for stdint.h... yes
                checking for unistd.h... yes
                checking for dlfcn.h... yes
                checking for objdir... .libs
                checking if gcc supports -fno-rtti -fno-exceptions... no
                checking for gcc option to produce PIC... -fPIC -DPIC
                checking if gcc PIC flag -fPIC -DPIC works... yes
                checking if gcc static flag -static works... no
                checking if gcc supports -c -o file.o... yes
                checking if gcc supports -c -o file.o... (cached) yes
                checking whether the gcc linker (/usr/i586-poky-linux-uclibc/bin/ld) supports shared libraries... yes
                checking whether -lc should be explicitly linked in... no
                checking dynamic linker characteristics... GNU/Linux ld.so
                checking how to hardcode library paths into programs... immediate
                checking whether stripping libraries is possible... yes
                checking if libtool supports shared libraries... yes
                checking whether to build shared libraries... yes
                checking whether to build static libraries... yes
                checking for a BSD-compatible install... config/install-sh -c
                checking whether build environment is sane... yes
                checking for a thread-safe mkdir -p... config/install-sh -c -d
                checking whether make sets $(MAKE)... yes
                checking for style of include used by make... GNU
                checking dependency style of gcc... gcc3
                checking for gawk... (cached) awk
                checking for gcc... (cached) gcc
                checking whether we are using the GNU C compiler... (cached) yes
                checking whether gcc accepts -g... (cached) yes
                checking for gcc option to accept ISO C89... (cached) none needed
                checking how to run the C preprocessor... gcc -E
                checking whether ln -s works... no, using cp -p
                checking whether make sets $(MAKE)... (cached) yes
                checking for cos in -lm... yes
                checking for deflate in -lz... no
                checking for png_read_png in -lpng... no
                checking for jpeg_read_scanlines in -ljpeg... no
                checking for DGifOpenFileHandle in -lgif... no
                checking for TIFFOpen in -ltiff... no
                checking for WebPGetInfo in -lwebp... no
                checking for opj_create_decompress in -lopenjp2... no
                checking whether make supports nested variables... yes
                checking for size_t... yes
                checking whether byte ordering is bigendian... no
                checking whether compiler supports -Wl,--as-needed... yes
                checking for fmemopen... yes
                configure: creating ./config.status
                config.status: creating Makefile
                config.status: creating src/endianness.h
                config.status: creating src/Makefile
                config.status: creating prog/Makefile
                config.status: creating lept.pc
                config.status: creating config_auto.h
                config.status: config_auto.h is unchanged
                config.status: executing libtool commands
                config.status: executing depfiles commands

                 

                tesseract configure::::::::::::

                root@clanton:/media/realroot# cd tesseract-ocr
                root@clanton:/media/realroot/tesseract-ocr# ./configure
                checking build system type... i586-pc-linux-gnu
                checking host system type... i586-pc-linux-gnu
                checking --enable-graphics argument... yes
                checking --enable-embedded argument... no
                checking --enable-visibility argument... no
                checking --enable-multiple-libraries argument... no
                checking whether to use tessdata-prefix... yes
                checking whether to enable debugging... no
                checking for cl.exe... no
                checking for g++... g++
                checking whether the C++ compiler works... yes
                checking for C++ compiler default output file name... a.out
                checking for suffix of executables...
                checking whether we are cross compiling... no
                checking for suffix of object files... o
                checking whether we are using the GNU C++ compiler... yes
                checking whether g++ accepts -g... yes
                checking how to print strings... printf
                checking for gcc... gcc
                checking whether we are using the GNU C compiler... yes
                checking whether gcc accepts -g... yes
                checking for gcc option to accept ISO C89... none needed
                checking for a sed that does not truncate output... /bin/sed
                checking for grep that handles long lines and -e... /bin/grep
                checking for egrep... /bin/grep -E
                checking for fgrep... /bin/grep -F
                checking for ld used by gcc... /usr/i586-poky-linux-uclibc/bin/ld
                checking if the linker (/usr/i586-poky-linux-uclibc/bin/ld) is GNU ld... yes
                checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
                checking the name lister (/usr/bin/nm -B) interface... BSD nm
                checking whether ln -s works... no, using cp -pR
                checking the maximum length of command line arguments... 32768
                checking whether the shell understands some XSI constructs... yes
                checking whether the shell understands "+="... yes
                checking how to convert i586-pc-linux-gnu file names to i586-pc-linux-gnu format... func_convert_file_noop
                checking how to convert i586-pc-linux-gnu file names to toolchain format... func_convert_file_noop
                checking for /usr/i586-poky-linux-uclibc/bin/ld option to reload object files... -r
                checking for objdump... objdump
                checking how to recognize dependent libraries... pass_all
                checking for dlltool... no
                checking how to associate runtime and link libraries... printf %s\n
                checking for ar... ar
                checking for archiver @FILE support... @
                checking for strip... strip
                checking for ranlib... ranlib
                checking for gawk... no
                checking for mawk... no
                checking for nawk... no
                checking for awk... awk
                checking command to parse /usr/bin/nm -B output from gcc object... ok
                checking for sysroot... no
                checking for mt... no
                checking if : is a manifest tool... no
                checking how to run the C preprocessor... gcc -E
                checking for ANSI C header files... yes
                checking for sys/types.h... yes
                checking for sys/stat.h... yes
                checking for stdlib.h... yes
                checking for string.h... yes
                checking for memory.h... yes
                checking for strings.h... yes
                checking for inttypes.h... yes
                checking for stdint.h... yes
                checking for unistd.h... yes
                checking for dlfcn.h... yes
                checking for objdir... .libs
                checking if gcc supports -fno-rtti -fno-exceptions... no
                checking for gcc option to produce PIC... -fPIC -DPIC
                checking if gcc PIC flag -fPIC -DPIC works... yes
                checking if gcc static flag -static works... no
                checking if gcc supports -c -o file.o... yes
                checking if gcc supports -c -o file.o... (cached) yes
                checking whether the gcc linker (/usr/i586-poky-linux-uclibc/bin/ld) supports shared libraries... yes
                checking whether -lc should be explicitly linked in... no
                checking dynamic linker characteristics... GNU/Linux ld.so
                checking how to hardcode library paths into programs... immediate
                checking whether stripping libraries is possible... yes
                checking if libtool supports shared libraries... yes
                checking whether to build shared libraries... yes
                checking whether to build static libraries... yes
                checking how to run the C++ preprocessor... g++ -E
                checking for ld used by g++... /usr/i586-poky-linux-uclibc/bin/ld
                checking if the linker (/usr/i586-poky-linux-uclibc/bin/ld) is GNU ld... yes
                checking whether the g++ linker (/usr/i586-poky-linux-uclibc/bin/ld) supports shared libraries... yes
                checking for g++ option to produce PIC... -fPIC -DPIC
                checking if g++ PIC flag -fPIC -DPIC works... yes
                checking if g++ static flag -static works... no
                checking if g++ supports -c -o file.o... yes
                checking if g++ supports -c -o file.o... (cached) yes
                checking whether the g++ linker (/usr/i586-poky-linux-uclibc/bin/ld) supports shared libraries... yes
                checking dynamic linker characteristics... (cached) GNU/Linux ld.so
                checking how to hardcode library paths into programs... immediate
                checking for a BSD-compatible install... config/install-sh -c
                checking whether build environment is sane... yes
                checking for a thread-safe mkdir -p... config/install-sh -c -d
                checking whether make sets $(MAKE)... yes
                checking for style of include used by make... GNU
                checking dependency style of gcc... gcc3
                checking dependency style of g++... gcc3
                checking whether to enable maintainer-specific portions of Makefiles... no
                checking whether byte ordering is bigendian... no
                checking for library containing sem_init... -lpthread
                checking for ANSI C header files... (cached) yes
                checking whether time.h and sys/time.h may both be included... yes
                checking for sys/wait.h that is POSIX.1 compatible... yes
                checking sys/ipc.h usability... yes
                checking sys/ipc.h presence... yes
                checking for sys/ipc.h... yes
                checking sys/shm.h usability... yes
                checking sys/shm.h presence... yes
                checking for sys/shm.h... yes
                checking limits.h usability... yes
                checking limits.h presence... yes
                checking for limits.h... yes
                checking malloc.h usability... yes
                checking malloc.h presence... yes
                checking for malloc.h... yes
                checking allheaders.h usability... no
                checking allheaders.h presence... no
                checking for allheaders.h... no
                checking for stdbool.h that conforms to C99... yes
                checking for _Bool... no
                checking whether #! works in shell scripts... yes
                checking for special C compiler options needed for large files... no
                checking for _FILE_OFFSET_BITS value needed for large files... 64
                checking for wchar_t... yes
                checking for long long int... yes
                checking for mbstate_t... yes
                checking for size_t... yes
                checking for stdlib.h... (cached) yes
                checking for unistd.h... (cached) yes
                checking for sys/param.h... yes
                checking for getpagesize... yes
                checking for working mmap... yes
                checking for pid_t... yes
                checking vfork.h usability... no
                checking vfork.h presence... no
                checking for vfork.h... no
                checking for fork... yes
                checking for vfork... yes
                checking for working fork... yes
                checking for working vfork... (cached) yes
                checking for strerror... yes
                checking for vsnprintf... yes
                checking for gethostname... yes
                checking for strchr... yes
                checking for memcpy... yes
                checking for acos... yes
                checking for asin... yes
                checking for leptonica... yes
                checking for pixCreate in -llept... yes
                checking that generated files are newer than configure... done
                configure: creating ./config.status
                config.status: creating Makefile
                config.status: creating tesseract.pc
                config.status: creating api/Makefile
                config.status: creating ccmain/Makefile
                config.status: creating ccstruct/Makefile
                config.status: creating ccutil/Makefile
                config.status: creating classify/Makefile
                config.status: creating cube/Makefile
                config.status: creating cutil/Makefile
                config.status: creating dict/Makefile
                config.status: creating image/Makefile
                config.status: creating neural_networks/runtime/Makefile
                config.status: creating textord/Makefile
                config.status: creating viewer/Makefile
                config.status: creating wordrec/Makefile
                config.status: creating training/Makefile
                config.status: creating tessdata/Makefile
                config.status: creating tessdata/configs/Makefile
                config.status: creating tessdata/tessconfigs/Makefile
                config.status: creating testing/Makefile
                config.status: creating java/Makefile
                config.status: creating java/com/Makefile
                config.status: creating java/com/google/Makefile
                config.status: creating java/com/google/scrollview/Makefile
                config.status: creating java/com/google/scrollview/events/Makefile
                config.status: creating java/com/google/scrollview/ui/Makefile
                config.status: creating doc/Makefile
                config.status: creating config_auto.h
                config.status: config_auto.h is unchanged
                config.status: executing libtool commands
                config.status: executing depfiles commands

                Configuration is done.
                You can now build tesseract by running:

                 

                 

                and this thread can solve the problem ? Ubuntu Forums  that has same prob

                • 7. Re: can't load library 'liblept.so.4'
                  CMata_Intel

                  Heshamnouby ; which image are you using on your Galileo?

                  The uclibc or the eglibc? Intel® Galileo Board Download | Intel® Developer Zone

                   

                  Regards;

                  CMata

                  • 8. Re: can't load library 'liblept.so.4'
                    Heshamnouby

                    I am using uClibc microSD card image (48MB, .bz2) :/

                     

                    thank u

                    • 9. Re: can't load library 'liblept.so.4'
                      Intel_Peter

                      Heshamnouby, when are you receiving this error? I mean does it appear when you enter a command such as "tesseract myscan.png out -l eng"? Or on the Tesseract package installation?

                       

                      Peter.

                      • 10. Re: can't load library 'liblept.so.4'
                        Heshamnouby

                        Intel_Peter

                        Mmm.... When i run the commond tesseract 2.png out

                        It tell me cant load library

                        And i saw thread solve this , leptonica when type make check

                        68 faililed

                        Cause it wants

                        Jpeg-dev

                        Png

                        Jbig

                        Tif

                        Gonbult

                        • 11. Re: can't load library 'liblept.so.4'
                          Heshamnouby

                          Thank u Intel_Peter

                          I installed eglibic image and the app works well

                          Thank u (:

                          • 12. Re: can't load library 'liblept.so.4'
                            Intel_Peter

                            Hi Heshamnouby,

                             

                            I'm very glad to hear that. If you have any other doubts, don't hesitate to come back to the community. We'll do our best to help you.

                             

                            Peter.

                            • 13. Re: can't load library 'liblept.so.4'
                              aadil095

                              I need to install the tesseract and I am getting exactly the same errors as this when i am using the Alext image. I do not want to use the uclibc or eglibc image as i have to use another application(espeak) alogside in my project that are not working with those images.

                               

                              So far i have followed all the above mentioned steps followed by Heshamnouby

                              CMata_Intel

                              please tell me how can i fix this error:

                               

                              /usr/local/bin/tesseract: can't load library 'cannot load liblept.so.4'

                               

                               

                               

                               

                              Side note: if i use the debian image will tesseract and espeak work in those?