mercredi 11 mars 2020

make: *** [all] Error 2 in BioPP / bpp-phyl

I have been trying to install BioPP /bpp-phyl from git hub link https://github.com/BioPP/bpp-phyl git cloned it git clone https://github.com/BioPP/bpp-phyl.git then used cmake for compiling cmake -DCMAKE_INSTALL_PREFIX=[where to install, for instance /usr/local or $HOME/.local] . and then i tried to use make. it shows me the following error:-

/home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp: In static member function ‘static bpp::TreeLikelihood* bpp::PhylogeneticsApplicationTools::optimizeParameters(bpp::TreeLikelihood*, const bpp::ParameterList&, std::map, std::__cxx11::basic_string >&, const string&, bool, bool, int)’: /home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:922:62: error: no matching function for call to ‘bpp::Parameter::setConstraint(bpp::Constraint*, bool)’ par.setConstraint(ic & (*par.getConstraint()), true);

/usr/local/include/Bpp/Numeric/Parameter.h:269:18: note: candidate expects 1 argument, 2 provided /home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:927:45: error: no matching function for call to ‘bpp::Parameter::setConstraint(bpp::IntervalConstraint*, bool)’ par.setConstraint(ic.clone(), true);

/usr/local/include/Bpp/Numeric/Parameter.h:269:18: note: candidate expects 1 argument, 2 provided /home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp: In static member function ‘static void bpp::PhylogeneticsApplicationTools::checkEstimatedParameters(const bpp::ParameterList&)’: /home/ceglab2/Downloads/dignn/bpp-phyl/src/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp:1388:56: error: cannot convert ‘const std::shared_ptr’ to ‘const bpp::Constraint*’ in initialization const Constraint* constraint = pl[i].getConstraint();

make[2]: *** [src/CMakeFiles/bpp-phyl-shared.dir/Bpp/Phyl/App/PhylogeneticsApplicationTools.cpp.o] Error 1 CMakeFiles/Makefile2:1111: recipe for target 'src/CMakeFiles/bpp-phyl-shared.dir/all' failed

make[1]: * [src/CMakeFiles/bpp-phyl-shared.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: * [all] Error 2

I dont know the cause of the error i have installed bpp-core git clone https://github.com/BioPP/bpp-core.git from https://github.com/BioPP/bpp-coregit hub also I have installed bpp-seq git clone https://github.com/BioPP/bpp-seq.git from https://github.com/BioPP/bpp-seq but unable to install bpp-seq please help. i am using cmake version 3.10.2

Aucun commentaire:

Enregistrer un commentaire