LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2014, 01:06 PM   #1
blackcherry
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Question 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
 
Old 08-12-2014, 04:37 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,232

Rep: Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522Reputation: 2522
to the compile line add the location
Code:
gcc source.cpp -o NameOfProgram -L/the/location/ofTheFile/Lib.so
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc problem: standard libs not found Tzolkin Programming 6 04-02-2008 11:13 AM
standard root pass on gentoo fresh install? JohnntB Linux - Newbie 2 10-28-2007 04:15 AM
Non Standard LUN: How to pass info to installer? mlewis Linux - Enterprise 1 02-23-2007 03:29 AM
New with libs... need help installing. helloenmity Linux - Newbie 3 05-15-2004 06:41 AM
installing libs mikezieg8 Linux - Software 2 02-26-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration