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

Linking issue attempting to make all #33

Closed
eyalfoni opened this issue Feb 16, 2016 · 5 comments
Closed

Linking issue attempting to make all #33

eyalfoni opened this issue Feb 16, 2016 · 5 comments
Labels

Comments

@eyalfoni
Copy link

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The symbols missing are:
"rsimpl::uvc::get_control(rsimpl::uvc::device const&, int, unsigned char, void*, int)", referenced from: rsimpl::f200::xu_read(rsimpl::uvc::device const&, unsigned char, void*, unsigned int) in f200-private.o rsimpl::r200::xu_read(rsimpl::uvc::device const&, rsimpl::r200::control, void*, unsigned int) in r200-private.o rsimpl::r200::send_command_and_receive_response(rsimpl::uvc::device&, rsimpl::r200::CommandResponsePacket const&) in r200-private.o rsimpl::r200::read_device_pages(rsimpl::uvc::device&, unsigned int, unsigned char*, unsigned int) in r200-private.o rsimpl::r200::read_arbitrary_chunk(rsimpl::uvc::device&, unsigned int, void*, int) in r200-private.o rsimpl::r200::read_admin_sector(rsimpl::uvc::device&, unsigned char*, int) in r200-private.o rsimpl::r200::read_firmware_version(rsimpl::uvc::device&) in r200-private.o ... "rsimpl::uvc::set_control(rsimpl::uvc::device&, int, unsigned char, void*, int)", referenced from: rsimpl::f200::xu_write(rsimpl::uvc::device&, unsigned char, void*, unsigned int) in f200-private.o rsimpl::r200::xu_write(rsimpl::uvc::device&, rsimpl::r200::control, void*, unsigned int) in r200-private.o rsimpl::r200::send_command_and_receive_response(rsimpl::uvc::device&, rsimpl::r200::CommandResponsePacket const&) in r200-private.o rsimpl::r200::read_device_pages(rsimpl::uvc::device&, unsigned int, unsigned char*, unsigned int) in r200-private.o rsimpl::r200::read_arbitrary_chunk(rsimpl::uvc::device&, unsigned int, void*, int) in r200-private.o rsimpl::r200::read_admin_sector(rsimpl::uvc::device&, unsigned char*, int) in r200-private.o rsimpl::r200::read_firmware_version(rsimpl::uvc::device&) in r200-private.o ... "rsimpl::uvc::bulk_transfer(rsimpl::uvc::device&, unsigned char, void*, int, int*, unsigned int)", referenced from: rsimpl::f200::execute_usb_command(rsimpl::uvc::device&, std::__1::timed_mutex&, unsigned char*, unsigned long, unsigned int&, unsigned char*, unsigned long&) in f200-private.o "rsimpl::uvc::get_vendor_id(rsimpl::uvc::device const&)", referenced from: rs_context::rs_context() in context.o rs_context::rs_context() in context.o "rsimpl::uvc::init_controls(rsimpl::uvc::device&, int, rsimpl::uvc::guid const&)", referenced from: rsimpl::make_f200_device(std::__1::shared_ptr<rsimpl::uvc::device>) in f200.o rsimpl::make_sr300_device(std::__1::shared_ptr<rsimpl::uvc::device>) in f200.o rsimpl::make_r200_device(std::__1::shared_ptr<rsimpl::uvc::device>) in r200.o "rsimpl::uvc::query_devices(std::__1::shared_ptr<rsimpl::uvc::context>)", referenced from: rs_context::rs_context() in context.o rs_context::rs_context() in context.o "rsimpl::uvc::create_context()", referenced from: rs_context::rs_context() in context.o rs_context::rs_context() in context.o "rsimpl::uvc::get_product_id(rsimpl::uvc::device const&)", referenced from: rs_context::rs_context() in context.o rs_context::rs_context() in context.o "rsimpl::uvc::get_pu_control(rsimpl::uvc::device const&, int, rs_option)", referenced from: rsimpl::f200_camera::get_options(rs_option const*, int, double*) in f200.o rsimpl::r200_camera::get_options(rs_option const*, int, double*) in r200.o "rsimpl::uvc::set_pu_control(rsimpl::uvc::device&, int, rs_option, int)", referenced from: rsimpl::make_sr300_device(std::__1::shared_ptr<rsimpl::uvc::device>) in f200.o rsimpl::f200_camera::set_options(rs_option const*, int, double const*) in f200.o rsimpl::r200_camera::set_options(rs_option const*, int, double const*) in r200.o "rsimpl::uvc::stop_streaming(rsimpl::uvc::device&)", referenced from: rs_device::stop() in device.o "rsimpl::uvc::claim_interface(rsimpl::uvc::device&, rsimpl::uvc::guid const&, int)", referenced from: rsimpl::f200::claim_ivcam_interface(rsimpl::uvc::device&) in f200-private.o "rsimpl::uvc::start_streaming(rsimpl::uvc::device&, int)", referenced from: rs_device::start() in device.o "rsimpl::uvc::set_subdevice_mode(rsimpl::uvc::device&, int, int, int, unsigned int, int, std::__1::function<void (void const*)>)", referenced from: rs_device::start() in device.o "rsimpl::uvc::get_pu_control_range(rsimpl::uvc::device const&, int, rs_option, int*, int*)", referenced from: rs_device::get_option_range(rs_option, double&, double&, double&) in device.o

@eyalfoni eyalfoni changed the title Using make all results in missing file: 'linux/usb/video.h' Linking issue attempting to make all Feb 16, 2016
@ddiakopoulos
Copy link
Contributor

This is not necessarily a librealsense issue -- but rather an issue with your system configuration. For some reason you are missing the V4L/uvcvideo headers on your system. What distribution are you using, and what kernel version? Have you successfully patched the uvcvideo.ko driver?

@eyalfoni
Copy link
Author

Thanks for answering!
Distribution:
Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64
Where is the patch for the uvcvideo.ko driver?

@ddiakopoulos
Copy link
Contributor

Ok, so you're actually on OSX! According to our CI build, the XCode project should be building A-OK. If you do want to use the makefile (which it appears you are attempting to use) check out this pull request: #17 The makefile was originally only for Linux systems but #17 might fix your issue

@ghost
Copy link

ghost commented Feb 17, 2016

I'm using Xcode and opening librealsense.xcworkspace. All the example compiled and running fine. Maybe you use the standard Makefile just like in linux. It didn't work in osx. Use the provide Xcode project to compile it.

I make the cmake in my fork, if you prefer using cmake.

Xcode 7.2 elCapitan

@eyalfoni
Copy link
Author

Thanks for the advice! I got it working in Xcode by using the librealsense.xcworkspace!

furushchev pushed a commit to furushchev/librealsense that referenced this issue Jul 17, 2016
Nir-Az pushed a commit to Nir-Az/librealsense that referenced this issue Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants