I was building based on the guide at - [1]
https://code.google.com/p/tesseract-ocr/wiki/TesseractSvnInstallation with no OpenCL
Update: as I was able to fix this. I'll detail my whole process in case other OSX users need it... I was able to get it to build on OSX 10.9.4 from SVN and it is working with some warnings (detailed below). The only difference I can think of is I started from scratch by removing everything (ports and formulas) I had installed using either MacPorts or Homebrew, as well as MacPorts and Homebrew themselves. (This was probably a terribly inexperienced mistake having them both installed at the same time.)
Everything built well and without errors this time (Note: I did have warnings, but no errors.).
I have tested Tesseract with TIFF (single and multiple pages) and it is working well. It gives me the following error "Warning in pixReadMemTiff: tiff page 25 not found" in which the page # is always the last page of the file, but it doesn't seem to be a problem.
PNG files do not seem to work (it outputs two identically named files: one that can't be opened and one that only has the first page)
PDF files provide the following error and I can't remember if Leptonica is supposed to be able to input PDF files or not.
Error in fopenReadStream: file not found
Error in pixRead: image file not found: %PDF-1.2
Image file %PDF-1.2 cannot be read!
I can work on these if I find time, but since TIFF is working they aren't a priority.
So here is the process that worked for me.
1. Open Terminal
2. Install, update, and verify Homebrew by entering the following one at a time:
brew update
brew doctor
3. Make sure brew doctor comes back clean
4. Install the tesseract dependencies listed at [1] above again by entering one at a time (Note: I did not need to install aclocal or autoheader from Homebrew as they aren't formulas.).
brew install autoconf
brew install automake
brew install libtool
brew install leptonica --with-libtiff
5 .Run the following command (still in Terminal entering one at a time) (again based on the instructions in [1]):
6. Assuming you don't get any failures or errors, you can then test using the following commands in Terminal (the italics should be change to your docs specific filenames and the filetype you want to output) (Note: Tesseract defaults its output to .TXT files).
tesseract inputfilename.tiff outputfilename outputfiletype
For example: "tesseract mytiff.tiff mysearchablepdf pdf" will make "mytiff.tiff" a searchable pdf with the name "mysearchablepdf.pdf" and save it into whatever location you run the tesseract command from.
Hopefully this helps someone else and it may be useful to post it under a different (more searchable post title).
Best,
Cory