# Help installing Open CV

**URL:** <https://forum.core-electronics.com.au/t/help-installing-open-cv/20556>\
**Category:** Uncategorized\
**Created:** [30 July 2024 14:04 UTC](https://forum.core-electronics.com.au/t/help-installing-open-cv/20556 "2024-07-30T14:04:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phitak276147](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Phitak276147](https://forum.core-electronics.com.au/u/Phitak276147)\
**Post date:** [30 July 2024 14:04 UTC](https://forum.core-electronics.com.au/t/help-installing-open-cv/20556/1 "2024-07-30T14:04:20Z")

</div>

im at step to install opencv

```auto
cmake -D CMAKE_BUILD_TYPE=RELEASE \
                                -D CMAKE_INSTALL_PREFIX=/usr/local \
                                -D INSTALL_PYTHON_EXAMPLES=ON \
                                -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-4.4.0/modules \
                                -D BUILD_EXAMPLES=ON ..
make -j $(nproc)

```

but when it installing like 20-30 min it’ll auto restart my raspberry pi and i can’t do the next step

```auto
**sudo make install && sudo ldconfig**
 **sudo reboot**

```

in the end how to fix it  
I’m using raspberry pi B model 4 8GB

---

<div class="post-metadata">

**Author:** ![lia262073](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lia262073](https://forum.core-electronics.com.au/u/lia262073)\
**Post date:** [30 July 2024 14:52 UTC](https://forum.core-electronics.com.au/t/help-installing-open-cv/20556/2 "2024-07-30T14:52:39Z")

</div>

Your Raspberry Pi should have adequate cooling. Use a heatsink and a fan if possible to prevent overheating.

---

<div class="post-metadata">

**Author:** ![Phitak276147](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@Phitak276147](https://forum.core-electronics.com.au/u/Phitak276147)\
**Post date:** [30 July 2024 15:03 UTC](https://forum.core-electronics.com.au/t/help-installing-open-cv/20556/3 "2024-07-30T15:03:52Z")

</div>

thanks you  
now i have another problems it said make: \*\*\* [Makefile:166: all] Error 2 what should i do to fix it

---

<div class="post-metadata">

**Author:** ![Jack](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/jack/32/9287_2.png) [@Jack](https://forum.core-electronics.com.au/u/Jack)\
**Post date:** [31 July 2024 23:41 UTC](https://forum.core-electronics.com.au/t/help-installing-open-cv/20556/4 "2024-07-31T23:41:09Z")

</div>

Hi Phitak,

Welcome to the forum! What Pi OS are you using? [This guide of ours](https://core-electronics.com.au/guides/object-identify-raspberry-pi/) was made for Buster, if you are using Bookworm it may be a bit trickier.
