# Building from source (macports)

**URL:** <https://librepcb.discourse.group/t/building-from-source-macports/910>\
**Category:** Project\
**Created:** [March 26, 2025, 9:38am UTC](https://librepcb.discourse.group/t/building-from-source-macports/910 "2025-03-26T09:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chriskuku](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chriskuku](https://librepcb.discourse.group/u/chriskuku)\
**Post date:** [March 26, 2025, 9:38am UTC](https://librepcb.discourse.group/t/building-from-source-macports/910/1 "2025-03-26T09:38:47Z")

</div>

After I downloaded and unpacked the sources (1.3.0) I tried to build and I’m getting:

```auto
- Using system OpenCASCADE (OCCT 7.8.0)
CMake Error at cmake/FindOpenCascade.cmake:22 (message):
  Cannot use OpenCascade 7.8.0 because it contains a critical bug. Please
  use a different version (or if this is not possible, try OCE instead of
  OCCT).
Call Stack (most recent call first):
  CMakeLists.txt:164 (find_package)

-- Configuring incomplete, errors occurred!

```

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [March 26, 2025, 9:56am UTC](https://librepcb.discourse.group/t/building-from-source-macports/910/2 "2025-03-26T09:56:10Z")

</div>

Hmm the error message should be pretty clear… You need to either downgrade or upgrade the `opencascade` library to another version because 7.8.0 is broken (not our fault). On formulae.brew.sh it seems 7.9.0 is available which should compile fine.
