14 Replies Latest reply on Feb 28, 2016 2:31 AM by aadil095

    Installing application

    Heshamnouby

      Can i install simple program " simple tool " to galileo v2 ?

      I use windows

      " the program files folder which mean ? So i can install ? "

        • 1. Re: Installing application
          Intel_Peter

          Hello Heshamnouby,

           

          What do you mean by: "Can i install simple program simple tool to galileo v2"? Could you please explain a little further what you are trying to do?

          I did a quick search on Google, however I did not find any package called simple tool. Which program are you trying to install?

          By the way, if you want to install packages into your Galileo, you could use AlexT's repo, in that link you will find the instructions on how to set the repo and how to download packages.

           

          Peter.

          1 of 1 people found this helpful
          • 2. Re: Installing application
            Heshamnouby

            Intel_Peter

            Thank u peter for ur answer

            I want to install ocr- tesseract.exe for google

            I am ysing windows not linux.!

            Can i install it ?

            Or i can install it on lap and copy its filea ?

            • 3. Re: Installing application
              Intel_Peter

              Oh, sorry did you mean that you are using the Galileo's Windows image? If you do, I'd suggest you to post your questions in Community – Windows app development to get a more accurate response.

              If you are using the Galileo's Yocto image, you could use the package found in https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz

              But you will need leptonica since it is a dependency of the tesseract package. You can find leptonica in http://www.leptonica.com/download.html

              In order to install them both on your Galileo:

               

              1. Once they are on your Galileo's system, type the following to decompress both packages:

                   1.1 tar xvf tesseract-ocr-3.02.02.tar.gz

                   1.2 tar xvf leptonica-1.72.tar.gz

              2. Go to the leptonica directory with cd leptonica-1.72 and type ./configure

                   2.1 Once the process finishes type make

                   2.2 The make process will take a while to finish, but when it finishes type make install

              3. Go to the tesseract folder with cd ../tesseract-ocr and type ./configure

                   3.1 Follow the same procedure as before and type make

                   3.2 When it is done type make install

               

              You should now be able to use tesseract.

              Peter.

              1 of 1 people found this helpful
              • 4. Re: Installing application
                Heshamnouby

                thanx Mr Peter for ur help !
                I will install Linux instead of windows image !
                but must I install toolchain (gcc) to install tesseract or I can install it on Linux image that 210 mb only ?
                thank u

                • 5. Re: Installing application
                  Intel_Peter

                  Yes, you can install gcc in you Galileo's Linux, you can find it on AlexT's repo. If you don't know how to download packages from the repo you can learn in Galileo Package Repo Configuration Instructions

                   

                  Peter.

                  1 of 1 people found this helpful
                  • 6. Re: Installing application
                    Heshamnouby

                    Intel_Peter

                    No no i mean to install tesseract and lepotinica , will i need to install gss ?

                    • 7. Re: Installing application
                      Intel_Peter

                      Oh sorry, yes, you need to install gcc, make and buildessential in order to install them; but they all can be found on AlexT's repo. If you need info on how to enable Wi-Fi on your Galileo so you can download those packages, I'd suggest you to check: Intel Galileo Meets Wireless - Malinov Family Web Presence

                       

                      Peter.

                      • 8. Re: Installing application
                        Heshamnouby

                        that's when I try to install tesseract !!

                         

                        root@clanton:/media/realroot/tess# ./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++... no
                        checking whether the C++ compiler works... no
                        configure: error: in `/media/realroot/tess':
                        configure: error: C++ compiler cannot create executables
                        See `config.log' for more details
                        root@clanton:/media/realroot/tess# ./config.log
                        ./config.log: line 1: This: command not found
                        ./config.log: line 2: running: command not found
                        ./config.log: line 4: It: command not found
                        ./config.log: line 5: generated: command not found
                        ./config.log: line 7: $: command not found
                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        ./config.log: line 19: /usr/bin/uname: No such file or directory
                        /bin/uname: invalid option -- X
                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        ./config.log: line 22: /bin/arch: No such file or directory
                        ./config.log: line 23: /usr/bin/arch: No such file or directory
                        ./config.log: line 24: /usr/convex/getsysinfo: No such file or directory
                        ./config.log: line 25: /usr/bin/hostinfo: No such file or directory
                        ./config.log: line 26: /bin/machine: No such file or directory
                        ./config.log: line 27: /usr/bin/oslevel: No such file or directory
                        ./config.log: line 28: /bin/universe: No such file or directory
                        ./config.log: line 30: PATH:: command not found
                        ./config.log: line 31: PATH:: command not found
                        ./config.log: line 32: PATH:: command not found
                        ./config.log: line 33: PATH:: command not found
                        ./config.log: line 34: PATH:: command not found
                        ./config.log: line 35: PATH:: command not found
                        ./config.log: line 42: configure:2707:: command not found
                        ./config.log: line 43: configure:2721:: command not found
                        ./config.log: line 44: configure:2741:: command not found
                        ./config.log: line 45: configure:2754:: command not found
                        ./config.log: line 46: configure:2823:: command not found
                        ./config.log: line 47: configure:2832:: command not found
                        ./config.log: line 48: configure:2849:: command not found
                        ./config.log: line 49: configure:2858:: command not found
                        ./config.log: line 50: configure:2876:: command not found
                        ./config.log: line 51: configure:2885:: command not found
                        ./config.log: line 52: configure:2897:: command not found
                        ./config.log: line 53: configure:2906:: command not found
                        ./config.log: line 54: configure:2918:: command not found
                        ./config.log: line 55: configure:2927:: command not found
                        ./config.log: line 56: configure:2939:: command not found
                        ./config.log: line 57: configure:2948:: command not found
                        ./config.log: line 58: configure:3062:: command not found
                        ./config.log: line 59: configure:3092:: command not found
                        ./config.log: line 60: configure:3062:: command not found
                        ./config.log: line 61: configure:3092:: command not found
                        ./config.log: line 62: configure:3116:: command not found
                        ./config.log: line 63: 5: Bad file descriptor
                        ./config.log: line 64: ./configure:: No such file or directory
                        ./config.log: line 65: configure:3136:: command not found
                        ./config.log: line 66: 5: Bad file descriptor
                        ./config.log: line 67: ./configure:: No such file or directory
                        ./config.log: line 68: configure:3136:: command not found
                        ./config.log: line 69: 5: Bad file descriptor
                        ./config.log: line 70: ./configure:: No such file or directory
                        ./config.log: line 71: configure:3136:: command not found
                        ./config.log: line 72: 5: Bad file descriptor
                        ./config.log: line 73: ./configure:: No such file or directory
                        ./config.log: line 74: configure:3136:: command not found
                        ./config.log: line 75: configure:3156:: command not found
                        ./config.log: line 76: 5: Bad file descriptor
                        ./config.log: line 77: ./configure:: No such file or directory
                        ./config.log: line 78: configure:3182:: command not found
                        ./config.log: line 79: configure:3220:: command not found
                        ./config.log: line 80: configure:: command not found
                        ./config.log: line 81: syntax error near unexpected token `|'
                        ./config.log: line 81: `| /* confdefs.h */'
                        root@clanton:/media/realroot/tess#

                         

                        and that when I am trying to install lepotinica :

                        .


                        root@clanton:/media/realroot/lep# ./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... no
                        configure: error: in `/media/realroot/lep':
                        configure: error: C compiler cannot create executables
                        See `config.log' for more details
                        root@clanton:/media/realroot/lep# ./config.log
                        ./config.log: line 1: This: command not found
                        ./config.log: line 2: running: command not found
                        ./config.log: line 4: It: command not found
                        ./config.log: line 5: generated: command not found
                        ./config.log: line 7: $: command not found
                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        ./config.log: line 19: /usr/bin/uname: No such file or directory
                        /bin/uname: invalid option -- X
                        BusyBox v1.20.2 (2014-10-16 16:03:10 PDT) multi-call binary.

                        Usage: uname [-amnrspv]

                        ./config.log: line 22: /bin/arch: No such file or directory
                        ./config.log: line 23: /usr/bin/arch: No such file or directory
                        ./config.log: line 24: /usr/convex/getsysinfo: No such file or directory
                        ./config.log: line 25: /usr/bin/hostinfo: No such file or directory
                        ./config.log: line 26: /bin/machine: No such file or directory
                        ./config.log: line 27: /usr/bin/oslevel: No such file or directory
                        ./config.log: line 28: /bin/universe: No such file or directory
                        ./config.log: line 30: PATH:: command not found
                        ./config.log: line 31: PATH:: command not found
                        ./config.log: line 32: PATH:: command not found
                        ./config.log: line 33: PATH:: command not found
                        ./config.log: line 34: PATH:: command not found
                        ./config.log: line 35: PATH:: command not found
                        ./config.log: line 42: configure:2330:: command not found
                        ./config.log: line 43: configure:2344:: command not found
                        ./config.log: line 44: configure:2364:: command not found
                        ./config.log: line 45: configure:2377:: command not found
                        ./config.log: line 46: configure:2418:: command not found
                        ./config.log: line 47: configure:2445:: command not found
                        ./config.log: line 48: configure:2514:: command not found
                        ./config.log: line 49: configure:2530:: command not found
                        ./config.log: line 50: configure:2541:: command not found
                        ./config.log: line 51: configure:2770:: command not found
                        ./config.log: line 52: 5: Bad file descriptor
                        ./config.log: line 53: syntax error near unexpected token `GCC'
                        ./config.log: line 53: `gcc (GCC) 4.7.2'
                        root@clanton:/media/realroot/lep#

                        • 9. Re: Installing application
                          Heshamnouby

                          I configured tesseract and lepotinica and no make file found

                           

                          root@clanton:/media/realroot/tess# ./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 sup

                          • 10. Re: Installing application
                            Heshamnouby

                            Intel_Peter wrote:

                             

                            Oh sorry, yes, you need to install gcc, make and buildessential in order to install them; but they all can be found on AlexT's repo. If you need info on how to enable Wi-Fi on your Galileo so you can download those packages, I'd suggest you to check: Intel Galileo Meets Wireless - Malinov Family Web Presence

                             

                            Peter.

                             

                             

                            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

                             

                            thank u

                            • 11. Re: Installing application
                              Heshamnouby

                              Intel_Peter wrote:

                               

                              Oh sorry, yes, you need to install gcc, make and buildessential in order to install them; but they all can be found on AlexT's repo. If you need info on how to enable Wi-Fi on your Galileo so you can download those packages, I'd suggest you to check: Intel Galileo Meets Wireless - Malinov Family Web Presence

                               

                              Peter.

                              and see this thread about installation the 2 packages

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

                              • 12. Re: Installing application
                                Intel_Peter

                                Hello Heshamnouby,

                                 

                                I replied to you in can't load library 'liblept.so.4', please reply to me there.

                                 

                                Peter.

                                • 13. Re: Installing application
                                  Heshamnouby

                                  when I add commond line at arduino ide the tesseract didn't work

                                    system("cd /media/realroot/ && tesseract eurotext.tif output");

                                  • 14. Re: Installing application
                                    aadil095

                                    I have followed the steps given in these and all have worked without any error so far

                                    But now when i type "tesseract" on the putty shell i get the following error:

                                    Error opening data file /usr/local/share/tessdata/eng.traineddata

                                    Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.

                                    Failed loading language eng
                                    Tesseract couldn't load any languages!

                                     

                                    Please tell me the further steps for this version of tesseract