Forum
    • Categories
    • Register
    • Login

    CLANG errors on Plugin export

    Scheduled Pinned Locked Moved General Questions
    12 Posts 2 Posters 24 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.
    • J
      JamesC
      last edited by

      Morning all

      For the first time in a few projects I've an error on the mac side of compiling a vst instrument and wondered if anyone had any info/pointers as to what is the issue:

      [ARCHIVE 0 - Shared Code] Compiling PresetData.cpp
      ❌ clang: error: unable to execute command: Killed: 9
      ❌ clang: error: clang frontend command failed due to signal (use -v to see invocation)

      I'm on a silicon mac Sequoia15.7.4 running the latest commit xcode 16.4

      Windows side absolutely nice issue when compiling the vst

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @JamesC
        last edited by

        @JamesC Try an older version of xcode

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        J 2 Replies Last reply Reply Quote 0
        • J
          JamesC @David Healey
          last edited by

          @David-Healey Thanks will try that next

          1 Reply Last reply Reply Quote 0
          • J
            JamesC @David Healey
            last edited by

            @David-Healey SO rolled back as far as I can on this machine same errors. Its odd as other plugins exporting fine.

            This one relies on audio loop players and embedded audio files is this another possible cause of the issue?

            Thanks

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @JamesC
              last edited by

              @JamesC said in CLANG errors on Plugin export:

              This one relies on audio loop players and embedded audio files is this another possible cause of the issue?

              Could be. Make a minimal test project and gradually add the elements you think might be causing the issue. Clean the build folder between each recompile.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              J 1 Reply Last reply Reply Quote 0
              • J
                JamesC @David Healey
                last edited by

                @David-Healey Odd so I started doing that and each time nothing worked. Then I switched to removing audio files out of the folder. If I go over 20 audio files to embed thats whats causes the clang error.

                So I wonder what the work arounds are to having large amounts of embedded audio files, in this current project there are 154 audio files that are used in this plugin.

                David HealeyD 1 Reply Last reply Reply Quote 0
                • David HealeyD
                  David Healey @JamesC
                  last edited by

                  @JamesC 50mb is about the limit https://docs.hise.dev/working-with-hise/settings/project.html#embed-audio-files

                  Free HISE Bootcamp Full Course for beginners.
                  YouTube Channel - Public HISE tutorials
                  My Patreon - HISE tutorials

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    JamesC @David Healey
                    last edited by

                    @David-Healey ah ok so essentially revert to having a sampler instead, or audio wave form and let users load in the audio or their own audio also?

                    If that second option is the case, using a preset browser can users save the presets witht he adio they've uploaded priiding the fodler is kept consistent?

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @JamesC
                      last edited by

                      @JamesC You can include as many audio files as you need, but instead of embedding them you need to provide them as an AudioResource.dat file that you place into the app data folder.

                      @JamesC said in CLANG errors on Plugin export:

                      using a preset browser can users save the presets witht he adio they've uploaded priiding the fodler is kept consistent?

                      The built in preset system stores/restores the state of components on the interface that have saveInPreset enabled. So if you have a component with a reference to the audio file (a waveform for example) then it should be saved with the preset.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        JamesC @David Healey
                        last edited by

                        @David-Healey SO jsut so I can check I've got this right...

                        Go into export and export pooled files to binary resource.

                        Then at this point do I delete the audio files int the audio files folder and replace with the .dat before I compile? or leave everything where it is?

                        David HealeyD 1 Reply Last reply Reply Quote 0
                        • David HealeyD
                          David Healey @JamesC
                          last edited by

                          @JamesC Never delete your original audio files. Carry on in HISE as if nothing has changed, but when it comes time to compile and deliver your plugin, uncheck embed audio files, and have your installer place the .dat file in the app data folder.

                          Free HISE Bootcamp Full Course for beginners.
                          YouTube Channel - Public HISE tutorials
                          My Patreon - HISE tutorials

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            JamesC @David Healey
                            last edited by

                            @David-Healey Ah yes ok this makes sense thanks so much

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

                            35

                            Online

                            2.2k

                            Users

                            13.6k

                            Topics

                            117.9k

                            Posts