matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

libapr-1.so.0:undefined reference to 'uuid_generate@UUID_1.0'

Open vinbo opened this issue 6 years ago • 2 comments

Hello. I'm trying to put this into ROS as a node. But before I began to plot something, the Cmakelist and include of matplotlib.h itself already brought error.

  1. if I comment the #include matplotlib.h, then the build error is: Errors << ros_multiplot:make /home/n_li/catkin_ws27/logs/ros_multiplot/build.make.006.log //usr/lib/x86_64-linux-gnu/libapr-1.so.0:undefined reference to ‘uuid_generate@UUID_1.0’ collect2: error: ld returned 1 exit status make[2]: *** [/home/n_li/catkin_ws27/devel/.private/ros_multiplot/lib/ros_multiplot/ros_multiplot] Error 1 make[1]: *** [CMakeFiles/ros_multiplot.dir/all] Error 2 make: *** [all] Error 2 cd /home/n_li/catkin_ws27/build/ros_multiplot; catkin build --get-env ros_multiplot | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -

  2. if I uncomment the #include matplotlib.h, there will be 4 multiple definition warnings.

what should I do, please? btw: the build command I use is: catkin build ros_multiplot --pre-clean -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_CXX_COMPILER_ARG1=-std=c++11 and I'm using anaconda3, under python2.7 environment, ubuntu 16.04, ROS kinetic

vinbo avatar Aug 16 '19 17:08 vinbo