{"action":"created","issue":{"url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/2","repository_url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter","labels_url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/2/comments","events_url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/2/events","html_url":"https://github.com/pertusa/MXNetToCaffeConverter/issues/2","id":187578585,"number":2,"title":"Boost Error","user":{"login":"RishabGargeya","id":8361488,"avatar_url":"https://avatars.githubusercontent.com/u/8361488?v=3","gravatar_id":"","url":"https://api.github.com/users/RishabGargeya","html_url":"https://github.com/RishabGargeya","followers_url":"https://api.github.com/users/RishabGargeya/followers","following_url":"https://api.github.com/users/RishabGargeya/following{/other_user}","gists_url":"https://api.github.com/users/RishabGargeya/gists{/gist_id}","starred_url":"https://api.github.com/users/RishabGargeya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishabGargeya/subscriptions","organizations_url":"https://api.github.com/users/RishabGargeya/orgs","repos_url":"https://api.github.com/users/RishabGargeya/repos","events_url":"https://api.github.com/users/RishabGargeya/events{/privacy}","received_events_url":"https://api.github.com/users/RishabGargeya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-06T18:20:19Z","updated_at":"2016-11-07T15:08:00Z","closed_at":null,"body":"Hi,\r\n\r\nI tried installing your converter, but I keep on running into the following error:\r\n\r\n```\r\nLinking: mxnet_to_caffe\r\ng++ objs/mxnet_to_caffe.o objs/mxnet_my_c_predict_api.o  -lm -lboost_serialization -lboost_filesystem -fopenmp -Wl,--whole-archive /home/rg203/work/caffe/build/lib/libcaffe.a -Wl,--no-whole-archive -lprotobuf -lglog -lgflags -llmdb -lleveldb /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so -lboost_system -lboost_thread  -lopenblas  -L/usr/local/cuda/lib64 -lcudart -lcublas -lcurand -lcudnn  /home/rg203/work/mxnet/lib/libmxnet.so `pkg-config --libs opencv` -o \"mxnet_to_caffe\"\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::api::object::object()':\r\n/usr/include/boost/python/object_core.hpp:504: undefined reference to `_Py_NoneStruct'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::api::const_attribute_policies::get(boost::python::api::object const&, char const*)':\r\n/usr/include/boost/python/object_attributes.hpp:74: undefined reference to `boost::python::api::getattr(boost::python::api::object const&, char const*)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::str::str(char const*)':\r\n/usr/include/boost/python/str.hpp:150: undefined reference to `boost::python::detail::str_base::str_base(char const*)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `_object* boost::python::expect_non_null<_object>(_object*)':\r\n/usr/include/boost/python/errors.hpp:45: undefined reference to `boost::python::throw_error_already_set()'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::error_already_set::error_already_set(boost::python::error_already_set const&)':\r\n/usr/include/boost/python/errors.hpp:17: undefined reference to `vtable for boost::python::error_already_set'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::shared_ptr<caffe::Layer<float> > caffe::GetPythonLayer<float>(caffe::LayerParameter const&)':\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:244: undefined reference to `Py_Initialize'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:246: undefined reference to `boost::python::import(boost::python::str)'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:250: undefined reference to `PyErr_Print'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:249: undefined reference to `boost::python::error_already_set::~error_already_set()'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::shared_ptr<caffe::Layer<double> > caffe::GetPythonLayer<double>(caffe::LayerParameter const&)':\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:244: undefined reference to `Py_Initialize'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:246: undefined reference to `boost::python::import(boost::python::str)'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:250: undefined reference to `PyErr_Print'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:249: undefined reference to `boost::python::error_already_set::~error_already_set()'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::extract_rvalue<boost::shared_ptr<caffe::PythonLayer<float> > >::operator()() const':\r\n/usr/include/boost/python/extract.hpp:186: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::extract_rvalue<boost::shared_ptr<caffe::PythonLayer<double> > >::operator()() const':\r\n/usr/include/boost/python/extract.hpp:186: undefined reference to `boost::python::converter::rvalue_from_python_stage2(_object*, boost::python::converter::rvalue_from_python_stage1_data&, boost::python::converter::registration const&)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::detail::returnable<boost::python::api::object>::type boost::python::call<boost::python::api::object, caffe::LayerParameter>(_object*, caffe::LayerParameter const&, boost::type<boost::python::api::object>*)':\r\n/usr/include/boost/python/call.hpp:66: undefined reference to `PyEval_CallFunction'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::extract_rvalue<boost::shared_ptr<caffe::PythonLayer<float> > >::extract_rvalue(_object*)':\r\n/usr/include/boost/python/extract.hpp:166: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::extract_rvalue<boost::shared_ptr<caffe::PythonLayer<double> > >::extract_rvalue(_object*)':\r\n/usr/include/boost/python/extract.hpp:166: undefined reference to `boost::python::converter::rvalue_from_python_stage1(_object*, boost::python::converter::registration const&)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::registration const& boost::python::converter::detail::registry_lookup2<boost::shared_ptr<caffe::PythonLayer<float> > const volatile>(boost::shared_ptr<caffe::PythonLayer<float> > const volatile& (*)())':\r\n/usr/include/boost/python/converter/registered.hpp:87: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::registration const& boost::python::converter::detail::registry_lookup2<boost::shared_ptr<caffe::PythonLayer<double> > const volatile>(boost::shared_ptr<caffe::PythonLayer<double> > const volatile& (*)())':\r\n/usr/include/boost/python/converter/registered.hpp:87: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::detail::value_arg_to_python<caffe::LayerParameter>::value_arg_to_python(caffe::LayerParameter const&)':\r\n/usr/include/boost/python/converter/arg_to_python.hpp:209: undefined reference to `boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void const volatile*, boost::python::converter::registration const&)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `void boost::python::converter::detail::register_shared_ptr0<caffe::PythonLayer<float> >(boost::shared_ptr<caffe::PythonLayer<float> >*)':\r\n/usr/include/boost/python/converter/registered.hpp:72: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `void boost::python::converter::detail::register_shared_ptr0<caffe::PythonLayer<double> >(boost::shared_ptr<caffe::PythonLayer<double> >*)':\r\n/usr/include/boost/python/converter/registered.hpp:72: undefined reference to `boost::python::converter::registry::lookup_shared_ptr(boost::python::type_info)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::converter::registration const& boost::python::converter::detail::registry_lookup2<caffe::LayerParameter const volatile>(caffe::LayerParameter const volatile& (*)())':\r\n/usr/include/boost/python/converter/registered.hpp:87: undefined reference to `boost::python::converter::registry::lookup(boost::python::type_info)'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o):(.data.DW.ref._ZTIN5boost6python17error_already_setE[DW.ref._ZTIN5boost6python17error_already_setE]+0x0): undefined reference to `typeinfo for boost::python::error_already_set'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:30: recipe for target 'mxnet_to_caffe' failed\r\nmake: *** [mxnet_to_caffe] Error 1\r\n```\r\n\r\nIs this an issue with my boost installation? My caffe install seems to be working fine though. I am working off of the latest caffe pull. \r\n\r\nAny ideas? Thanks for the help!"},"comment":{"url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/comments/258860343","html_url":"https://github.com/pertusa/MXNetToCaffeConverter/issues/2#issuecomment-258860343","issue_url":"https://api.github.com/repos/pertusa/MXNetToCaffeConverter/issues/2","id":258860343,"user":{"login":"RishabGargeya","id":8361488,"avatar_url":"https://avatars.githubusercontent.com/u/8361488?v=3","gravatar_id":"","url":"https://api.github.com/users/RishabGargeya","html_url":"https://github.com/RishabGargeya","followers_url":"https://api.github.com/users/RishabGargeya/followers","following_url":"https://api.github.com/users/RishabGargeya/following{/other_user}","gists_url":"https://api.github.com/users/RishabGargeya/gists{/gist_id}","starred_url":"https://api.github.com/users/RishabGargeya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishabGargeya/subscriptions","organizations_url":"https://api.github.com/users/RishabGargeya/orgs","repos_url":"https://api.github.com/users/RishabGargeya/repos","events_url":"https://api.github.com/users/RishabGargeya/events{/privacy}","received_events_url":"https://api.github.com/users/RishabGargeya/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T15:08:00Z","updated_at":"2016-11-07T15:08:00Z","body":"Thanks for the response. I added -lboost_python to the Makefile but ran into the same error.\r\nI then tried installing boost from source, remaking caffe, and then running make but I get the following:\r\n\r\n```\r\nLinking: mxnet_to_caffe\r\ng++ objs/mxnet_to_caffe.o objs/mxnet_my_c_predict_api.o  -lm -lboost_serialization -lboost_filesystem -fopenmp -Wl,--whole-archive /home/rg203/work/caffe/build/lib/libcaffe.a -Wl,--no-whole-archive -lprotobuf -lglog -lgflags -llmdb -lleveldb /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so -lboost_system -lboost_thread -lboost_python -I/home/rg203/work/boost_1_62_0 -lopenblas  -L/usr/local/cuda/lib64 -lcudart -lcublas -lcurand -lcudnn -L/home/rg203/work/boost_1_62_0/stage/lib  /home/rg203/work/mxnet/lib/libmxnet.so `pkg-config --libs opencv` -L/home/rg203/work/boost_1_62_0/stage/lib -lboost_python -o \"mxnet_to_caffe\"\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::api::object::object()':\r\n/home/rg203/work/boost_1_62_0/boost/python/object_core.hpp:403: undefined reference to `_Py_NoneStruct'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::shared_ptr<caffe::Layer<float> > caffe::GetPythonLayer<float>(caffe::LayerParameter const&)':\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:244: undefined reference to `Py_Initialize'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:250: undefined reference to `PyErr_Print'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::shared_ptr<caffe::Layer<double> > caffe::GetPythonLayer<double>(caffe::LayerParameter const&)':\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:244: undefined reference to `Py_Initialize'\r\n/home/rg203/work/caffe/src/caffe/layer_factory.cpp:250: undefined reference to `PyErr_Print'\r\n/home/rg203/work/caffe/build/lib/libcaffe.a(layer_factory.o): In function `boost::python::detail::returnable<boost::python::api::object>::type boost::python::call<boost::python::api::object, caffe::LayerParameter>(_object*, caffe::LayerParameter const&, boost::type<boost::python::api::object>*)':\r\n/home/rg203/work/boost_1_62_0/boost/python/call.hpp:66: undefined reference to `PyEval_CallFunction'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyUnicodeUCS4_FromEncodedObject'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceDivide'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceRemainder'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PySlice_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_Sort'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PySequence_GetSlice'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_SetAttrString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyType_IsSubtype'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_Insert'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_RuntimeError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyComplex_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Copy'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Size'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_Size'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyUnicode_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyStaticMethod_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_Reverse'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_NoMemory'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_FromStringAndSize'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyBaseObject_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyModule_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceLshift'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Keys'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_InternFromString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Subtract'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_DelItem'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceMultiply'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `_PyType_Lookup'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_Clear'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyArg_ParseTupleAndKeywords'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyCallable_Check'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Xor'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyLong_AsUnsignedLongLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyInt_AsLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_ExceptionMatches'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyMethod_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyUnicodeUCS4_AsWideChar'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Or'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceOr'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_TypeError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyComplex_RealAsDouble'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_SetObject'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyLong_AsUnsignedLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PySequence_DelSlice'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyType_Ready'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_IsTrue'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Add'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyTuple_GetItem'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Clear'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_Size'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_RichCompare'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyLong_AsLongLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyBool_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Multiply'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_WarnEx'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_AsString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_GetAttr'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyTuple_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyCFunction_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_GetItem'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyMethod_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyTuple_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceRshift'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_FromFormat'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_ImportError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_AttributeError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_Occurred'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyWeakref_NewRef'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Remainder'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyComplex_ImagAsDouble'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_ValueError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_And'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PySequence_SetSlice'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyImport_ImportModule'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_OverflowError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyClass_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyLong_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_FromString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyRun_FileExFlags'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyFile_AsFile'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_CallFunction'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_SetString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_IsInstance'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `Py_InitModule4_64'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_Append'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyMem_Free'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyType_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyProperty_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Values'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_ClearWeakRefs'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyInt_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `_PyObject_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyInt_FromLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyRun_StringFlags'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceAdd'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyImport_Import'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyFile_FromString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_NewException'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `_Py_NotImplementedStruct'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_GetItem'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyEval_GetGlobals'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_ReferenceError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_SetItem'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Items'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `_PyEval_SliceIndex'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_GetItemString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Lshift'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyBool_FromLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Divide'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyFloat_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_IndexError'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_Rshift'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceSubtract'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyIter_Next'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyString_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyExc_StopIteration'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyType_GenericAlloc'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyDict_Update'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_CallMethod'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceAnd'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_GetAttrString'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyMem_Malloc'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyList_New'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyErr_Format'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyObject_SetAttr'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyNumber_InPlaceXor'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyCFunction_NewEx'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyLong_FromUnsignedLong'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyStaticMethod_Type'\r\n/home/rg203/work/boost_1_62_0/stage/lib/libboost_python.so: undefined reference to `PyTuple_Size'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:30: recipe for target 'mxnet_to_caffe' failed\r\nmake: *** [mxnet_to_caffe] Error 1\r\n```\r\n\r\nIs this still an issue with linking boost-python?\r\nHere is my Makefile for reference:\r\n\r\n```\r\nTARGET=./mxnet_to_caffe\r\n\r\ninclude config.mk\r\n\r\nOBJSCPP = \\\r\nobjs/mxnet_to_caffe.o \\\r\nobjs/mxnet_my_c_predict_api.o \r\n\r\nCC = g++\r\nLINKER = g++\r\n\r\n# CAFFE DEPS\r\nCAFFE_DEPENDENCES= -Wl,--whole-archive $(LIBCAFFE)/build/lib/libcaffe.a -Wl,--no-whole-archive -lprotobuf -lglog -lgflags -llmdb -lleveldb /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so -lboost_system -lboost_thread -lboost_python -I/home/rg203/work/boost_1_62_0\r\nCAFFE_DEPENDENCES+=-lopenblas # BLAS library\r\nCAFFE_DEPENDENCES+= -L/usr/local/cuda/lib64 -lcudart -lcublas -lcurand -lcudnn -L/home/rg203/work/boost_1_62_0/stage/lib # If Caffe was compiled with GPU, this line is necessary \r\n\r\n# MXNet DEPS\r\nMXNET_INCLUDE= -I$(MXNET_ROOT)/include -I$(MXNET_ROOT)/dmlc-core/include -I$(MXNET_ROOT)/mshadow -I$(MXNET_ROOT)/src/c_api\r\n\r\nFLAGS_INCLUDE = `pkg-config --cflags opencv` -I$(LIBCAFFE)/include -I/usr/local/cuda/include $(MXNET_INCLUDE) -I/home/rg203/work/boost_1_62_0\r\nFLAGS_COMPILER =  -c -g -Wall -Wno-deprecated -Wno-reorder -Wno-unused-function -fmessage-length=0 -std=c++0x $(FLAGS_INCLUDE) -Wno-unknown-pragmas\r\nFLAGS_LINKER =  -lm -lboost_serialization -lboost_filesystem -fopenmp $(CAFFE_DEPENDENCES) $(MXNET_ROOT)/lib/libmxnet.so `pkg-config --libs opencv` -L/home/rg203/work/boost_1_62_0/stage/lib -lboost_python\r\n\r\n############################################\r\n\r\nall: $(TARGET)\r\n\t@echo 'Compilation finished!'\r\n\r\n$(TARGET) : $(OBJSCPP) \r\n\t@echo 'Linking: $@'\r\n\t$(LINKER) $(OBJSCPP) $(FLAGS_LINKER) -o \"$@\"\r\n\t@echo 'End linking: $@'\r\n\t@echo ' '\r\n\r\n$(OBJSCPP): ./objs/%.o : ./src/%.cpp\r\n\t@echo 'Compiling $< ...'\r\n\t$(CC) $(FLAGS_COMPILER) -o \"./$@\" \"./$<\"\r\n\t@echo 'End compilation: $<'\r\n\t@echo ' '\r\n\r\nclean: \r\n\t@echo 'Cleaning '\r\n\trm -f *.o\r\n\t@echo 'Cleaning '\r\n\trm -f $(TARGET)\r\n```\r\n\r\nThanks for the help!"}}
{"actor":{"display_login":"RishabGargeya"}}