Changes between Version 2 and Version 3 of user-examples


Ignore:
Timestamp:
May 28, 2006 12:03:51 PM (14 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • user-examples

    v2 v3  
    33Again, this information only pertains to UNIX-like systems, where you use {{{configure}}} and {{{make}}}.  If you want to use the MS Developer Studio, please check [http://projects.coin-or.org/MSDevStudio here] for more information.
    44
    5 A number of COIN projects that generated libraries have an {{{examples}}} subdirectory.  After you run configure, you will find a simple {{{Makefile}}} in there, that  has been adapted to your system.  If you want to hook up your own code to this COIN library, it might be a good idea to start by looking at this Makefile.
     5Assume that you have dowloaded the package {{{Pkg}}}
     6in the directory {{{Coin-Pkg}}}. You have run {{{configure}}}, {{{make}}}, and {{{make install}}} from
     7the directory {{{Coin-Pkg}}}. Assume that you used {{{Coin-Pkg}}} as
     8the install directory (i.e. the default), obtaining a library
     9{{{Pkg.so}}} in {{{Coin-Pkg/lib}}} and include files in {{{Coin-Pkg/include}}}.
    610
    7 {{{Note:}}}  You should use only the libraries and header files that have been installed by {{{make install}}}, not from the source code directory from the COIN code.  We are using the GNU autotools to compile the code, and picking up libraries and headers from the source directories has a good chance of creating problems.  Similarly, you will have to do a {{{make install}} before you can compile the examples.
     11For most packages, the main directory contains an {{{examples}}}
     12subdirectory. Assuming that this is the case for the package {{{Pkg}}}, the directory {{{Coin-Pkg/examples}}}
     13contains a {{{Makefile}}} that  has been adapted to your system.
     14If you want to hook up your own code to this COIN library, it might be a good idea to start by looking at this Makefile.
    815
    9 In order to modify this Makefile to compile your own code, you usually only have to change the first part, which might look like this:
     16{{{Note:}}}  You should use only the libraries and header files that have been installed in {{{Coin-Pkg/lib}}} and {{{Coin-Pkg/include}}}
     17not those in any other directory.  We are using the GNU autotools to compile the code, and picking up libraries and headers from the source directories has a good chance of creating problems.
     18
     19In order to modify {{{examples/Makefile}}} to compile your own code, you usually only have to change the first part, which might look like this:
    1020
    1121{{{