maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to install Tesseract? (https://talk.maemo.org/showthread.php?t=51272)

zolakt 2010-04-28 13:40

How to install Tesseract?
 
I'm trying to install Googles Tesseract OCR engine.
I have downloaded the source.
Extracted tar-gz with tar -xvzf

But when I run ./configure, I get this error:
checking for cl.exe... no
checking for g++... no
checking for c++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See 'config.log' for more details.

Does anyone know how to get this to compile?
It's obviously something wrong with g++, but it is installed and working normally.

Same error occurs on the device and in scratchbox

soeiro 2010-04-28 13:55

Re: How to install Tesseract?
 
Can you build the package on your regular desktop, outside scratchbox?

zolakt 2010-04-28 14:00

Re: How to install Tesseract?
 
Quote:

Originally Posted by soeiro (Post 631559)
Can you build the package on your regular desktop, outside scratchbox?

No.
The same problem.
Maybe it is a permission issue

zolakt 2010-04-29 13:09

Re: How to install Tesseract?
 
I have tired to install it with apt from the extras rep.
It installs fine, but I'm having trouble running it.
So I was hoping someone could help me out.

I get the following error when I run tesseract command:
Error: Unable to open /home/opt/maemo/usr/share/tesseract-ocr/tessdata/eng.inttemp

I have searched, there are 2 instances of the file:
1. in /home/opt/maemo/usr/share/tesseract-ocr/tessdata/eng.inttemp, which is a symbolic link that point to itself.
Actually it points to /opt/maemo/usr/...
But since there is a symbolic link between /opt -> /home/opt, it points to itself.

2. the second one is in /media/n900/proc/self/root/proc/4705/cwd/tessdata (2)/eng.inttemp, but I doubt that this is the right one.

I can just copy the file from source over the link, but that is dirty.

inode 2010-08-29 13:09

Re: How to install Tesseract?
 
Quote:

Originally Posted by zolakt (Post 633149)
I have tired to install it with apt from the extras rep.
It installs fine, but I'm having trouble running it.
So I was hoping someone could help me out.

I get the following error when I run tesseract command:
Error: Unable to open /home/opt/maemo/usr/share/tesseract-ocr/tessdata/eng.inttemp

I have searched, there are 2 instances of the file:
1. in /home/opt/maemo/usr/share/tesseract-ocr/tessdata/eng.inttemp, which is a symbolic link that point to itself.
Actually it points to /opt/maemo/usr/...
But since there is a symbolic link between /opt -> /home/opt, it points to itself.

2. the second one is in /media/n900/proc/self/root/proc/4705/cwd/tessdata (2)/eng.inttemp, but I doubt that this is the right one.

I can just copy the file from source over the link, but that is dirty.

Hi,

i've found the missing files on the google code project at the link below :
http://code.google.com/p/tesseract-o...ar.gz&can=2&q=

Before you need to delete the symlink from the destination directory. Then, you just have to extract and copy files into the /opt/maemo/usr/share/tesseract-ocr/tessdata/ directory.

Don't forget to change the privilege to 444 for all files.

Hope it will help.

cpitchford 2010-08-29 18:51

Re: How to install Tesseract?
 
edit test.cpp and whack in:

Code:

#include <iostream>

int main() {
  std::cout << "This works" << std::endl;
  return 0;
}

Then run

HTML Code:

g++ -o test test.cpp && ./test
can't create output is something I used to see a lot on solaris.. usually because solaris had a program with the same name as the C compiler.. it did nothing other then display "the c compiler is not installed"

weeeelll that is helpful!

Make sure your g++ compiler can actually produce working binaries first..

chx 2010-11-09 23:49

Re: How to install Tesseract?
 
A Tesseract 3.0 package would be great...


All times are GMT. The time now is 08:58.

vBulletin® Version 3.8.8