ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

Trouble installing Indigo on Debian jessie (collada_parser build failure)

asked 2016-02-10 15:36:03 -0600

Laughlin gravatar image

updated 2016-02-10 16:16:07 -0600

Following the directions at http://wiki.ros.org/indigo/Installati... (yes I realize this is fro Wheezy, but stick with me), everything seems to be OK up until the point at which I try and compile the packages with

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo

Building collada_parser fails:

==> make -j4 -l4 in '/home/laughlin/catkin_ws/build_isolated/collada_parser'
Scanning dependencies of target collada_parser
[ 50%] Building CXX object CMakeFiles/collada_parser.dir/src/collada_parser.cpp.o
Linking CXX shared library /home/laughlin/catkin_ws/devel_isolated/collada_parser/lib/libcollada_parser.so
/usr/bin/ld: cannot find -lcollada-dom2.4-dp
collect2: error: ld returned 1 exit status
CMakeFiles/collada_parser.dir/build.make:125: recipe for target '/home/laughlin/catkin_ws/devel_isolated/collada_parser/lib/libcollada_parser.so' failed
make[2]: *** [/home/laughlin/catkin_ws/devel_isolated/collada_parser/lib/libcollada_parser.so] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/collada_parser.dir/all' failed
make[1]: *** [CMakeFiles/collada_parser.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'collada_parser': 
  Command '['/opt/ros/indigo/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/laughlin/catkin_ws/build_isolated/collada_parser && /opt/ros/indigo/env.sh make -j4 -l4

Doing a locate collada-dom2.4-dp I receive the following

/home/laughlin/catkin_ws/external_src/collada-dom-2.4.0/dom/libcollada-dom2.4-dp.so
/home/laughlin/catkin_ws/external_src/collada-dom-2.4.0/dom/libcollada-dom2.4-dp.so.0
/home/laughlin/catkin_ws/external_src/collada-dom-2.4.0/dom/libcollada-dom2.4-dp.so.2.4.0
/usr/local/lib/libcollada-dom2.4-dp.so.2.4.0

Because I'm new to CMake, and building anything of significance from source, I'm not sure where to even start on remedying this. I'm guessing it's looking for the file in /usr/local/lib, but can't find it, but I'm not sure.

edit retag flag offensive close merge delete

Comments

Can you post the output of the following to a gist:

VERBOSE=1 cd /home/laughlin/catkin_ws/build_isolated/collada_parser && /opt/ros/indigo/env.sh make -j4 -l4
jbohren gravatar image jbohren  ( 2016-02-10 16:37:20 -0600 )edit
1
Laughlin gravatar image Laughlin  ( 2016-02-10 16:48:15 -0600 )edit

Sorry, try:

export VERBOSE=1 && cd /home/laughlin/catkin_ws/build_isolated/collada_parser && /opt/ros/indigo/env.sh make -j4 -l4
jbohren gravatar image jbohren  ( 2016-02-10 17:01:46 -0600 )edit
1
Laughlin gravatar image Laughlin  ( 2016-02-10 17:08:38 -0600 )edit
1

After running checkinstall for collada you need to run ldconfig. Check if /usr/local/lib/libcollada-dom2.4-dp.so turns up in ldconfig -v and try again.

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-02-10 19:57:26 -0600 )edit
1

Success! Thank you @Humpelstilzchen.

Laughlin gravatar image Laughlin  ( 2016-02-10 21:01:30 -0600 )edit

Hi all, I am still Stuck with the same error mentioned in this question (collada parser fails). can you plz help me with detailed solution * ( where/how exactly to run sudo ldconfig -v) * when i check the above mention destination, i find (libcollada-dom2.4-dp.so.2.4.0) * please help me

anosseir gravatar image anosseir  ( 2016-09-26 09:30:28 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2016-02-10 21:10:32 -0600

Laughlin gravatar image

Following advice from @Humpelstilzchen I got collada_parser built, and ROS installed. Removed collada-com-dev (using dpkg worked fine), re-ran checkinstall, followed by

sudo ldconfig -v (libcollada-dom2.4... did show up there)

ROS built cleanly and installed into appropriate directory thereafter.

Thanks for the help @jbohren and @Humpelstilzchen

edit flag offensive delete link more

Comments

Worked for me!! Thanks all of you :)

Pratik Somaiya gravatar image Pratik Somaiya  ( 2016-07-04 05:17:07 -0600 )edit
1

answered 2017-01-18 22:29:47 -0600

tomtana gravatar image

@anosseir I had a similar problem. Even though catkin_make threw the same error than above, the problem seemed to be situated in the before compiled and installed urdf* packages. The following resolved for me the issue:

  • I removed the self compiled packages
sudo apt-get purge liburdfdom-headers-dev liburdfdom-dev
  • And installed the binary packages from the debian Jessie repo (yes no need to compile):
sudo apt-get install liburdfdom-dev liburdfdom-headers-dev
  • check if the following packages are installed:
sudo apt-get install liburiparser-dev libminizip-dev libboost-dev libpcre3-dev libboost-system-dev libboost-filesystem-dev
  • recompile and checkinstall as before mentioned and described the collada-dom library

  • run again

rosdep install --from-paths src --ignore-src --rosdistro indigo -y -r --os=debian:jessie
  • continue the build
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo
edit flag offensive delete link more
0

answered 2016-03-03 08:27:08 -0600

niko gravatar image

Hello!

I am too following the same Manual ( http://wiki.ros.org/indigo/Installati... ) on Debian Jessie, but get stuck on point 2.2.1 installing collada-dom-dev. After running $ sudo checkinstall make install I get following error messages:

========================= Installation results ===========================
[  4%] Built target zlib
[  4%] Built target minizip
[  9%] Built target pcre_local
[  9%] Built target pcrecpp_local
[  9%] Built target pcreposix_local
[ 45%] Built target colladadom141
[ 94%] Built target colladadom150
Linking CXX shared library libcollada-dom2.4-dp.so
/usr/bin/ld: external-libs/pcre-8.02/libpcre_local.a(pcre_compile.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
external-libs/pcre-8.02/libpcre_local.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
dom/CMakeFiles/collada-dom.dir/build.make:894: recipe for target 'dom/libcollada-dom2.4-dp.so.2.4.0' failed
make[2]: *** [dom/libcollada-dom2.4-dp.so.2.4.0] Error 1
CMakeFiles/Makefile2:340: recipe for target 'dom/CMakeFiles/collada-dom.dir/all' failed
make[1]: *** [dom/CMakeFiles/collada-dom.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

I thought it might have to do with the loose linking explained in the you-need-to-patch-this-link (as explained in the manual), but I can't apply the patch because the installation is aborted before creating the to-be-patched file.

Is there somebody who could explain this error message to me?

Thank you so much! Cheers, Niko

edit flag offensive delete link more

Comments

Please post a new question

Humpelstilzchen gravatar image Humpelstilzchen  ( 2016-03-07 00:48:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-10 15:26:44 -0600

Seen: 2,209 times

Last updated: Jan 18 '17