HISE Logo Forum
    • Categories
    • Register
    • Login

    Trying to compile C++ DSP info in HISE/load into Scriptnode

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 76 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lurch
      last edited by

      Hi again,

      Don't know whether this goes under scriptnode or general - move it around as required!

      Trying to get a better understanding of using the compiler and DSP etc in HISE, I played with Faust and got some great results - next up is C++. I found the Mutable Instruments stuff online and figured I'd have a play as it's open source (awesome by the way).
      I dropped the reverb.h file from the Clouds folder (link below) into my 'DSP Networks/third party' folder, moved the items listed as #include into the same folder, and into Additionalsourcecode and tried to compile in HISE. This failed at 50% with unknown error, so I opened the producer project and fired it up in Xcode to see what errors are being thrown.
      It can't find one of the files, but the file is there at the specified path.
      It's looking for /stmlib/stmlib.h in the source folder, it's there, but it's erroring saying it can't find it.

      Any ideas? I really want to wrap my head around compiling DLLs in Hise because every time I touch the DLL compiler it fails and I loose a day troubleshooting.

      Links to the structure/github I'm talking about:

      Link Preview Image
      eurorack/clouds at master · pichenettes/eurorack

      Eurorack modules. Contribute to pichenettes/eurorack development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      Link to the stmlib file:
      https://github.com/pichenettes/stmlib/tree/e3bd7c9cc00e4364166f9905c0509b6ffd0535ec

      Build readout from HISE:

      > Create files
      > Sorting include dependencies
      > Copying third party files
      > Compiling dll plugin
      Re-saving file: /Volumes/RHR Audio/Development/Clouds Test/DspNetworks/Binaries/AutogeneratedProject.jucer
      Finished saving: Visual Studio 2022
      Finished saving: Xcode (macOS)
      Finished saving: Linux Makefile
      Compiling Abyss ...
      /Volumes/RHR Audio/Development/Clouds Test/DspNetworks/Binaries/batchCompileOSX.sh: line 9: /Volumes/RHR Audio/HISE/tools/Projucer/xcbeautify: Bad CPU type in executable
      ** BUILD FAILED **
      
      
      	CompileC /Volumes/RHR\ Audio/Development/Clouds\ Test/DspNetworks/Binaries/Builds/MacOSX/build/Abyss.build/Release/Abyss\ -\ Dynamic\ Library.build/Objects-normal/x86_64/Main.o /Volumes/RHR\ Audio/Development/Clouds\ Test/DspNetworks/Binaries/Source/Main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Abyss - Dynamic Library' from project 'Abyss')
      
      

      Build error in Xcode:

      /Volumes/RHR Audio/Development/Clouds Test/DspNetworks/ThirdParty/clouds/dsp/fx/fx_engine.h:34:10 'stmlib/stmlib.h' file not found
      
      

      Hise build 4.1 commit 03c420c1

      Help me Obi-Wan Scriptnodi, you're my only hope.

      L 1 Reply Last reply Reply Quote 0
      • L
        Lurch @Lurch
        last edited by

        @Lurch Forgot to mention, I've read all the C++ docs! I may have missed something though, so apologies if that's the case.

        1 Reply Last reply Reply Quote 0
        • O
          Orvillain
          last edited by

          stmlib is a library for Mutable DSP operations. I don't believe it is intended for desktop use.

          Your error seems to be "Bad CPU type in executable" - which would back that up. You'd need to port the code over, not just import the library.

          (I think!)

          L 1 Reply Last reply Reply Quote 1
          • L
            Lurch @Orvillain
            last edited by Lurch

            @Orvillain

            xcbeautify: Bad CPU type in executable
            

            refers to the 'make Xcode code pretty' module I think, I always get that error but it never stops compiling luckily.
            Bummer we can't use these then, they're open source and MIT licensed, and maths notoriously great!

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Lurch
              last edited by

              @Lurch said in Trying to compile C++ DSP info in HISE/load into Scriptnode:

              xcbeautify: Bad CPU type in executable

              This is because Christoph included the wrong build of xcbeautify with the HISE source code - and it still hasn't been resolved! I keep hitting this too.

              Follow instructions here - https://forum.hise.audio/topic/12653/bad-cpu-type-in-executable/5?_=1750006030194

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              22

              Online

              1.8k

              Users

              11.9k

              Topics

              103.9k

              Posts