--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
Based on your tips i submitted this script to make leptonica and tesseract:#!/bin/sh
#leptonica:
cd leptonica-1.69
./configure --prefix=$HOME/local/
make install#tesseract:
cd ../tesseract-3.01
LIBLEPT_HEADERSDIR=$HOME/local/include ./configure \
--prefix=$HOME/local/ --with-extra-libraries=$HOME/local/lib
make install
The result is ok for building leptonica, but the script fails with tesseract, reporting this:11:12:06: [www] configure: WARNING: you should use --build, --host, --target11:12:06: [www] configure: WARNING: invalid host type:11:12:06: [www] config.sub: missing argument11:12:06: [www] Try `config.sub --help' for more information.11:12:06: [www] configure: error: /bin/bash config/config.sub failed11:12:06: [www] ./prebuild.sh: 17: --prefix=/home/dotcloud/local/: not found11:12:06: [www] make: *** No rule to make target `install'. Stop.11:12:07: [www] checking build system type... -- Build failed: "chmod +x ./prebuild.sh ; ./prebuild.sh" failed with return code 211:12:08: [www] Build failed for service (www)11:12:08: --> Deployment of application (dotcloudtest) aborted due to 1 build error(s)
Hi,I'm trying to deploy a webapp that features OCR on uploaded images, but I have no root access to build tesseract3 and leptonica on hosting machine (ubuntu 10.04).How can I do that without sudo?thx
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com
To unsubscribe from this group, send email to
tesseract-oc...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en
Finally I got building tesseract, but honestly i don't know how ... I submitted many times the same code you posted, but only few days ago it worked.Here is the working Prebuild.sh:
#!/bin/sh#leptonica:cd leptonica-1.69./configure --prefix=$HOME/local/make install#tesseract:cd ../tesseract-3.01
cp -R tessdata $HOME/local/share./autogen.shLIBLEPT_HEADERSDIR=$HOME/local/include./configure --prefix=$HOME/local/ --with-extra-libraries=$HOME/local/libexport TESSDATA_PREFIX=$HOME/local/share/make installchmod +x $HOME/local/bin/tesseractAttached to this post you find the full building log.
You can see few warning/errors that seem not to stop the building process,
but that end up to affect tesseract execution because if I run this basic python code:wsgi.py:import subprocess
def application(environ, start_response):
status = '200 OK'
response_headers = [('Content-type', 'text/plain')]
start_response(status, response_headers)
args = ['/home/dotcloud/local/bin/tesseract', 'eurotext.tif','eurotext.txt']
p = subprocess.Popen(args, stdout = subprocess.PIPE, stdin = subprocess.PIPE, stderr = subprocess.STDOUT)
preprocessed, _ = p.communicate()
return [preprocessed]+[_]I got this:Error in findTiffCompression: function not present
Error in pixReadStreamTiff: function not present
Error in pixReadStream: tiff: no pix returned
Error in pixRead: pix not read
Tesseract Open Source OCR Engine v3.01 with Leptonica
Unsupported image type.
I'm sure what I miss are those libs (http://code.google.com/p/tesseract-ocr/wiki/ReadMe):sudo apt-get install autoconf automake libtool
sudo apt-get install libpng12-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libtiff4-dev
sudo apt-get install zlib1g-devbut, again, I don't how to install them without sudo.
Thank you allfabio
--