HISE Logo Forum
    • Categories
    • Register
    • Login

    Updating to the latest HISE 3.0.3 build failure

    Scheduled Pinned Locked Moved General Questions
    24 Posts 4 Posters 1.1k 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.
    • T
      TNTHM @d.healey
      last edited by

      @d-healey First off this script is amazing and I think something like this would be a great addition to HISE in general. Thank you for sharing. It's awesome that it downloads and compiles the latest version.

      I am still getting an error, here is what I see in terminal:

      ▸ Compiling Main.cpp
      
      ⚠️  /Users/[My name]/Desktop/HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../hi_dsp_library/../hi_tools/hi_tools/MiscToolClasses.h:2780:50: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
      
              Range<int> estimatedRange(uptime, uptime + currentBlockSize * 3);
                                 ~~~~~~~~ ^~~~~~
      
      
      
      ⚠️  /Users/[My name]/Desktop/HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../hi_dsp_library/../hi_tools/hi_tools/MiscToolClasses.h:2780:35: implicit conversion loses integer precision: 'juce::int64' (aka 'long long') to 'int' [-Wshorten-64-to-32]
      
              Range<int> estimatedRange(uptime, uptime + currentBlockSize * 3);
                         ~~~~~~~~~~~~~~         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
      
      
      
      ⚠️  /Users/[My name]/Desktop/HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../hi_dsp_library/../hi_tools/hi_tools/MiscToolClasses.h:2784:37: implicit conversion loses integer precision: 'juce::int64' (aka 'long long') to 'int' [-Wshorten-64-to-32]
      
              if(!estimatedRange.contains(uptime))
                         ~~~~~~~~~~~~~~ ^~~~~~
      
      
      ▸ Compiling HiseEventBufferUnitTests.cpp
      ▸ Compiling DspUnitTests.cpp
      ▸ Compiling BinaryData.cpp
      ▸ Linking HISE
      ⚠️  ld: ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
      
      ❌  clang: error: unable to execute command: Abort trap: 6
      
      
      
      ❌  clang: error: linker command failed due to signal (use -v to see invocation)
      
      
      ** BUILD FAILED **
      
      
      The following build commands failed:
      	Ld /Users/[My name]/Desktop/HISE/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE normal (in target 'HISE Standalone - App' from project 'HISE Standalone')
      (1 failure)
      
      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @TNTHM
        last edited by d.healey

        @TNTHM Ok that error I have seen when using certain versions of xcode. Try updating (or downgrading) to a different version.

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

        T 2 Replies Last reply Reply Quote 0
        • T
          TNTHM @d.healey
          last edited by

          @d-healey great! I will do that. Is there a version of Xcode that you have successfully compiled 3.0.3 on?

          1 Reply Last reply Reply Quote 0
          • T
            TNTHM @d.healey
            last edited by

            Tldr for this thread:

            Upon trying to compile the source code for HISE 3.0.3 I was running into this error:

            Ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
            

            We also tried compiling through terminal directly which returned a similar error:

            ▸ Linking HISE
            ⚠️  ld: ignoring file ../../../../tools/faust/fakelib/libfaust.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
            
            ❌  clang: error: unable to execute command: Abort trap: 6
            
            
            
            ❌  clang: error: linker command failed due to signal (use -v to see invocation)
            
            
            ** BUILD FAILED **
            
            
            The following build commands failed:
            	Ld /Users/[My name]/Desktop/HISE/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE normal (in target 'HISE Standalone - App' from project 'HISE Standalone')
            (1 failure)
            

            The issue is with the version of Xcode being used to compile.

            I am on:

            Mac Intel i7, 2020
            Mac OS 12.1, Monterey
            HISE 3.0.3 source code
            
JUCE v6.1.4 ( comes with 3.0.3 source code)

            Xcode version that did not work:
            13.4.1

            Xcode version that does work:
            13.0

            @d-healey kindly provided the following code which will automatically download and compile the latest HISE developer source code from git:

            #!/bin/bash
            
            # Download HISE
            cd ~/Desktop
            git clone https://github.com/christophhart/HISE.git
            cd ./HISE
            git checkout develop
            
            # Extract SDKs
            unzip ./tools/SDK/sdk.zip -d ~/Desktop/HISE/tools/SDK
            
            # Build HISE
            ./tools/projucer/Projucer.app/Contents/MacOS/Projucer --resave ~/Desktop/HISE/projects/standalone/HISE\ Standalone.jucer
            cd ~/Desktop/HISE/projects/standalone/Builds/MacOSX
            xcodebuild -project "HISE Standalone.xcodeproj" -configuration Release -jobs 2 | xcpretty
            

            This can be saved in a text editor as:
            build_hise_osx.sh

            You can execute this script by saving it to your Documents folder and typing into terminal:
            sudo sh /Users/YOUR_USERNAME/Documents/build_hise_osx.sh

            Thank you @d-healey and @Lindon for helping me troubleshoot this. I appreciate your time and energy.

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

            20

            Online

            1.7k

            Users

            11.8k

            Topics

            102.6k

            Posts