installing mafFilter from the source

151 views
Skip to first unread message

amin saffari

unread,
Jan 9, 2017, 8:02:40 AM1/9/17
to MafFilter
Dear mafFilter expert!

Given the content of INSTALL.TXT, no specific version of boost-iostreams library is needed.
cmake found boost version 1.46.1 on my system but then I have got these error:

error: use of deleted function ‘boost::iostreams::detail::concept_adapter<boost::iostreams::basic_file_sink<char> >::concept_adapter(const boost::iostreams::detail::concept_adapter<boost::iostreams::basic_file_sink<char> >&)’
         new (address()) T(t);
error: use of deleted function ‘boost::iostreams::basic_file_sink<char>::basic_file_sink(const boost::iostreams::basic_file_sink<char>&)

So I built boost version 1.63.0 separately and built mafFilter like:

cmake -DCMAKE_INSTALL_PREFIX=./bin -DCMAKE_LIBRARY_PATH=$bpp_dir/lib -DCMAKE_INCLUDE_PATH=$bpp_dir/include -DCMAKE_INCLUDE_DIRS=$boost_dir/boost/include -DCMAKE_LIBRARY_PATH=$boost_dir/lib -DCMAKE_INCLUDE_DIRS=$bz2_dir/include -DCMAKE_LIBRARY_PATH=$bz2_dir/lib -DBUILD_TESTING=FALSE ./

Unfortunately I still can't build mafFilter as I can't overwrite Boost libraries path!!

I am sure this is mostly how-to-work-with-cmake related but I am posting it here with some hopes to be helpful for others as well!

Cheers,
Amin

Julien Yann Dutheil

unread,
Jan 9, 2017, 8:42:39 AM1/9/17
to MafFilter
Dear Amin,

This is strange, because MafFilter normally works with at least version 1.34. Maybe it is an installation issue. To see your own version of boost, you could try to modify this line in CMakeLists.txt:

FIND_PACKAGE( Boost 1.34.0 COMPONENTS iostreams )
to
FIND_PACKAGE( Boost 1.60.0 COMPONENTS iostreams )

then remove the CMakeCache.txt file and rerun CMake. Let me know if that helps.

J.

amin saffari

unread,
Jan 28, 2017, 8:48:09 AM1/28/17
to MafFilter
Dear Julien,

Thanks for your fast hint and sorry for my late reply!
your hint accompanied with -DBoost_NO_BOOST_CMAKE=TRUE solved my problem!

For future record here is the cmake which configure MafFilter perfectly.

cmake -DCMAKE_INSTALL_PREFIX=./bin -DCMAKE_LIBRARY_PATH=$bpp_dir/lib -DCMAKE_INCLUDE_PATH=$bpp_dir/include -DBoost_NO_BOOST_CMAKE=TRUE -DBoost_NO_SYSTEM_PATHS=TRUE -DBOOST_ROOT:PATHNAME=$boost_dir -DBoost_LIBRARY_DIRSFILEPATH=$boost_dir/lib -DBUILD_TESTING=FALSE ./

Cheers,
Amin
Reply all
Reply to author
Forward
0 new messages