Linux build of HISE

  • I just tried building on Linux and it gave this error

    ~/Desktop/HISE-master/projects/standalone/Builds/LinuxMakefile $ make
    $CXX is [clang++]
    Compiling DspUnitTests.cpp
    In file included from ../../../../hi_scripting/scripting/api/DspUnitTests.cpp:33:
    ../../JuceLibraryCode/JuceHeader.h:18:10: fatal error: 
          'hi_backend/hi_backend.h' file not found
    #include <hi_backend/hi_backend.h>
    1 error generated.
    Makefile:111: recipe for target 'build/intermediate/Debug/DspUnitTests_8fd29654.o' failed
    make: *** [build/intermediate/Debug/DspUnitTests_8fd29654.o] Error 1

    I then opened the project in the Linux version of Projucer, resaved it, and did the "make" again and it worked fine. I'm on Linux Mint 18. It plays fine with no lag using just ALSA and PulseAudio (no JACK). Well done! I believe you've made the best cross-platform sampler ever.

  • administrators

    Yes you'll need to resave the Projucer project files before compiling because it creates different paths in the header files for each platform. I'll probably remove the makefile from the repo so users are not tempted to take that shortcut (it was necessary for the Travis CI support).

    I also can hardly believe how easy this was, but this is mainly because of JUCE and its cross platform awesomeness 🙂

  • Will it take much tinkering to get the VST version working?

  • administrators

    <noob> Is VST available on Linux </noob>? I though it's only LV2 there...

  • From what I understand native Linux VSTs can be created -

  • Yes, you can compile native Linux VST/VSTi plugins. Rory Walsh's Cabbage environment might be worth a look for you, it's a JUCE-based DAW and environment for audio/MIDI development. It's powered by Csound, works with JACK and ALSA, and exports plugins in VST and LV2 formats.

    Doesn't JUCE take care of all the details ? IIRC I only need to specify the path to the VST SDK and I'm ready to roll, same as the Win/Mac builds.

  • administrators

    Alright I'll give it a shot.

  • administrators

    The latest commit should compile the VST plugin on Linux.

  • Excellent, I'll give it a whirl tomorrow 😄

  • Ok I've compiled the VST and it produces a .so file, I assume this is the Linux equivalent of a dll. Any idea which hosts support this format? I tried it in Reaper running under Wine but no luck.

  • @d-healey Right, that .so suffix indicates a Linux shared object file, i.e. the plugin in native Linux VST format. Reaper under Wine expects VST plugins in Windows DLL format, so you'll need to test your new plugin in Bitwig, Ardour, Qtractor, Tracktion, etc.



  • I've got a bit further with exporting a native Linux VSTi from the standalone. I'm failing now with this error :

    Export Error

    HISE image directory not found

    Any suggestions ?



  • administrators

    You'll need to specify the path of the HISE source code folder.

    But I am afraid you won't get satisfying results before I explicitely added the compile exporter for Linux (it involves creating a bash script and calling the system compilers xcodebuild and msbuild on the other OS (I think I'll be using clang on linux).

  • Okay, thanks Christoph. I got even a little further but wound up with this message :

    Export Error

    Compilation error

    The CLI reported this :

    Creating /home/dlphilp/MyFirstHISE/Binaries/Source/PresetData.h and /home/dlphilp/MyFirstHISE/Binaries/Source/PresetData.cpp from files in /home/dlphilp/MyFirstHISE/Binaries/temp...

    Adding preset: 4748 bytes
    Adding impulses: 22 bytes
    Adding externalFiles: 58 bytes
    Adding userPresets: 121 bytes
    Adding images: 10 bytes

    Total size of binary data: 4959 bytes
    JUCE Assertion failure in SettingsWindows.cpp:375
    ... (lots more of the same failure message)
    Couldn't get a file descriptor referring to the console



  • Btw, I just compiled and tested the VST. I ran a very simple test in Bitwig with one instance of the HISE plugin set up for the wavetable synthesizer with the Simple Reverb and the default EG (adjusted for slower attack and release times). I'm looping a MIDI track through it, sound is clean and clear. On to try a more complicated instrument.

    Edit: Tested the sampler, works fine.

    Also btw: Very nice work !!



  • Someone on the Reaper forum directed me to a program called Carla, it's a plugin host for Linux and I was able to successfully load the HISE Linux VST into it - now all I need to do is link Carla to Reaper 🙂

  • Greetings,

    I just read about HISE in the LinuxMusicians Forum and decided to join. In fact much more than that. For some years now me and a few other people worked on an open source sampler (based on sfz but more) ourselves but progression was slow because there were more pressing audio development software issues.
    I did not try HISE out yet but the fact that it exists and its license is GPLv3 pushes me in the direction to give up my own project, which would be a really good development so I can focus more on my sequencer.

    I am exited that there finally seems to be a serious sampler project that works on Linux. The Linux Audio stack sadly doesn't have this yet.

    Looking forward to it,
    Nils, Cologne (Germany)

    Cristoph, are you the film composer from Berlin?

  • administrators

    Hi Nils and welcome to the forum.

    It's funny how much feedback I am getting from you Linux guys - I thought audio on Linux was pretty much non existent, but it seems that was rather ignorant. I really need to step up my Linux game (right now I have just a crappy VM through VirtualBox which doesn't allow any kind of half-decent performance), but then I think I'll be further improving Linux support (it's pretty untested right now, I am just happy that it compiles 🙂

    And yupp it's me from Berlin - but right now I am in Munich for a theatre production 🙂 Have we met somewhere (I was attending the Soundtrack Cologne a few years back)?

  • Just dropping in to say I'm gonna give it a try too.
    Will keep you posted of my progress.

  • It is true that in absolute number of users linux audio is relatively small compared to win and osx. But the linux people are in general very tech-savvy, enthusiastic and know of the importance of feedback, especially in open source projects. You say "GPL" and the Linux people will come.

    No, we haven't met. I just googled your name (found your page from ~2013) to see if you are German, because your name sounds like you are. I think it is important to connect and network, especially when it comes to open source audio (linux or not). I am organizing an "Open Source Audio Meeting Cologne" every month and it would be fantastic to have you there as a talking guest one day. In our January meeting I will present to them HISE, or rather what I have learned until then.

Log in to reply





Looks like your connection to Forum was lost, please wait while we try to reconnect.