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

Failed to build when RBDL_BUILD_ADDON_URDFREADER is ON on Ubuntu 18.04 #104

Open
guntgbtgv opened this issue Aug 4, 2024 · 5 comments
Open

Comments

@guntgbtgv
Copy link

[ 76%] Built target rbdl
[ 82%] Building CXX object addons/urdfreader/CMakeFiles/rbdl_urdfreader.dir/urdfreader.cc.o
[ 88%] Linking CXX shared library librbdl_urdfreader.so
[ 88%] Built target rbdl_urdfreader
[ 94%] Linking CXX executable rbdl_urdfreader_util
librbdl_urdfreader.so.3.2.0: undefined reference to `urdf::UrdfModel::fromUrdfStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
librbdl_urdfreader.so.3.2.0: undefined reference to `urdf::UrdfModel::getLink(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
librbdl_urdfreader.so.3.2.0: undefined reference to `urdf::Rotation::getRpy(double&, double&, double&) const'
collect2: error: ld returned 1 exit status
make[2]: *** [addons/urdfreader/CMakeFiles/rbdl_urdfreader_util.dir/build.make:132: addons/urdfreader/rbdl_urdfreader_util] Error 1
make[1]: *** [CMakeFiles/Makefile2:719: addons/urdfreader/CMakeFiles/rbdl_urdfreader_util.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

when I built on ubuntu 20.04 there was no issue. However when I built on ubuntu 18.04, this happened.

I correctly setup submodule by running git submodule init and git submodule update

@guntgbtgv
Copy link
Author

I re-built everything, including minor modifications of the code, and it worked.

@ofir1080
Copy link

ofir1080 commented Nov 1, 2024

Hi @guntgbtgv,
I and facing the same issue. Can you share the modifications you had to do?
Thanks!

@guntgbtgv
Copy link
Author

@ofir1080 check #85 . If I recall correctly, this was the modifications I made

@guntgbtgv guntgbtgv reopened this Nov 8, 2024
@guntgbtgv
Copy link
Author

I came across the same issue, on a different machine. This time, re-building everything does not work.

@ju6ge
Copy link
Contributor

ju6ge commented Nov 8, 2024

I just tried to reproduce the error. I am running Ubuntu 18.04 via Container:

Here the minimal instructions to build RBDL with URDF Reader support.

> podman run -it --rm ubuntu:18.04
$ apt install libboost-dev cmake cmake-curses-gui build-essential libeigen3-dev git
$ git clone --recursive https://github.com/rbdl/rbdl
$ cd rbdl
$ mkdir build && cd build
$ cmake -D RBDL_BUILD_ADDON_URDFREADER=ON ..
$ make -j

All of this runs smoothly without error. And since I am running via container this is a clean environment where nothing else is preconfigured. So any Issues you are seeing probably come from things that are different on your system.

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

3 participants