Closed fmukwege closed 3 years ago
Hi @kefran88,
I have just compiled it without any problem, following the instructions of the readme. Did you run
wstool init
wstool merge ./faster/faster/install/faster.rosinstall
wstool update -j8
before compilation? Specifically, could you check that the snapstack_msgs
is at the commit specified here?
Let me know if this helps!
Hello @jtorde,
It solved my problem thank you for that, but another just raised. I think it comes from Gurobi, but i had installed it as required in my /opt/.
I drop the error message here.
CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::setThreads(int)':
solverGurobi.cpp:(.text+0x85b): undefined reference to GRBModel::set(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::setVerbose(int)':
solverGurobi.cpp:(.text+0x95b): undefined reference to GRBModel::set(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::SolverGurobi()':
solverGurobi.cpp:(.text+0x209f): undefined reference to GRBModel::set(GRB_StringAttr, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::setMaxConstraints()':
solverGurobi.cpp:(.text+0x2cb1): undefined reference to GRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' solverGurobi.cpp:(.text+0x2e2f): undefined reference to
GRBModel::addConstr(GRBTempConstr const&, std::cxx11::basic_string<char, std::char_traitsGRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' solverGurobi.cpp:(.text+0x3298): undefined reference to
GRBModel::addConstr(GRBTempConstr const&, std::cxx11::basic_string<char, std::char_traitsGRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' follow CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::createVars()':
solverGurobi.cpp:(.text+0x3bf8): undefined reference to `GRBModel::addVar(double, double, double, char, std::SolverGurobi::setConstraintsXf()': solverGurobi.cpp:(.text+0x42e9): undefined reference to
GRBModel::addConstr(GRBTempConstr const&, std::cxx11::basic_string<char, std::char_traitsGRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::setConstraintsX0()':
solverGurobi.cpp:(.text+0x490f): undefined reference to GRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' solverGurobi.cpp:(.text+0x4a01): undefined reference to
GRBModel::addConstr(GRBTempConstr const&, std::cxx11::basic_string<char, std::char_traitsGRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' follow CMakeFiles/faster_node.dir/src/solverGurobi.cpp.o: In function
SolverGurobi::setPolytopesConstraints()':
solverGurobi.cpp:(.text+0x671f): undefined reference to `GRBModel::addVar(double, double, double, char, std::GRBModel::addConstr(GRBTempConstr const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' solverGurobi.cpp:(.text+0x812f): undefined reference to
GRBModel::addGenConstrIndicator(GRBVar, int, GRBLinExpr const&, char, double, std::cxx11::basic_string<char, std::char_traitsGRBModel::addGenConstrIndicator(GRBVar, int, GRBLinExpr const&, char, double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)' solverGurobi.cpp:(.text+0x833d): undefined reference to
GRBModel::addGenConstrIndicator(GRBVar, int, GRBLinExpr const&, char, double, std::__cxx11::basic_string<char, std::char_traits
Frank
I just re-run the part in the readme and it compiled fine. I am closing the issue, thank you for your help !
Hello MIT-ACL team,
I've been trying to install FASTER and this issue occured :
I saw someone had this issue in issue #23 and thus I have cloned the lastest snapstack_msgs commit (1ecc836425f11acfa9c78f18dd22488b7783a852) but nothing changed
What could be the problem ?
Best regards,
Frank