Skip to content

Build memory issue

I am working to try to add a camera plug to this repository, however I cannot get the build to work as expected. When we get to the stage where snapcraft is building wpe-webkit, it uses "-j 16" regardless of any cmake env variables I add to the cmake-parameeters or build-environment.

I also attempted to use multipass in lieu of lxd in order to utilize SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY and SNAPCRAFT_BUILD_ENVIRONMENT_CPU, which successfully stops my computer from crashing, but fails due to OOM while building wpe-webkit.

Any advice on what I am doing wrong?