Items with no label
3338 Discussions

Run SDK 2.0 under visual studio

ABuer
Beginner
2,569 Views

My d435 runs under the viewer so I tried to run it under VS2017, so I followed these instructions :

https://www.intel.pl/content/www/pl/pl/support/articles/000030463/emerging-technologies/intel-realsense-technology.html How to Run Intel® RealSense™ SDK 2.0 Examples on Visual Studio 2017...

Win10

CMake 3.9.0-rc2

VS2017

It seems it should be quite straight forward but but I'm getting 142 errors LNK1120, LNK2001, LNK2019 am I missing something? Any additional configuration is required?

0 Kudos
1 Solution
EFoo1
Novice
1,216 Views

If you don't want to use CMake, there is another way.

Download this newly released installer [here](https://github.com/IntelRealSense/librealsense/releases/download/v2.16.2/Intel.RealSense.SDK-2.16.2.304.exe https://github.com/IntelRealSense/librealsense/releases/download/v2.16.2/Intel.RealSense.SDK-2.16.2.304.exe )

You will have these:

Depending on your version of Visual Studio, you might have to refactor the code.

View solution in original post

0 Kudos
6 Replies
MartyG
Honored Contributor III
1,216 Views

At what point in the instructions on the linked page do the errors occur, please? When you have generated the Librealsense SDK from source, or afterwards when you try to generate a program in the Examples folder? Thanks!

0 Kudos
EFoo1
Novice
1,217 Views

If you don't want to use CMake, there is another way.

Download this newly released installer [here](https://github.com/IntelRealSense/librealsense/releases/download/v2.16.2/Intel.RealSense.SDK-2.16.2.304.exe https://github.com/IntelRealSense/librealsense/releases/download/v2.16.2/Intel.RealSense.SDK-2.16.2.304.exe )

You will have these:

Depending on your version of Visual Studio, you might have to refactor the code.

0 Kudos
EFoo1
Novice
1,216 Views

If you want to manually compile the SDK code with a new project (Visual Studio > New Project > Empty Project), there is another way too. I took weeks to figure this out. Let me know if you have any problems with the instructions below:

  1. Create new Visual C++ Project (Recommended: Empty Project)
  2. Go to View > Other Windows > Property Manager
  3. Click on "Add Existing Property Sheet" icon
  4. Navigate to "C:\Program Files (x86)\Intel RealSense SDK 2.0"
  5. Add intel.realsense.props, now # include can be used

If you need other libraries like OpenGL/GLFW or Imgui or OpenCV, they included the .props file in the installer above too. Used to be slightly more complicated. But I have not tested using the .props file included with the installer, since I compiled with my own.

0 Kudos
MartyG
Honored Contributor III
1,216 Views

Thanks very much for your kind help with this, Eugene!

ABuer
Beginner
1,216 Views

Thank you HippoEugDev, it doesn't really answer why cmake build does not work but I used instalation file which you pointed and it worked just fine.

/message/592882# 592882
0 Kudos
EFoo1
Novice
1,216 Views

I did not use CMake, hence I couldn't answer your question specifically regarding it

0 Kudos
Reply