Tuesday, December 14, 2010

Building YAYI under ubuntu maverick

Yayi , according to the author, is a framework focussing on mathematical morphology. To build Yayi, boost is needed. For some reasons, I was not able to build Yayi with the boost binaries avalaible from the ubuntu repository, so prior building yayi, building boost is requiered.
Building Boost 1.44
  • Download boost
  • Decompress the archive in you local directory, my boost source directory is in 
/home/jeanpat/Applications/boost_1_44_0
  • Create a directory to build Boost, for example :
/home/jeanpat/Applications/Boost_1_44_0_Build
  • cd into the source dir and from a terminal:
./bootstrap.sh
  • then
./bjam --prefix=/home/jeanpat/Applications/Boost_1_44_0_Build --build-type=complete --layout=versioned --ignore-config -sBZIP2_INCLUDE=/usr/include -sBZIP2_LIBPATH=/lib install

Building Yayi
  • Download the source
  • Extract the source directory according to the instructions
  • then from the source directory, in a terminal:
BOOST_ROOT_DIRECTORY=/home/jeanpat/Applications/Boost_1_44_0_Build

export BOOST_ROOT_DIRECTORY
cd Yayi
cd build
cmake -DBOOST_INSTALLATION_DIR=$BOOST_ROOT_DIRECTORY -DBOOST_VERSION_MINOR=44 CMakeLists.txt
make

No comments: