# Trying to build the BasicApp sample on Raspberry Pi 4 (rpi os / Linux)

**URL:** <https://discourse.libcinder.org/t/trying-to-build-the-basicapp-sample-on-raspberry-pi-4-rpi-os-linux/1840>\
**Category:** Using Cinder\
**Created:** [July 22, 2021, 11:24pm UTC](https://discourse.libcinder.org/t/trying-to-build-the-basicapp-sample-on-raspberry-pi-4-rpi-os-linux/1840 "2021-07-22T23:24:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Svintaj](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Svintaj](https://discourse.libcinder.org/u/Svintaj)\
**Post date:** [July 22, 2021, 11:24pm UTC](https://discourse.libcinder.org/t/trying-to-build-the-basicapp-sample-on-raspberry-pi-4-rpi-os-linux/1840/1 "2021-07-22T23:24:10Z")

</div>

I have successfully built Cinder lib with:

```auto
cmake -DCINDER_TARGET_GL=es3-rpi -S . -B ../../build/ ..
cmake -DCINDER_TARGET_GL=es3-rpi -DCMAKE_BUILD_TYPE=Release -S . -B ../../build/ ..
make -j3

```

But when trying to build the BasicApp sample with:

```auto
cmake -DCINDER_TARGET_GL=es3-rpi -S . -B ../../build/ .. (From BasicApp/proj/cmake)
make -j3 (From BasicApp/build)

```

**I get this error:**

- _**undefined reference to `std::filesystem::\_\_cxx11::path::has\_parent\_path() const’**_

and it seems to originate from:

> <https://github.com/cinder/Cinder/blob/bb15730b3ff6865ee9f47874713d5ebf6ab6c3b0/src/cinder/app/Platform.cpp#L146>

I have tried to build with booth GCC and Clang, resulting in the same error.  
Any ideas on how to fix this?

---

<div class="post-metadata">

**Author:** ![Svintaj](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Svintaj](https://discourse.libcinder.org/u/Svintaj)\
**Post date:** [August 1, 2021, 12:07am UTC](https://discourse.libcinder.org/t/trying-to-build-the-basicapp-sample-on-raspberry-pi-4-rpi-os-linux/1840/2 "2021-08-01T00:07:39Z")

</div>

Ok, I had to **force the compiler to use C++11** , now it works!  
I changed the CINDER\_CXX\_FLAGS in the file: Cinder/proj/cmake/ **libcinder\_target.cmake**  
Then I **re-build Cinder libs** and then I could finally build The BasicApp sample! 😀

Other than that problem follow this great guide by @num3ric to build Cinder on Raspberry Pi 4:  
[https://github.com/cinder/Cinder/blob/bb15730b3ff6865ee9f47874713d5ebf6ab6c3b0/docs/htmlsrc/guides/linux-notes/rpi4.html](https://github.com/cinder/Cinder/blob/bb15730b3ff6865ee9f47874713d5ebf6ab6c3b0/docs/htmlsrc/guides/linux-notes/rpi4.html) By the way why isn’t that guide out on this libcinder page: [Cinder on Linux](https://libcinder.org/docs/guides/linux-notes/index.html) …it should be?
