# Install OpenCV 4.9 on Raspberry PI 5 - C++ Version only

**URL:** <https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421>\
**Category:** C++\
**Tags:** raspberrypi\
**Created:** [February 10, 2024, 12:05am UTC](https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421 "2024-02-10T00:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoAbdol](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@MoAbdol](https://forum.opencv.org/u/MoAbdol)\
**Post date:** [February 10, 2024, 12:05am UTC](https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421/1 "2024-02-10T00:05:18Z")

</div>

I would like to install OpenCV 4.9 on a fresh Raspberry PI 5 (8 Gig RAM, 128 Gig storage). I dont need/want any Python, as I code in C++. If needed, I am OK with an older version, like 4.8 as well.  
I am looking for a clean-and-proven installation; preferably not building from source.

Thanks,  
Mo

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 10, 2024, 6:16am UTC](https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421/2 "2024-02-10T06:16:12Z")

</div>

> [@MoAbdol](#):
>
> I am looking for a clean-and-proven installation; preferably not building from source.

well, rather prepare to do the latter…  
(official, prebuild libs only exist for win32)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [February 10, 2024, 11:17am UTC](https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421/4 "2024-02-10T11:17:05Z")

</div>

what about `apt install libopencv`? if that’s too stale, go talk to whoever maintains the packages for debian/ubuntu/raspbian. that is beyond the scope of OpenCV.

---

<div class="post-metadata">

**Author:** ![serpent](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@serpent](https://forum.opencv.org/u/serpent)\
**Post date:** [February 13, 2024, 4:13am UTC](https://forum.opencv.org/t/install-opencv-4-9-on-raspberry-pi-5-c-version-only/16421/5 "2024-02-13T04:13:44Z")

</div>

You code in C++ and yet don’t want to compile from source?

Some docs on installing from source and build script here;

> **[GitHub - Qengineering/Install-OpenCV-Raspberry-Pi-64-bits: OpenCV 4.5...](https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-64-bits)**
>
> OpenCV 4.5 installation scripts for Raspberry Pi with 64-bit OS - Qengineering/Install-OpenCV-Raspberry-Pi-64-bits

[https://qengineering.eu/install%20opencv%20on%20raspberry%20pi%205.html](https://qengineering.eu/install%20opencv%20on%20raspberry%20pi%205.html)
