Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Problem while installing a linux-library

Reply
Thread Tools

Problem while installing a linux-library

 
 
mxmarklein@gmail.com
Guest
Posts: n/a
 
      05-30-2006
Hello all,

I am doing my first steps in linux-c++ programming and have an
installation problem.

My problem:
The project I am trying to compile. needs an external library and i
don`t know how to manage the makefile finds the .h file of the library
- this file lies not in the standard directory, because I only admin
rights for those directories. I want to compile my project with
automake.

What I have done is to insert the LD_LIBRARY_PATH to the .bashrc, do I
need to set another systemvariable in the .bashrc for the
include-files?
or do I need to manipulate the automake./configure.h- files.

Thanks in advance,
Mx

 
Reply With Quote
 
 
 
 
phlip
Guest
Posts: n/a
 
      05-30-2006
mxmarklein wrote:

> What I have done is to insert the LD_LIBRARY_PATH to the .bashrc, do I
> need to set another systemvariable in the .bashrc for the
> include-files?
> or do I need to manipulate the automake./configure.h- files.


All the following is off-topic, and you must follow it up on a G++
newsgroup or mailing list. This newsgroup is only qualified to discuss
the C++ language itself, not all its implementations.

The problem with Makefiles is they are usually so complex you can't just
learn from them. You might set environmental variables INCLUDE
and LIB, and you might specify their targets on a command line: g++
-I/my/includes -L/my/libs

And LD_LIBRARY_PATH sets the program executable dynamic link library path.
g++ can't use it.

--
Phlip
 
Reply With Quote
 
 
 
 
Ulrich Hobelmann
Guest
Posts: n/a
 
      05-30-2006
wrote:
> Hello all,
>
> I am doing my first steps in linux-c++ programming and have an
> installation problem.


As such it's not really on-topic here...

> My problem:
> The project I am trying to compile. needs an external library and i
> don`t know how to manage the makefile finds the .h file of the library
> - this file lies not in the standard directory, because I only admin
> rights for those directories. I want to compile my project with
> automake.


I don't know about automake, but the C compiler (or C++) usually takes
an argument -I/path/to/your/headers to look for header files. Read the
fine manual for more information.

> What I have done is to insert the LD_LIBRARY_PATH to the .bashrc, do I
> need to set another systemvariable in the .bashrc for the
> include-files?


The lib-path is only for the system to find libraries (.so) when you
start an executable program. AFAIK it's not important for compilation.
There you want the -L and -l flags of your compiler (if it's gcc at
least).

> or do I need to manipulate the automake./configure.h- files.
>
> Thanks in advance,
> Mx
>

 
Reply With Quote
 
Noah Roberts
Guest
Posts: n/a
 
      05-30-2006

wrote:
> Hello all,
>
> I am doing my first steps in linux-c++ programming and have an
> installation problem.


Try comp.os.linux.devel

 
Reply With Quote
 
mxmarklein@gmail.com
Guest
Posts: n/a
 
      05-30-2006
Sorry

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while installing rdoc-2.4.1 under Ruby 1.9.1 Ruby Student Ruby 3 03-17-2009 06:55 PM
Problem while installing RMagick on Mac OS X Laurent Ruby 4 11-26-2006 10:25 PM
symlink errors while installing java . . . onetitfemme Java 6 11-02-2005 08:59 PM
Error while installing Devices Updates 4.0 Filip Heens ASP .Net 0 02-19-2004 12:31 PM
Problem while installing through PPM. SK Perl Misc 4 11-29-2003 12:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57