hi @julian - in case you’re trying to build supercollider for an arm architecture, the homebrew installed (native) qt5 lacks Qt5WebEngine, which is necessary for supercollider’s help browser
if you can live without it there’s a compiler flag to ignore qt5 webengine
opened 08:32AM - 30 Sep 21 UTC
closed 08:53AM - 12 Jul 22 UTC
os: macOS
qt5
comp: build
Hi
This might be me being an absolute newbie at using MacOS, and if so I am … very sorry. But I am trying to compile SC on my Mac Mini M1 on MacOS 11.6 and it is not going so well.
At first I spent a long time trying to understand why cmake couldnt find C and CXX compilers (which then turned out to be because I hadnt run `sudo xcode-select --reset` and `sudo xcodebuild -license` to agree to Mac@s terms...) but now my main issue is that qt5webengine doesnt seem to be able to be found. I installed qt5 via homebrew `brew install qt5` and I tried setting the paths as suggested in `brew info qt5` but still no luck.
Did I miss something obvious here?
```
~/tmp/supercollider/build ☭ cmake -G Xcode -DCMAKE_PREFIX_PATH=`brew --prefix qt` -DSUPERNOVA=ON -DCMAKE_INSTALL_PREFIX=/Applications -DNATIVE=ON ..
-- SuperCollider Version: 3.12.1
-- Building from branch develop, commit hash is 3287b55ed
-- Please specify the build configuration in the next step
-- Compiling with Qt GUI
-- Using bundled boost
-- Using bundled yaml-cpp
-- HIDAPI components:
-- mac
-- hidapi_parser
-- Building with HID support
-- FFT library (scsynth): vDSP
-- Audio API (scsynth): coreaudio
-- Found fftw3f: /opt/homebrew/lib/libfftw3f.dylib
-- FFT library (supernova): FFTW
-- Audio API (supernova): portaudio
-- Found a homebrew install of readline /opt/homebrew/opt/readline
-- Found GNU Readline version 8.1: /opt/homebrew/opt/readline/lib/libreadline.dylib
CMake Error at /opt/homebrew/opt/qt@5/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5WebEngine" with
any of the following names:
Qt5WebEngineConfig.cmake
qt5webengine-config.cmake
Add the installation prefix of "Qt5WebEngine" to CMAKE_PREFIX_PATH or set
"Qt5WebEngine_DIR" to a directory containing one of the above files. If
"Qt5WebEngine" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
QtCollider/CMakeLists.txt:30 (find_package)
lang/CMakeLists.txt:184 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/mads/tmp/supercollider/build/CMakeFiles/CMakeOutput.log".
```