Thanks for the suggestion! Noob question, what is a "dynamic" tesseract?

On Friday, April 10, 2020 at 3:21:55 AM UTC-7, JB Data31 wrote:
>
> Another way:
> 1/ Build a dynamic tesseract
> 2/ Move bin and .so.
> 3/ Use LD_LIBRARY_PATH on the target host to set *.so* paths and execute 
> bin.
>
> @*JB*Δ <http://jbigdata.fr/jbigdata/index.html>
>
>
>
> Le ven. 10 avr. 2020 à 05:31, 'Michael Chen' via tesseract-ocr <
> [email protected] <javascript:>> a écrit :
>
>> Hi everyone,
>>
>> I want to use tesseract in my company's file structure. I plan to compile 
>> tesseract with it's dependencies (leptonica) and copy over the binary and 
>> shared object files (.so) onto a CentOS linux box in a custom folder 
>> structure. Our app will be deployed to these linux boxes along with the 
>> tesseract binary and .so files.
>>
>> I am looking to run something like this so that the binary knows how to 
>> find the shared library files on my on premise linux box. I need to specify 
>> an rpath because I want to use the binary in a different environment and I 
>> plan to copy over the `.so` files (as mentioned earlier).
>>
>> ./configure \
>>   --prefix=$tesseract_dir \
>>   --with-extra-libraries=$tesseract_dir/local/lib/ \
>>   --with-rpath='\$$'ORIGIN/../lib \
>>
>>
>> I took a look at the source code and it seems `with-rpath` is an invalid 
>> param and doesn't do anything. (
>> https://github.com/tesseract-ocr/tesseract/blob/master/configure.ac)
>>
>> Is this possible? I basically want readelf to output the exact 
>> following: '\$$'ORIGIN/../lib
>> Instead I have this:
>>
>> [image: Screen Shot 2020-04-08 at 7.21.59 PM.png]
>>
>> This is because I had set $tesseract_dir to "/tmp/tesseract".
>>
>> Is what I'm trying to achieve possible? If so, what should I do? Any tips 
>> and guidance is appreciated!
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "tesseract-ocr" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tesseract-ocr/6dfce719-1d6e-4bd3-bea4-7e1c499bd1b6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tesseract-ocr/6dfce719-1d6e-4bd3-bea4-7e1c499bd1b6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/6e52e120-9e25-4c91-a063-df25167f3126%40googlegroups.com.

Reply via email to