From 997d1eaca835f4583e55678b46bb7f2e0aabe987 Mon Sep 17 00:00:00 2001 From: Eran Date: Thu, 15 Dec 2022 10:50:55 +0200 Subject: [PATCH] PR #11217 from hsuys: docs for MSVC 2022 (cherry picked from commit bac0beae8eaa1b7812550898c854653d7777b0ba) --- doc/distribution_windows.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/distribution_windows.md b/doc/distribution_windows.md index 6dba8a75a9..018c00d811 100644 --- a/doc/distribution_windows.md +++ b/doc/distribution_windows.md @@ -23,26 +23,33 @@ After plugging the camera into a USB3 port, you should be able to see the newly * Click through several simple steps of the installer: 1. Intel® RealSense™ SDK 2.0 is distributed under the [Apache 2.0](../LICENSE) permissive open-source license: -![Step 1](./img/win_step1.PNG) + ![Step 1](./img/win_step1.PNG) 2. The SDK includes the RealSense Viewer, as well as development packages for various programming languages: -![Step 2](./img/win_step2.PNG) + ![Step 2](./img/win_step2.PNG) 3. Approve adding two shortcuts to your desktop: - ![Step 3](./img/win_step3.PNG) + ![Step 3](./img/win_step3.PNG) 4. Review before installing: -![Step 4](./img/win_step4.PNG) + ![Step 4](./img/win_step4.PNG) + +5. Open the `Intel® RealSense™ Samples` solution: -5. Open the `Intel® RealSense™ Samples`solution: + Note: Visual Studio 2022 uses the 64-bit `Program Files` folder rather than the 32-bit `Program Files (x86)` where librealsense is located.
+ To fix this, open `Program Files (x86)/Intel RealSense SDK 2.0/intel.realsense.prop` (elevated permissions may be needed) and change librealsenseSDK macro:
-![Step 5](./img/win_shortcuts.PNG) + * `$(ProgramFiles)\Intel RealSense SDK 2.0`
+ to
+ * `$(MSBuildProgramFiles32)\Intel RealSense SDK 2.0`
+ + ![Step 5](./img/win_shortcuts.PNG) 6. Press `F5` to compile and run the demos: -![Step 6](./img/win_samples.PNG) + ![Step 6](./img/win_samples.PNG) 7. Success!