-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
configure CMake #9023
Comments
Hi @rain0902 As you are using Windows, you may not need to build librealsense with CMake from source as there is an automated installer file for Windows. It can be found in the Assets file list at the bottom of the information listing for each SDK version on the Releases page. https://github.com/IntelRealSense/librealsense/releases Downloading and running the file will take you through a process where you just need to keep clicking 'Next' if you do not want to make changes to the defaults, until you reach the end of the installation process after a few clicks and librealsense is ready to use immediately. If you do need to build librealsense on Windows from source code using CMake though then the guide in the link below can be followed. https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_windows.md You should be able to skip the section of the guide about enabling metadata, as you can do so in the RealSense Viewer tool instead after the SDK has been installed. In regard to the CMake error that you wrote about if you still require an answer to that question after reading the links above then could you provide information please about the steps that you took before the error occurred? Thanks! |
Hello, first of all thank you for your reply. I‘m sorry, I didn’t make it clear in the previous letter. I want to controll the RealSense Cameras with Matlab R2020b in Windows 10. This is the link: But I don't know how to do the first step of building from Source, which is "Download the Git repository. Opt in the Matlab wrapper for LibRs with cmake .. -D... -DBUILD_MATLAB_BINDINGS:BOOL=ON when configuring CMake.". Is there a detailed explanation?Please.Thank you very much! |
Hi @rain0902 You may find it easier to install the MATLAB wrapper as part of the automated RealSense SDK installer file's installation process.
https://github.com/IntelRealSense/librealsense/releases
If you want to keep using a particular version and do not want to upgrade to a newer one then simply select the version that you were already using, as the installer will overwrite the previous installation.
If there is a tick beside it then click Next to continue the installation process and keep simply clicking Next until it is shortly completed.
C: > Program Files (x86) > Intel RealSense SDK 2.0 > matlab
Alternatively, you can copy and paste this folder to a location on your computer where MATLAB can find it. I would add that if you have already used the automated installer file to install the SDK on Windows then the MATLAB wrapper is likely to have already been installed at C: > Program Files (x86) > Intel RealSense SDK 2.0 > matlab as a default installation option, in which case you could skip stages 1-5 without installing the SDK again and simply go straight to point 6 at the end. |
Hello, thank you very much. I have completed these six steps. But I still don’t know how to do the intermediate steps before the guidance in #2400 I found the link https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab#getting-started-with-realsense-sdk20-for-matlab |
You do not need to build the MATLAB wrapper from source code if you have installed it with the automated SDK installer. The Getting Started instructions offer the choice of installing with source code or the Windows installer. You do not need to perform both. Are you able to find the SDK's folder location on your computer by right-clicking on the RealSense Viewer launch shortcut icon on your Windows desktop and selecting the Open file location option from the menu, please? |
Yes, I can find it, and it is in C:\Program Files (x86)\Intel RealSense SDK 2.0\tools |
Thanks very much for the update! |
Issue Description
An error occurred when configuring CMake.As follows:
CMake Error: Cannot open file for write: C:/Program Files/Realsense/librealsense-master/CMakeCache.txt.tmpa9ecf
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineSystem.cmake:203 (file):
file failed to open for writing (No such file or directory):
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
CMake Error: Could not open file for write in copy operation C:/Program Files/Realsense/librealsense-master/CMakeFiles/3.20.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/CMakeDetermineSystem.cmake:215 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
CMake Error at CMakeLists.txt:3 (project):
Failed to make directory:
Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: C:/Program Files/Realsense/librealsense-master/CMakeCache.txt.tmpec537
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. C:/Program Files/Realsense/librealsense-master/CMakeCache.txt
CMake Error: : System Error: Permission denied
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. C:/Program Files/Realsense/librealsense-master/CMakeCache.txt
CMake Error: : System Error: Permission denied
Why does this problem occur? How to solve it?Thank you!
And I don’t know how to do the first step of Building from Source. Is there a detailed explanation?
The text was updated successfully, but these errors were encountered: