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

Suggestion to change in the installation #7

Open
duguyue100 opened this issue Nov 16, 2018 · 6 comments
Open

Suggestion to change in the installation #7

duguyue100 opened this issue Nov 16, 2018 · 6 comments

Comments

@duguyue100
Copy link

Hi, I just compiled the ESIM on my Ubuntu 16.04 machine with ROS Kinetic. I just recently setup my machine so the OS is rather clean. I noticed two problems during the installation:

First, In this line: https://github.com/uzh-rpg/ze_oss/blob/master/ze_cmake/cmake/modules/ze_setup.cmake#L4

The option Werror is turned on so that some warnings in the pyconfig.h will be flagged as errors. With this, I couldn't compile ze_matplotlib

Second, while I was compiling ze_splines, it gives me the following errors:

/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/dgywork/catkin_ws/devel/lib/ze_splines/viz_splines_test] Error 1
make[1]: *** [CMakeFiles/viz_splines_test.dir/all] Error 2
make: *** [all] Error 2

Turns out the version of libuuid supported by the Ubuntu 16.04 is too old. Since I have a conda on my machine, so I installed libuuid through conda to fix it:

conda install -c conda-forge libuuid 

Yuhuang.

@supitalp
Copy link
Contributor

supitalp commented Dec 6, 2018

Hello,
Thanks for your feedback. I will leave the issue open for now in case anyone else runs into the same problem. I have never seen this problem, although I tested ESIM on the same system (Ubuntu 16.04 + ROS Kinetic). For reference, could you please tell me what version of Python, CMake, and gcc you are using?
Thanks.

@duguyue100
Copy link
Author

Python version: 2.7.15
CMake: 3.5.1
GCC: 5.4.0

It's also the Ubuntu 16.04 + ROS Kinetic.

@charleschen6
Copy link

charleschen6 commented Jun 18, 2019

I also met with same error by execute catkin_make (http://wiki.ros.org/catkin/Tutorials/workspace_overlaying 2.3Building Your catkin Workspace)
Python version: 2.7.16
CMake: 3.5.1
GCC: 6.5.0
libuuid-perl 0.24-1build1
libuuid1:amd64 2.27.1-6ubuntu3.7

[ 95%] Linking CXX executable /.../overlay_ws/devel/lib/turtlesim/turtlesim_node
//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
ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/build.make:210: recipe for target '.../overlay_ws/devel/lib/turtlesim/turtlesim_node' failed
make[2]: *** [.../overlay_ws/devel/lib/turtlesim/turtlesim_node] Error 1
CMakeFiles/Makefile2:3622: recipe for target 'ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/all' failed
make[1]: *** [ros_tutorials/turtlesim/CMakeFiles/turtlesim_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j16 -l16" failed
@duguyue100
conda install -c conda-forge libuuid didn't work for me.
similar problem:http://answers.ros.org/question/320507/turtlesim-node-doesnt-work/

@duguyue100
Copy link
Author

Hi, @charleschen6 are you using the Python supplied by Ubuntu, Virtual environment, or Conda?
In my case, because I link ROS with Conda's Python, so I can use libuuid in Conda.
Otherwise, maybe build the newer library from scratch?

Regards,
Yuhuang.

@smmmmi
Copy link

smmmmi commented Sep 7, 2020

Possible solution for libuuid:

"It is good to remove the libuuid library file under anaconda2/lib, and finally solved this problem."
ls ~/anaconda2/lib/libuuid*
mkdir ~/anaconda2/libuuid
mv ~/anaconda2/lib/libuuid* ~/anaconda2/libuuid
From here

@ngkhiem97
Copy link

Possible solution for libuuid:

"It is good to remove the libuuid library file under anaconda2/lib, and finally solved this problem."
ls ~/anaconda2/lib/libuuid*
mkdir ~/anaconda2/libuuid
mv ~/anaconda2/lib/libuuid* ~/anaconda2/libuuid
From here

You saved my day bro!

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

5 participants