![]() |
Prev | Next |
cppad_mixed
program can be compiled by any C++11 compliant compiler;
e.g., g++
.
ipopt
which in turn
is required by cppad_mixed
.
gsl-devel
.
pkg-config gsl --libs
see PKG_CONFIG_PATH
below.
suitesparse-devel
.
Note that installing suitesparse
will include the metis
package and neither of these packages have pkg-config
files.
It may be necessary for you to add the corresponding paths to your
dynamic library linking path shell variable.
git clone https://github.com/bradbell/cppad_mixed.git cppad_mixed.git
cd cppad_mixed.git
You can determine the
git_hash
and version number
corresponding to this checkout of the master branch using the commands:
git show-ref | grep 'refs/heads/master'
grep '^SET(cppad_mixed_version' CMakeLists.txt
You can checkout an old version corresponding to a specific
git_hash
,
and check its version number, using the commands:
git checkout -q git_hash
grep '^SET(cppad_mixed_version' CMakeLists.txt
install_package
scripts below can be used to install them.
If so, they should be executed in the order that they appear.
cppad_mixed.git
directory,
the command
bin/install_eigen.sh
can be used to install this package.
cppad_mixed.git
directory,
the command
bin/install_ipopt.sh
can be used to install this package.
cppad_mixed.git
directory,
the command
bin/install_cppad.sh
can be used to install this package.
pkg
equal to gsl
, eigen
, ipopt
and
cppad
, the following command should work:
pkg-config %pkg% --libs
(This command should work for gsl
before the special requirements
are installed.)
If this command fails, the corresponding directory is missing
from the PKG_CONFIG_PATH
environment variable.
If
prefix
is the prefix where pkg
was installed,
the command
find -L prefix -name pkg.pc 2> /dev/null
can be used to find the directory where %pkg%.pc
is located.
LD_LIBRARY_PATH
in order for
cppad_mixed
to work if you specify the directory using an
rpath
command when you build your executable.
cppad_mixed
unless the release_notes
say otherwise.
The steps below will need to be executed each time you install
a new version of cppad_mixed
:
cppad_mixed.git
directory:
The following command will configure cppad_mixed
:
bin/run_cmake.sh
cppad_mixed.git
directory:
The following commands are optional and will
build and run the examples and correctness tests:
cd build
make check
cppad_mixed.git
directory:
The following commands are optional and will
build and run the speed tests:
cd build
make speed
cppad_mixed.git
directory:
The following command will
install the cppad_mixed library and include files:
cd build
make install
cppad_mixed
.
cppad_mixed
.
These examples run when one executes the commands
cd build
make speed