Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vinbo opened this issue Aug 16, 2019 · 1 comment
Open

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

vinbo opened this issue Aug 16, 2019 · 1 comment

Comments

@vinbo
Copy link

vinbo commented Aug 16, 2019

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

@mosamdabhi
Copy link

It might be possible that this error has is related to a broken Python installation. If you are conda, try deactivating the conda or switch to a stable version of Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants