OpenCascade header files missing

When I compile according to the command given by the official documentation, there is always an error, the specific information is:
– HarfBuzz (required): C:/msys64/mingw64/lib/libharfbuzz.dll.a
– : libngspice shared lib found: C:/msys64/mingw64/bin/libngspice-0.dll

*** OpenCascade header files missing ***
Verify your OpenCascade installation or pass CMake
the header directory as ‘-DOCC_INCLUDE_DIR=’

CMake Error at CMakeModules/FindOCC.cmake:171 (message):
Call Stack (most recent call first):
CMakeLists.txt:768 (find_package)

I don’t quite understand what this means is that I don’t have this development environment installed?

To build KiCAD you need opencascade or OCE installed from what I understand.
And, KiCAD defaults to looking for opencascade. If you want to use OCE Opencascade Community Edition, I believe you need to disable normal opencascade by using “-DKICAD_USE_OCC=OFF” in the cmake call. Note, OCE uses “-DOCE_INCLUDE_DIRS=” with an “s” to help find include files. You could just turn off OCC and see if it builds.

Edit: It does build with “-DKICAD_USE_OCC=OFF”

Tim S.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.