Error when compiling

I am pretty sure it’s something with my setup, not Horizon EDA. However, I could use some clues on what to look for to fix this (I’m compiling ‘green flash’ version with make clean; make -j 4). I have run full apt install from docs, gcc is version 9.3.0.

build/obj/src/import_step/step_importer.o
In file included from src/import_step/step_importer.cpp:1:
src/import_step/step_importer.hpp:3:10: fatal error: TDocStd_Document.hxx: No such file or directory
3 | #include <TDocStd_Document.hxx>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1009: build/obj/src/import_step/step_importer.o] Error 1
make: *** Waiting for unfinished jobs…

EDIT: I installed liboce-ocaf-lite-dev to fix above, now I have following issue:
build/obj/src/import_step/step_importer.o
In file included from src/import_step/step_importer.cpp:1:
src/import_step/step_importer.hpp:8:10: fatal error: XCAFApp_Application.hxx: No such file or directory
8 | #include <XCAFApp_Application.hxx>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

You’re missing opencascade / opencascade community edition.

Any idea where I need to put the source files?

I installed oce following Install oce on Ubuntu using the Snap Store | Snapcraft but error remains.

I don’t know how snap works, but why not install opencascade via apt? That’s how it’s done in the CI and known to work. See Building on Linux — horizon-eda 1.0 documentation for the required packages.

You might also want to try out the binary packages rather than building from source.

I copied apt-get install git build-essential libsqlite3-dev util-linux librsvg2-dev libcairomm-1.0-dev libepoxy-dev libgtkmm-3.0-dev uuid-dev libboost-dev libzmq5 libzmq3-dev libglm-dev libgit2-dev libcurl4-gnutls-dev liboce-ocaf-dev libpodofo-dev python3-dev libzip-dev git -y from all.yml and it fixed my issue.