![]() |
Prev | Next |
git clone https://github.com/bradbell/mat2cpp.git mat2cpp.git
cd mat2cpp.git
mkdir build
cd build
../configure --prefix=prefix_dir BOOST_DIR=boost_dir
make
where
prefix
is the prefix for this installation and
boost_dir
prefix for the existing boost
install
(check that the directory
boost_dir/include/boost
exists).
cd mat
octave mat2cpp_ok
cd ..
The mat2cpp_ok
program should have responded
that all the octave tests passed
(you can also run the program in Matlab).
build/cpp/mat2cpp_ok
The mat2cpp_ok
program should have responded
that all the tests passed.
(you can also run the program in Matlab).
mat2cpp
library and include file in the standard locations
with the following commands
cd build
make install
cd ..
cd build
g++ ../cpp/getstarted.cpp -o getstarted \
-Iboost_dir/include \
-Iprefix_dir/include \
-Lprefix_dir/lib \
-lmat2cpp -llapack
./getstarted