lsw9021 / MASS

Apache License 2.0
584 stars 109 forks source link

Building Error #21

Closed moonsh closed 4 years ago

moonsh commented 5 years ago

Hi, I think I installed successfully the boost 1.66 and Dart 6.3 and then I tried the Compile and Run part. After executing the make -j8, I got the below error. Does it seem that it's related to boost? Thank you.

[ 50%] Built target mss [ 58%] Linking CXX executable render [ 83%] Built target pymss CMakeFiles/render.dir/Window.cpp.o: In function toNumPyArray(Eigen::Matrix<double, -1, 1, 0, -1, 1> const&)': Window.cpp:(.text+0x15d3): undefined reference toboost::python::numpy::dtype boost::python::numpy::detail::get_float_dtype<32>()' Window.cpp:(.text+0x15e1): undefined reference to boost::python::numpy::empty(boost::python::tuple const&, boost::python::numpy::dtype const&)' CMakeFiles/render.dir/Window.cpp.o: In functionMASS::Window::GetActivationFromNN(Eigen::Matrix<double, -1, 1, 0, -1, 1> const&)': Window.cpp:(.text+0x17ba): undefined reference to boost::python::api::getattr(boost::python::api::object const&, char const*)' Window.cpp:(.text+0x1839): undefined reference toboost::python::numpy::from_object(boost::python::api::object const&, int, int, boost::python::numpy::ndarray::bitflag)' Window.cpp:(.text+0x1b01): undefined reference to boost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o: In functionMASS::Window::GetActionFromNN()': Window.cpp:(.text+0x1c6c): undefined reference to boost::python::api::getattr(boost::python::api::object const&, char const*)' Window.cpp:(.text+0x1ce3): undefined reference toboost::python::numpy::dtype boost::python::numpy::detail::get_float_dtype<32>()' Window.cpp:(.text+0x1cf3): undefined reference to boost::python::numpy::empty(boost::python::tuple const&, boost::python::numpy::dtype const&)' Window.cpp:(.text+0x1e34): undefined reference toboost::python::numpy::from_object(boost::python::api::object const&, int, int, boost::python::numpy::ndarray::bitflag)' Window.cpp:(.text+0x2031): undefined reference to boost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o: In functionMASS::Window::Window(MASS::Environment)': Window.cpp:(.text+0x2952): undefined reference to `boost::python::detail::str_base::str_base(char const)' Window.cpp:(.text+0x2962): undefined reference to boost::python::import(boost::python::str)' Window.cpp:(.text+0x29d4): undefined reference toboost::python::api::getattr(boost::python::api::object const&, char const)' Window.cpp:(.text+0x2a2e): undefined reference to `boost::python::detail::str_base::str_base(char const)' Window.cpp:(.text+0x2a39): undefined reference to boost::python::import(boost::python::str)' Window.cpp:(.text+0x2b8c): undefined reference toboost::python::detail::str_base::str_base(char const)' Window.cpp:(.text+0x2be1): undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const)' Window.cpp:(.text+0x2c1b): undefined reference to boost::python::api::getattr(boost::python::api::object const&, char const*)' Window.cpp:(.text+0x2cf1): undefined reference toboost::python::exec(char const, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x2d58): undefined reference to `boost::python::exec(char const, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x2dbf): undefined reference to boost::python::exec(char const*, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x2e26): undefined reference toboost::python::exec(char const, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x2e8d): undefined reference to `boost::python::exec(char const, boost::python::api::object, boost::python::api::object)' CMakeFiles/render.dir/Window.cpp.o:Window.cpp:(.text+0x2ef4): more undefined references to boost::python::exec(char const*, boost::python::api::object, boost::python::api::object)' follow CMakeFiles/render.dir/Window.cpp.o: In functionMASS::Window::Window(MASS::Environment)': Window.cpp:(.text+0x2fe9): undefined reference to boost::python::throw_error_already_set()' Window.cpp:(.text+0x2ff9): undefined reference toboost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o: In function `MASS::Window::Window(MASS::Environment, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)': Window.cpp:(.text+0x340d): undefined reference to boost::python::detail::str_base::str_base(char const*)' Window.cpp:(.text+0x3489): undefined reference toboost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x355e): undefined reference to boost::python::detail::str_base::str_base(char const*)' Window.cpp:(.text+0x35f5): undefined reference toboost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x366d): undefined reference to boost::python::eval(char const*, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x36f1): undefined reference toboost::python::api::getattr(boost::python::api::object const&, char const)' CMakeFiles/render.dir/Window.cpp.o: In function `MASS::Window::Window(MASS::Environment, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)': Window.cpp:(.text+0x3a30): undefined reference to boost::python::detail::str_base::str_base(char const*)' Window.cpp:(.text+0x3aac): undefined reference toboost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x3b81): undefined reference to boost::python::detail::str_base::str_base(char const*)' Window.cpp:(.text+0x3c19): undefined reference toboost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x3d00): undefined reference to boost::python::detail::str_base::str_base(char const*)' Window.cpp:(.text+0x3d97): undefined reference toboost::python::exec(boost::python::str, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x3e0f): undefined reference to boost::python::eval(char const*, boost::python::api::object, boost::python::api::object)' Window.cpp:(.text+0x3e93): undefined reference toboost::python::api::getattr(boost::python::api::object const&, char const*)' CMakeFiles/render.dir/Window.cpp.o: In function boost::python::tuple boost::python::make_tuple<int>(int const&)': Window.cpp:(.text._ZN5boost6python10make_tupleIiEENS0_5tupleERKT_[_ZN5boost6python10make_tupleIiEENS0_5tupleERKT_]+0x76): undefined reference toboost::python::throw_error_already_set()' Window.cpp:(.text._ZN5boost6python10make_tupleIiEENS05tupleERKT[_ZN5boost6python10make_tupleIiEENS05tupleERKT]+0x89): undefined reference to boost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o: In functionboost::python::tuple boost::python::make_tuple(long const&)': Window.cpp:(.text._ZN5boost6python10make_tupleIlEENS05tupleERKT[_ZN5boost6python10make_tupleIlEENS05tupleERKT]+0x76): undefined reference to boost::python::throw_error_already_set()' Window.cpp:(.text._ZN5boost6python10make_tupleIlEENS0_5tupleERKT_[_ZN5boost6python10make_tupleIlEENS0_5tupleERKT_]+0x89): undefined reference toboost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o: In function `boost::python::detail::returnable::type boost::python::call<boost::python::api::object, std::cxx11::basic_string<char, std::char_traits, std::allocator > >(_object, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, boost::type)': Window.cpp:(.text._ZN5boost6python4callINS0_3api6objectENSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_6detail10returnableIT_E4typeEP7_objectRKT0_PNS_4typeISC_EE[_ZN5boost6python4callINS0_3api6objectENSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_6detail10returnableIT_E4typeEP7_objectRKT0_PNS_4typeISC_EE]+0x61): undefined reference to boost::python::throw_error_already_set()' CMakeFiles/render.dir/Window.cpp.o:Window.cpp:(.text._ZN5boost6python4callINS0_3api6objectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_6detail10returnableIT_E4typeEP7_objectRKT0_PNS_4typeISC_EE[_ZN5boost6python4callINS0_3api6objectENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_6detail10returnableIT_E4typeEP7_objectRKT0_PNS_4typeISC_EE]+0x71): more undefined references toboost::python::throw_error_already_set()' follow CMakeFiles/render.dir/main.cpp.o: In function main': main.cpp:(.text.startup+0x89): undefined reference toboost::python::numpy::initialize(bool)' collect2: error: ld returned 1 exit status render/CMakeFiles/render.dir/build.make:126: recipe for target 'render/render' failed make[2]: [render/render] Error 1 CMakeFiles/Makefile2:145: recipe for target 'render/CMakeFiles/render.dir/all' failed make[1]: [render/CMakeFiles/render.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

moonsh commented 4 years ago

I found that the reason was my boost wasn't properly installed. I will close this issue.