Compiling SC without Emacs support

I am trying to build SC from source on Arch Linux using the cmake flags and without EMacs support.

   $> cmake -DNATIVE=ON -DCMAKE_INSTALL_PREFIX=~/usr/local ..

I get the following error:

-- SuperCollider Version: 3.11.2
-- Building from branch develop, commit hash is f1a04e70d
-- Build type defaulting to "RelWithDebInfo"
-- Compiling with Qt GUI
-- Using bundled boost
-- Using bundled yaml-cpp
-- HIDAPI components:
--     linux hidraw
-- libudev stable: 1
-- Found UDev: /usr/lib/libudev.so
--    include: /usr/include
--     hidapi_parser
-- Building with HID support
-- Found fftw3f: /lib/libfftw3f.so
-- FFT library (scsynth): FFTW
-- Found jack: /usr/lib/libjack.so
-- Audio API (scsynth): jack
-- Found fftw3f: /lib/libfftw3f.so
-- FFT library (supernova): FFTW
-- Found jack: /usr/lib/libjack.so
-- Audio API (supernova): jack
-- Found GNU Readline version 8.1: /usr/lib/libreadline.so
-- Found Qt: /usr/lib/libQt5Core.so.5.15.2
-- sclang: Building with QtWebEngine
-- Compiling with Ableton Link support
-- Compiling with Readline support
-- Compiling with ALSA midi support
-- Building the Qt IDE
-- IDE: Building with QtWebEngine
CMake Error at editors/sc-el/el/CMakeLists.txt:23 (message):
  Emacs could not be found.

   (If emacs interface is not required, then set SC_EL=no)


-- Building with Sced for gedit 3 (UNIX)
-- Configuring incomplete, errors occurred!

-- Building with Sced for gedit 3 (UNIX)
-- Configuring incomplete, errors occurred!

If I add in the flag -SC_EL=no:

    $>  cmake -DNATIVE=ON  -SC_EL=no  -DCMAKE_INSTALL_PREFIX=~/usr/local ..

…the same error occurs. Clearly I am setting the SC_EL=no option incorrectly. What am I doing wrong? Thx in advance

You should pass -DSC_EL=NO. SC_EL is the option name, -D is the flag.

1 Like

Thanks; I should have spotted that. I guess I’m not used to seeing flags appended directly to their arguments :slight_smile: