[Ros-kinect] "undefined reference" error when making openni_pcl

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Ros-kinect] "undefined reference" error when making openni_pcl

K Chen
Hi,

Making package openni_pcl using rosmake gives such error:

  Linking CXX executable ../bin/openni_viewer
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_close'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_devices'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_open'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_busses'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_get_string_simple'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_init'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_busses'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/openni_viewer] Error 1

I tried re-installing libusb-dev and libusb-1.0-0-dev but it didn't help, and rosdep found no dependency missing.

Is it a bug in package or something?

I am using diamondback release under ubuntu 10.10

Thanks.

--
Regards

University of Science and Technology of China
School of Computer Science and Technology

K.Chen

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect
Reply | Threaded
Open this post in threaded view
|

Re: [Ros-kinect] "undefined reference" error when making openni_pcl

Nicola Fioraio
Hi Chen,

what kind of version of the ni stack are you using? I just downloaded and installed the master and everything went well.
This is the rosinstall file I used:

{{{
- git: {local-name: ni, uri: 'https://github.com/ros-pkg-git/ni.git', version: master}
}}}

Nicola


On Thu, Feb 24, 2011 at 6:20 PM, K Chen <[hidden email]> wrote:
Hi,

Making package openni_pcl using rosmake gives such error:

  Linking CXX executable ../bin/openni_viewer
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_close'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_devices'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_open'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_busses'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_get_string_simple'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_init'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_busses'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/openni_viewer] Error 1

I tried re-installing libusb-dev and libusb-1.0-0-dev but it didn't help, and rosdep found no dependency missing.

Is it a bug in package or something?

I am using diamondback release under ubuntu 10.10

Thanks.

--
Regards

University of Science and Technology of China
School of Computer Science and Technology

K.Chen

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect



_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect
Reply | Threaded
Open this post in threaded view
|

Re: [Ros-kinect] "undefined reference" error when making openni_pcl

Suat Gedikli
In reply to this post by K Chen
Hi,

sorry for that. The reason is that the openni_driver uses libsub-0.1 too! We read addtional information about the device like serial number manufacturer, etc.... so i will update the manifest and rosdep.yaml and try to get rid of libusb-0.1

Cheers,
Suat Gedikli
Suat
Reply | Threaded
Open this post in threaded view
|

Re: [Ros-kinect] "undefined reference" error when making openni_pcl

K Chen
In reply to this post by Nicola Fioraio
Just now I pulled a new version and now it's fixed, thank!


On Fri, Feb 25, 2011 at 10:50 AM, Nicola Fioraio <[hidden email]> wrote:
Hi Chen,

what kind of version of the ni stack are you using? I just downloaded and installed the master and everything went well.
This is the rosinstall file I used:

{{{
- git: {local-name: ni, uri: 'https://github.com/ros-pkg-git/ni.git', version: master}
}}}

Nicola


On Thu, Feb 24, 2011 at 6:20 PM, K Chen <[hidden email]> wrote:
Hi,

Making package openni_pcl using rosmake gives such error:

  Linking CXX executable ../bin/openni_viewer
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_close'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_devices'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_open'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_find_busses'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_get_string_simple'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_init'
  /home/user/ni/ni/openni_camera/lib/libopenni_driver.so: undefined reference to `usb_busses'
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/openni_viewer] Error 1

I tried re-installing libusb-dev and libusb-1.0-0-dev but it didn't help, and rosdep found no dependency missing.

Is it a bug in package or something?

I am using diamondback release under ubuntu 10.10

Thanks.

--
Regards

University of Science and Technology of China
School of Computer Science and Technology

K.Chen

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect





--
Regards

University of Science and Technology of China
School of Computer Science and Technology

K.Chen

_______________________________________________
Ros-kinect mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-kinect
Reply | Threaded
Open this post in threaded view
|

Re: [Ros-kinect] "undefined reference" error when making openni_pcl

Suat Gedikli
Hi,

please pull again. I replaced libusb0.1 by libusb1.0, which is required for openni anyway. In the new version we just depend on libusb1.0.

Cheers,
Suat Gedikli
Suat