LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to pass on non-standard libs to others without installing (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-pass-on-non-standard-libs-to-others-without-installing-4175514479/)

blackcherry 08-12-2014 12:06 PM

How to pass on non-standard libs to others without installing
 
Hey @ all,

I have a little problem. At the moment I work with the libraries leptonica and tesseract.

Now I want to pass on these libs with my programm (c++) to other users (they shouldnt istall these libs).

But how I have to do this?
At the first time I thought I have to link these libraries statically with :
"ln -s 'g++$(CXXFLAGS) -print-file-name=ltesseract' ltesseract.a"
It creates an file. But was it the right command?
After this, have I to create a new binary? Or what should I do?

Thanks :)

John VV 08-12-2014 03:37 PM

to the compile line add the location
Code:

gcc source.cpp -o NameOfProgram -L/the/location/ofTheFile/Lib.so


All times are GMT -5. The time now is 12:15 AM.