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

ros-groovy-visp install error

asked 2014-03-25 08:40:51 -0500

Sudarshan gravatar image

updated 2014-04-08 10:06:17 -0500

Hi,

I am running Ubunut 12.04 with ROS Groovy.

Thanks a lot for all your help! Based on the comments below, I uninstalled and cleaned out Visp from my system (locate visp, libvisp, VISPConfig.cmake all returns nothing). As per Thomas suggestion, I tried to install ros-groovy-visp using apt-get and this gives me an error:

~)$ sudo apt-get install ros-groovy-visp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ros-groovy-visp : Depends: libfreenect0.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

This brings me back to the original problem I was having with a conflict between libfreenect0.0 and libfreenect-dev. ros-groovy-visp requires both of those, but trying to install libfreenect0.0 removes libfreenect-dev and vice versa.

~)$ ins libfreenect0.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libfreenect libfreenect-demos libfreenect-dev
The following NEW packages will be installed:
  libfreenect0.0
0 upgraded, 1 newly installed, 3 to remove and 1 not upgraded.
Need to get 27.5 kB of archives.
After this operation, 209 kB disk space will be freed.
Do you want to continue [Y/n]?

Thanks again for all your help!

edit retag flag offensive close merge delete

Comments

which branch of the vision_visp package are you trying to compile? make sure you're on the groovy-devel branch

jbinney gravatar image jbinney  ( 2014-03-25 20:50:13 -0500 )edit

Thanks for your reply. I was the groovy branch earlier, but I just tried with the groovy-devel branch and it gives me the same error. I get the same error with master branche. Is there any other way to get visp_auto_tracker installed and track QR code tags?

Sudarshan gravatar image Sudarshan  ( 2014-03-26 10:45:09 -0500 )edit

Which version of visp did you use? Did you install from debs?

jbinney gravatar image jbinney  ( 2014-03-27 08:38:52 -0500 )edit

make sure you're using the version of visp from debs here: http://www.irisa.fr/lagadic/visp/install-sdk.html

jbinney gravatar image jbinney  ( 2014-03-27 08:40:32 -0500 )edit

That link goes to a 404 not found. So VISP and vision_visp are two different things. I downloaded and built /installed the latest version of VISP from source from here: http://www.irisa.fr/lagadic/visp/download.html. My understanding is that vision_visp is the ROS package which interfaces with VISP.

Sudarshan gravatar image Sudarshan  ( 2014-03-27 08:56:43 -0500 )edit

Somehow a

got added to the link. Try "http://www.irisa.fr/lagadic/visp/install-sdk.html".

jbinney gravatar image jbinney  ( 2014-03-27 09:27:46 -0500 )edit

I tried to install this but there seems to be conflict involving libfreenect0.0 and libfreenect-dev. Basically freenect (which is required by visp) wants both installed but they don't like each other and I'm not sure how to solve this. In any case, shouldn't building from source work?

Sudarshan gravatar image Sudarshan  ( 2014-03-31 07:10:37 -0500 )edit

I'm not sure what version the debs are, but might be that the source version of visp is too new to work with the ros package (just guessing though).

jbinney gravatar image jbinney  ( 2014-03-31 08:03:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-07 15:23:03 -0500

Thomas gravatar image

You are linking yourself against the static library (/usr/local/lib/libvisp.a) and this conflicts with symbol visibility options passed during ViSP compilation. Please remove what you installed manually in /usr/local and retry.

Steps:

  1. Remove manually installed ViSP
  2. Clean (remove) all you ViSP related build directories.
  3. Install ros-groovy-visp
  4. If it works, try installing ros-groovy-vision-visp
  5. If 4 does not work, try building vision_visp by hand, it should find ViSP in /opt/ros/groovy/... If it not findin ViSP in this directory, it means you probably have another custom version installed somwhere, delete and repeat until it finds the right one. If it is not finding ViSP automatically, use ccmake to set the path manually. If it is not sufficient, you may have to change your environment variables to make sure it can find ViSP (i.e. PATH and PKG_CONFIG_PATH).

If 4. does not work, please post the build errors from apt and I will update the answer.

edit flag offensive delete link more

Comments

As Thomas said, the build options used to generate ViSP library are not compatible with ROS usage. May be you install ViSP as a static library, or if it is a dynamic one, it was not built with -fPIC. This is typically the case if you have installed ViSP as indicated in http://www.irisa.fr/lagadic/visp/install-sdk.html#ubuntu-12 Just to complete Thomas answer, to be sure that you have removed all existing version of ViSP you can use locate: $ sudo updatedb $ locate libvisp $ locate VISPConfig.cmake The two last command should return an empty answer. If this is the case, you can enter step 3 mentioned by Thomas.

Fabien Spindler gravatar image Fabien Spindler  ( 2014-04-07 20:52:29 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2014-03-25 08:40:51 -0500

Seen: 566 times

Last updated: Apr 08 '14