Difference between revisions of "Libraries"

From HCL
Jump to: navigation, search
Line 1: Line 1:
 
== Installation from packages ==
 
== Installation from packages ==
 
* Install a development package <code>*-dev</code>, which includes header files and static libraries. Base packages will be installed automatically
 
* Install a development package <code>*-dev</code>, which includes header files and static libraries. Base packages will be installed automatically
* Headers and  
+
* Headers and libraries can be found in standard paths, which are searched by compilers by default
  
 
== Manual installation ==
 
== Manual installation ==

Revision as of 10:29, 19 January 2010

Installation from packages

  • Install a development package *-dev, which includes header files and static libraries. Base packages will be installed automatically
  • Headers and libraries can be found in standard paths, which are searched by compilers by default

Manual installation

  • Download a package or export/checkout a repository to $HOME/src/DIR
  • Configure with --prefix=$HOME
  • Update Linux environment for Autotools and C/C++
CPATH=$HOME/include:$CPATH
LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH