JeromeDane/HearthStats.net-Uploader — pull request #135 by gtch (2014-02-16 11:55:30+00:00)
Title: Fixed 'library not loaded' error on OS X

I've fixed the problem that @trigun0x2 reported in #133 about a "Library not loaded" and "image not found" error on startup.

The problem was that Tesseract (libtesseract302.dylib) relies on the Leptonica library (liblept169.dylib), but even though I provided both of them the Tesseract library was trying to load Leptonica from /usr/local/lib instead of the copy I provided. It turns out that the path to Leptonica is set at compile time and it expects an absolute path.

So I've taken the simple solution and recompiled Leptonica and Tesseract to store their libraries in /private/tmp/HearthStats.net-Uploader. OS X will now look for those libraries in that folder instead of the default /usr/local/lib/

I also took the opportunity to recompile Leptonica without unnecessary libraries for other file formats like png, tiff, etc. The command I used to configure the Leptonica was:
```
./configure --prefix=/private/tmp/HearthStats.net-Uploader --exec-prefix=/private/tmp/HearthStats.net-Uploader --libdir=/private/tmp/HearthStats.net-Uploader --enable-static=no --without-zlib --without-libpng --without-jpeg --without-giflib --without-libtiff
```

I also upgraded Leptonica to 1.69 from 1.68 because Tesseract 3.0.2 expects 1.69.