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 \
Is this possible? I basically want readelf to output the exact following: '\$$'ORIGIN/../lib
Instead I have this:

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!