MacOS Installation Instructions Error
I am attempting to develop with librealsense on macOS 10.13.6 using Xcode 9.4.1. All the instructions work fine except for the last command line:
cmake .. -DBUILD_EXAMPLES=true -DBUILD_WITH_OPENMP=false -DHWM_OVER_XU=false -G XcodeWhen I enter this command, I get the following CMake error:
CMake Error: The source directory "/Users/macbookpro15" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Do I need to create my own CMakeLists.txt? If so, what does it need to contain and where should it be located?
Here is the link to the installation instructions for reference:
Thanks
-
Hi Eidsonbrandon I would recommend following the version of the Mac instructions in the link below, as they are the ones linked to from the front page of the librealsense GitHub site and so will be the most up to date ones:
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_osx.md
-
Hey MartyG,
I have followed the updated instructions you have linked and am still getting the same error on the same command.
Any other ideas?
Thanks,
Brandon
-
I have not got a Mac to test on, unfortunately, so it is difficult to advise. If I were building on a non-Mac computer then I would expect the CMake error that you experienced to occur if using the CMake build instruction in an incorrect location.
Typically, the CMake build process would involve going to the librealsense root folder of the librealsense source code and doing mkdir build && cd build to create and navigate to a build directory (so you had the path librealsense > build). Then the CMake command is run from within the librealsense > build folder.
Do you have a folder named librealsense, please?
A couple of years ago there was a Mac installation method posted that more closely resembled the PC one. It involved cloning the librealsense GitHub to obtain the source code.
-
Cloning the librealsense GitHub seems to be the missing piece of info in the previous two guides. As well as navigating to it before creating and populating the build directory. Otherwise, there is no librealsense folder at all. I would suggest updating both the github and website instructions with this info.
Thank you for your help MartyG! It looks like I am finally set up for development.
-
Thank you, this post helped me get to through those unexplained steps. Did you manage to develop with this library at all? I can't seem to open the example files from xcode?
Please sign in to leave a comment.
Comments
6 comments