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

Apple OSX H/W / USB issues #127

Closed
Zieng opened this issue May 1, 2016 · 15 comments
Closed

Apple OSX H/W / USB issues #127

Zieng opened this issue May 1, 2016 · 15 comments

Comments

@Zieng
Copy link

Zieng commented May 1, 2016

Required Info
Camera Model F200
Firmware Version 2.50.0.0
Operating System & Version OSX 10.11.4
Kernel Version (Linux Only)
Build System Makefile

When use commandline make install to install after make successfully:

the result is:

mkdir -p obj/libuvc
mkdir -p lib
mkdir -p bin
c++ -std=c++11 -shared obj/verify.o obj/context.o obj/device.o obj/f200-private.o obj/f200.o obj/image.o obj/log.o obj/r200-private.o obj/r200.o obj/rs.o obj/stream.o obj/sync.o obj/types.o obj/uvc-libuvc.o obj/uvc-v4l2.o obj/uvc-wmf.o obj/uvc.o obj/libuvc/ctrl.o obj/libuvc/dev.o obj/libuvc/diag.o obj/libuvc/frame.o obj/libuvc/init.o obj/libuvc/stream.o `pkg-config --cflags --libs libusb-1.0` -o lib/librealsense.so
install -m755 -d /usr/local/include/librealsense
cp -r include/librealsense/* /usr/local/include/librealsense
cp lib/librealsense.so /usr/local/lib
ldconfig
make: ldconfig: No such file or directory
make: *** [install] Error 1

I know that ldconfig is a linux command, and in OSX there is a command called dyld has similar function.
But simply replace ldconfig with dyld won't work.

Do I miss something?

@ddiakopoulos
Copy link
Contributor

Please use the included XCode solution instead of the makefile. The makefile is not supported on OSX.

@Zieng
Copy link
Author

Zieng commented May 3, 2016

@ddiakopoulos
tried the XCode, still not OK.
for example, first I build the librealsense successfully, then I connected the device (F200) via USB, tried the cpp-tutorial-3-pointcloud, and the result is:

There are 1 connected RealSense devices.

Using device 0, an Intel RealSense F200
    Serial number: 039140069409
    Firmware version: 2.50.0.0
rs.error: TemperatureControlLoop: libusb_bulk_transfer(...) returned LIBUSB_ERROR_NO_DEVICE
rs::error was thrown when calling rs_wait_for_frames(device:0x103000018):
    Timeout waiting for frames.
Program ended with exit code: 1

Any suggestions?

@ddiakopoulos
Copy link
Contributor

@Zieng could be a hardware issue... often indicated by Timeout Waiting for Frames. But...you are running on an older F200 firmware that can only be updated by a Windows 10 computer by installing the RealSense F200 DCM. That could be one issue... so I would try updating first.

@Zieng
Copy link
Author

Zieng commented May 3, 2016

@ddiakopoulos
Thanks a lot!
I will try to update the firmware and check if it's OK.

@Zieng
Copy link
Author

Zieng commented May 3, 2016

@ddiakopoulos
I update firmware to latest, but still not working.
here is the message:

There are 1 connected RealSense devices.

Using device 0, an Intel RealSense F200
    Serial number: 039140069409
    Firmware version: 2.60.0.0
rs_error was raised when calling rs_wait_for_frames(device:0x102002018):
    Timeout waiting for frames.
Program ended with exit code: 1

@ddiakopoulos
Copy link
Contributor

@Zieng maybe try on a different USB port or through a powered USB 3.0 hub.

@ghost
Copy link

ghost commented May 13, 2016

@Zieng
If you using hackintosh, it didn't work. There's some issue in usb3 driver.
It work in my macbook air mid 2012. Libusb using from brew.

@Zieng
Copy link
Author

Zieng commented May 14, 2016

@blackerpaper
Thanks for your reply. My computer is rmbp (early 2015), OSX 10.11.4.

@thiagopradi
Copy link

thiagopradi commented Jun 9, 2016

I'm experiencing the same issue. In my case, getting frames from the RGB camera works fine, but If I try to get depth or IR frames, I get the following error:

RealSense error calling rs_wait_for_frames(device:0x7ffb49003618):
    Timeout waiting for frames.

Hardware information:
Intel RealSense F200 - Firmware version: 2.60.0.0
MacBook Pro (Retina, 13-inch, Early 2015)

@ghost
Copy link

ghost commented Jun 9, 2016

I know that it seems trivial, have you tried to reset the smc or pram?

@ddiakopoulos
Copy link
Contributor

Seems like the root cause here is USB controller H/W that is just flaky for some versions of RealSense cameras on some versions of Apple hardware. Unfortunately there's not much we can do here other than keep a running list of Apple H/W that has known incompatibilities.

@ddiakopoulos ddiakopoulos changed the title Unable install on mac OSX Apple OSX H/W / USB issues Jun 25, 2016
@taiya
Copy link

taiya commented Jul 5, 2016

Regarding this comment:

"Please use the included XCode solution instead of the makefile. The makefile is not supported on OSX"

If that is the case, then you should have a clear error that checks for OSX and informs the user!!!

@ddiakopoulos
Copy link
Contributor

@ataiya Not supported is precisely what that means. Several people have contributed steps to enable Makefile support on OSX that I have merged. I've never tested them and therefore have no indication if it's working or broken. Since this is an open-source project with a large number of merged contributions, I highly support your time and effort figuring out why it's not working on your system and submitting a fix!

@taiya
Copy link

taiya commented Jul 5, 2016

Alright, nice to hear that. Give me a bit of time and I will fix the CMake build for OSX.
(XCode is just too ugly... polluted my ~/Library/Developer with build files... sad)

@erikbilling
Copy link

I see it was quite a while ago this issue was discussed. I'm running into exactly this issue with my R200 on OSX 10.12. Any progress since this issue was discussed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants