# Librealsense block?

**URL:** <https://discourse.libcinder.org/t/librealsense-block/1218>\
**Category:** CinderBlocks\
**Created:** [July 13, 2018, 10:04am UTC](https://discourse.libcinder.org/t/librealsense-block/1218 "2018-07-13T10:04:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [July 13, 2018, 10:04am UTC](https://discourse.libcinder.org/t/librealsense-block/1218/1 "2018-07-13T10:04:14Z")

</div>

Is someone working on a CinderBlock for librealsense? I’m planning on using the camera from Cinder and about to start working on this.

-Gabor

---

<div class="post-metadata">

**Author:** ![paul.houx](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/paul.houx/32/31_2.png) [@paul.houx](https://discourse.libcinder.org/u/paul.houx)\
**Post date:** [July 13, 2018, 3:10pm UTC](https://discourse.libcinder.org/t/librealsense-block/1218/2 "2018-07-13T15:10:13Z")

</div>

It’s quite easy to download a [pre-built version](https://github.com/IntelRealSense/librealsense/releases) and add the library to your project. RealSense’s documentation has a few nice [samples](https://github.com/IntelRealSense/librealsense/tree/master/examples) to get you up and running. A seasoned veteran like yourself should be able to do this in a few hours. 🙂

Recently I used the [RealSense SDK](https://github.com/IntelRealSense/librealsense) myself. I decided to build the library myself, so that I was certain to have 64-bit support. Again, this was easy. The SDK comes with support for CMake and is easy to build. I used the following command:

```auto
cmake ".\CMakeLists.txt" -G "Visual Studio 14 2015 Win64"

```

TL;DR: I don’t think you need a Cinder block for it. But let me know if you are having trouble. I might create a quick 'n dirty block for it to help you out.

-Paul

P.S.: good to know: most classes in the SDK use _implicit shared pointers_, so they use an internal shared pointer and are pretty lightweight when copied. The SDK also comes with a nice concurrent buffer (`rs2::frame_queue`) which can be used to pass captured frames from one thread to another.

---

<div class="post-metadata">

**Author:** ![benjaminbojko](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/benjaminbojko/32/591_2.png) [@benjaminbojko](https://discourse.libcinder.org/u/benjaminbojko)\
**Post date:** [July 13, 2018, 3:23pm UTC](https://discourse.libcinder.org/t/librealsense-block/1218/3 "2018-07-13T15:23:56Z")

</div>

We’ve been working on a separate oF add-on and were going to port that to Cinder for an upcoming project, but likely not until late September. Like @paul.houx said, getting started was pretty straightforward, but it would be great to have a basic block. Am excited to see more folks use these cameras now (and seeing them in stock in more places). We’ll see if we get around to sharing our oF add-on here later today if it helps; it’s still pretty basic itself.

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [July 13, 2018, 4:28pm UTC](https://discourse.libcinder.org/t/librealsense-block/1218/4 "2018-07-13T16:28:53Z")

</div>

Thanks guys! Thank you Paul for the suggestions.
