Reply
Thread Tools
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#1
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
 
Posts: 292 | Thanked: 131 times | Joined on Dec 2009
#2
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#3
Originally Posted by soeiro View Post
Can you build the package on your regular desktop, outside scratchbox?
No.
The same problem.
Maybe it is a permission issue
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#4
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.
 
Posts: 2 | Thanked: 1 time | Joined on Aug 2010
#5
Originally Posted by zolakt View Post
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.
 
Posts: 303 | Thanked: 175 times | Joined on Oct 2009 @ London UK
#6
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..
 
Posts: 11 | Thanked: 1 time | Joined on Nov 2007
#7
A Tesseract 3.0 package would be great...
 
Reply


 
Forum Jump


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