Changes between Version 6 and Version 7 of user-compile
- Timestamp:
- Oct 6, 2006 2:36:22 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
user-compile
v6 v7 8 8 9 9 Assume that you have [wiki:user-download dowloaded the package] {{{Pkg}}} 10 in the directory {{{Coin-Pkg}}} and that you have [wiki:user-configure run the configure script] with appropriate options successfully in the directory {{{Coin-Pkg }}}.10 in the directory {{{Coin-Pkg}}} and that you have [wiki:user-configure run the configure script] with appropriate options successfully in the directory {{{Coin-Pkg/build}}}. 11 11 12 You can now compile the source code, including all subprojects, by typing in {{{Coin-Pkg }}}12 You can now compile the source code, including all subprojects, by typing in {{{Coin-Pkg/build}}} 13 13 {{{ 14 14 make … … 20 20 == Testing the Compilation == 21 21 22 Most of the COIN projects provide a unit test (in the {{{test}}} subdirectory), which can be used to verify if the compiled code works correctly. If you want to test the compilation for the main project only (e.g., {{{Clp}}}) you type in {{{Coin-Clp }}}22 Most of the COIN projects provide a unit test (in the {{{test}}} subdirectory), which can be used to verify if the compiled code works correctly. If you want to test the compilation for the main project only (e.g., {{{Clp}}}) you type in {{{Coin-Clp/build}}} 23 23 24 24 {{{ … … 45 45 }}} 46 46 47 Again, you don't need to type {{{make}}} first. This will install the executable files in {{{$prefix/bin}}}, the libraries in {{{$prefix/lib}}}, and the header files in {{{$prefix/include}}}. Here, {{{$prefix}}} stands for the installation directory, which by default is the directory in which you ran the {{{configure}}} script . The installation directory is otherwise the argument you specified with the {{{--prefix}}} argument for {{{configure}}}.47 Again, you don't need to type {{{make}}} first. This will install the executable files in {{{$prefix/bin}}}, the libraries in {{{$prefix/lib}}}, and the header files in {{{$prefix/include}}}. Here, {{{$prefix}}} stands for the installation directory, which by default is the directory in which you ran the {{{configure}}} script (which on this page we assumed to be {{{Coin-Pkg/build}}}). The installation directory is otherwise the argument you specified with the {{{--prefix}}} argument for {{{configure}}}. 48 48 49 49 In the {{{lib}}} directory you will also see '''*_addlibs.txt''' files (such as {{{clp_addlibs.txt}}}). This contains a string with additionally required libraries (such as {{{-lz}}} if you are using the zlib GNU package), adapted to your system and configuration settings. If you link with an installed COIN library, you should also specify the context of the corresponding {{{*_addlibs.txt}}} file in the link command.