HISE Logo Forum
    • Categories
    • Register
    • Login

    "HISE path not set" error in Win batch compile script

    Scheduled Pinned Locked Moved General Questions
    37 Posts 3 Posters 1.7k 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.
    • gorangroovesG
      gorangrooves @d.healey
      last edited by

      @d-healey Yes, as strange as it seems, the HISE path needs to be within the HISE source folder. I started fresh again, as git is giving me issues when compiling HISE and changed the hise path location. I made progress. Not there yet, but getting better.

      Goran Rista
      https://gorangrooves.com

      Handy Drums and Handy Grooves
      https://library.gorangrooves.com

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @gorangrooves
        last edited by

        @gorangrooves HISE path means the HISE source folder.

        HISE path is C:\Users\goran\Desktop\HISE-Jan6-32ch.exe

        You've set it to the HISE executable.

        Christoph HartC gorangroovesG 2 Replies Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @Christoph Hart
          last edited by

          Oh, nevermind, just look at the source code:

          if (!hisePath.isDirectory())
          	{
          		if (isUsingCIMode())
          		{
          			auto appPath = File::getSpecialLocation(File::currentApplicationFile).getParentDirectory();
          
          			while (!appPath.isRoot() && !appPath.getChildFile("hi_core").isDirectory())
          			{
          				appPath = appPath.getParentDirectory();
          			}
          
          			if (!appPath.isRoot())
          				hisePath = appPath;
          

          so apparently if you're running in CI mode it expects the HISE executable to be a part of the HISE source folder (so when you compile it it's automatically located in the projects/standalone/... subfolder.

          1 Reply Last reply Reply Quote 0
          • gorangroovesG
            gorangrooves @Christoph Hart
            last edited by gorangrooves

            @Christoph-Hart Got you. I am using it now in the original subdirectory of HISE source folder where HISE gets compiled by default. I am no longer getting the same errors. The script generates the AutogeneratedProject and batchCompile, as well as everything else, but doesn't actually compile anything.

            It does this:

            HISE source is C:\HISE-develop
            HISE path is C:\HISE-develop\projects\standalone\Builds\VisualStudio2022\x64\Release\App\HISE.exe
            HISE SDK path set to C:\HISE-develop
            Exporting "Handy Drums- Flamenco Percussion" Standalone
            Loading the preset...
            
            Exporting the pooled resources...DONE
            Creating I:\AUDIO TEMPORARY\HISE PROJECTS\Hise VST- Handy Drums- Flamenco Percussion\Binaries\Source\PresetData.h and I:\AUDIO TEMPORARY\HISE PROJECTS\Hise VST- Handy Drums- Flamenco Percussion\Binaries\Source\PresetData.cpp from files in I:\AUDIO TEMPORARY\HISE PROJECTS\Hise VST- Handy Drums- Flamenco Percussion\Binaries\temp...
            
            Adding externalFiles: 564260 bytes
            Adding images: 1301342 bytes
            Adding impulses: 28 bytes
            Adding midiFiles: 20544 bytes
            Adding preset: 41154 bytes
            Adding samplemaps: 18455 bytes
            Adding userPresets: 2088 bytes
            
             Total size of binary data: 1947871 bytes
            'I:\AUDIO' is not recognized as an internal or external command,
            operable program or batch file.
            

            It seems that it is having issues with my folder path, despite the fact that it is able to do everything in there. Correct?

            Goran Rista
            https://gorangrooves.com

            Handy Drums and Handy Grooves
            https://library.gorangrooves.com

            gorangroovesG 1 Reply Last reply Reply Quote 0
            • gorangroovesG
              gorangrooves @gorangrooves
              last edited by

              @gorangrooves If I enclose the path in "", the script compiles. but gives an error that it can not save the preset.

              Goran Rista
              https://gorangrooves.com

              Handy Drums and Handy Grooves
              https://library.gorangrooves.com

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @gorangrooves
                last edited by

                @gorangrooves what does it say exactly?

                gorangroovesG 1 Reply Last reply Reply Quote 0
                • gorangroovesG
                  gorangrooves @Christoph Hart
                  last edited by

                  @Christoph-Hart Goodness, this is driving me nuts. I renamed the project folder to say just "Handy Drums- Flamenco Percussion", thus matching the name of the plugin/ preset etc.

                  The project path is set in quotation marks. I get this error.

                  HISE source is C:\HISE-develop
                  HISE path is C:\HISE-develop\projects\standalone\Builds\VisualStudio2022\x64\Release\App\HISE.exe
                  HISE SDK path set to C:\HISE-develop
                  ERROR: `"I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion"` is not a valid path
                  Exporting "Handy Drums- Flamenco Percussion" Standalone
                  
                  ==============================================================================
                  EXPORT ERROR: Preset file not found
                  ==============================================================================
                  
                  '"I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion"\Binaries\batchCompile.bat' is not recognized as an internal or external command,
                  operable program or batch file.
                  Exporting "Handy Drums- Flamenco Percussion" Plugin
                  
                  ==============================================================================
                  EXPORT ERROR: Preset file not found
                  ==============================================================================
                  
                  '"I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion"\Binaries\batchCompile.bat' is not recognized as an internal or external command,
                  operable program or batch file.
                  Press any key to continue . . .
                  

                  Goran Rista
                  https://gorangrooves.com

                  Handy Drums and Handy Grooves
                  https://library.gorangrooves.com

                  gorangroovesG 1 Reply Last reply Reply Quote 0
                  • gorangroovesG
                    gorangrooves @gorangrooves
                    last edited by

                    Then, I remove the quotation marks from the path, so that the project path is this:

                    set project_dir=I:\AUDIO TEMPORARY\HISE PROJECTS\%project_name%
                    

                    I get this:

                    HISE source is C:\HISE-develop
                    HISE path is C:\HISE-develop\projects\standalone\Builds\VisualStudio2022\x64\Release\App\HISE.exe
                    HISE SDK path set to C:\HISE-develop
                    Exporting "Handy Drums- Flamenco Percussion" Standalone
                    Loading the preset...
                    
                    Audio Driver Initialisation Error: The Audio driver  could not be opened.
                    DONE
                    
                    Exporting the pooled resources...DONE
                    Creating I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Source\PresetData.h and I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Source\PresetData.cpp from files in I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\temp...
                    
                    Adding externalFiles: 564260 bytes
                    Adding images: 1301342 bytes
                    Adding impulses: 28 bytes
                    Adding midiFiles: 20544 bytes
                    Adding preset: 41154 bytes
                    Adding samplemaps: 18455 bytes
                    Adding userPresets: 2088 bytes
                    
                     Total size of binary data: 1947871 bytes
                    'I:\AUDIO' is not recognized as an internal or external command,
                    operable program or batch file.
                    

                    This attempt generates those resources, but it will not compile.

                    Goran Rista
                    https://gorangrooves.com

                    Handy Drums and Handy Grooves
                    https://library.gorangrooves.com

                    gorangroovesG 1 Reply Last reply Reply Quote 0
                    • gorangroovesG
                      gorangrooves @gorangrooves
                      last edited by

                      @Christoph-Hart I then place the project path back into "". It starts compiling, creating this:

                      HISE source is C:\HISE-develop
                      HISE path is C:\HISE-develop\projects\standalone\Builds\VisualStudio2022\x64\Release\App\HISE.exe
                      HISE SDK path set to C:\HISE-develop
                      ERROR: `"I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion"` is not a valid path
                      Exporting "Handy Drums- Flamenco Percussion" Standalone
                      
                      ==============================================================================
                      EXPORT ERROR: Preset file not found
                      ==============================================================================
                      
                      Re-saving file: I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\AutogeneratedProject.jucer
                      Finished saving: Visual Studio 2022
                      Finished saving: Xcode (macOS)
                      Finished saving: Xcode (iOS)
                      Finished saving: Linux Makefile
                      Compiling 64bit Instrument plugin Handy Drums- Flamenco Percussion ...
                      MSBuild version 17.8.3+195e7f5a3 for .NET Framework
                      
                        CopyProtection.cpp
                        Plugin.cpp
                        PresetData.cpp
                        BinaryData.cpp
                        include_hi_core.cpp
                        include_hi_dsp_library_01.cpp
                        include_hi_dsp_library_02.cpp
                        include_hi_frontend.cpp
                        include_hi_lac.cpp
                        include_hi_lac_02.cpp
                        include_hi_rlottie.cpp
                        include_hi_rlottie_1.cpp
                        include_hi_rlottie_2.cpp
                        include_hi_rlottie_3.cpp
                        include_hi_rlottie_4.cpp
                        include_hi_rlottie_5.cpp
                        include_hi_rlottie_6.cpp
                        include_hi_rlottie_7.cpp
                        include_hi_rlottie_8.cpp
                        include_hi_rlottie_9.cpp
                        include_hi_rlottie_10.cpp
                        include_hi_rlottie_11.cpp
                        include_hi_rlottie_12.cpp
                        include_hi_rlottie_13.cpp
                        include_hi_rlottie_14.cpp
                        include_hi_rlottie_15.cpp
                        include_hi_rlottie_16.cpp
                        include_hi_rlottie_17.cpp
                        include_hi_rlottie_18.cpp
                        include_hi_rlottie_19.cpp
                        include_hi_rlottie_20.cpp
                        include_hi_rlottie_21.cpp
                        include_hi_rlottie_22.cpp
                        include_hi_rlottie_23.cpp
                        include_hi_rlottie_24.cpp
                        include_hi_rlottie_25.cpp
                        include_hi_rlottie_26.cpp
                        include_hi_rlottie_27.cpp
                        include_hi_rlottie_28.cpp
                        include_hi_rlottie_29.cpp
                        include_hi_rlottie_30.cpp
                        include_hi_rlottie_31.cpp
                        include_hi_rlottie_32.cpp
                        include_hi_rlottie_33.cpp
                        include_hi_rlottie_34.cpp
                        include_hi_rlottie_35.cpp
                        include_hi_scripting_01.cpp
                        include_hi_scripting_02.cpp
                        include_hi_scripting_03.cpp
                        include_hi_scripting_04.cpp
                        include_hi_snex.cpp
                        include_hi_snex_62.cpp
                        include_hi_streaming.cpp
                        include_hi_tools.cpp
                        include_hi_zstd_1.cpp
                        include_hi_zstd_2.cpp
                        include_hi_zstd_3.cpp
                        include_juce_audio_basics.cpp
                        include_juce_audio_devices.cpp
                        include_juce_audio_formats.cpp
                        include_juce_audio_plugin_client_utils.cpp
                        include_juce_audio_processors.cpp
                        include_juce_audio_utils.cpp
                        include_juce_core.cpp
                        include_juce_cryptography.cpp
                        include_juce_data_structures.cpp
                        include_juce_dsp.cpp
                        include_juce_events.cpp
                        include_juce_graphics.cpp
                        include_juce_gui_extra.cpp
                        include_juce_opengl.cpp
                        include_juce_osc.cpp
                        include_juce_product_unlocking.cpp
                      C:\HISE-develop\hi_tools\hi_neural\RTNeural\modules\xsimd\arch\xsimd_sse2.hpp(1024,9): warning C4068: unknown pragma 'c
                      lang' [I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Builds\VisualStudio2022\Handy Drums-
                      Flamenco Percussion_SharedCode.vcxproj]
                        (compiling source file '../../JuceLibraryCode/include_hi_tools.cpp')
                      
                      C:\HISE-develop\hi_tools\hi_neural\RTNeural\modules\xsimd\arch\xsimd_sse2.hpp(1025,9): warning C4068: unknown pragma 'c
                      lang' [I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Builds\VisualStudio2022\Handy Drums-
                      Flamenco Percussion_SharedCode.vcxproj]
                        (compiling source file '../../JuceLibraryCode/include_hi_tools.cpp')
                      
                      C:\HISE-develop\hi_tools\hi_neural\RTNeural\modules\xsimd\arch\xsimd_sse2.hpp(1055,9): warning C4068: unknown pragma 'c
                      lang' [I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Builds\VisualStudio2022\Handy Drums-
                      Flamenco Percussion_SharedCode.vcxproj]
                        (compiling source file '../../JuceLibraryCode/include_hi_tools.cpp')
                      
                        include_hi_snex_60.c
                        include_hi_snex_61.c
                        include_juce_gui_basics.cpp
                        Handy Drums- Flamenco Percussion_SharedCode.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percuss
                        ion\Binaries\Compiled\Shared Code\Handy Drums- Flamenco Percussion.lib
                        include_juce_audio_plugin_client_VST3.cpp
                           Creating library .\..\..\Compiled\VST3\Handy Drums- Flamenco Percussion.lib and object .\..\..\Compiled\VST3\Handy
                         Drums- Flamenco Percussion.exp
                        Generating code
                      C:\HISE-develop\hi_scripting\scripting\scriptnode\dynamic_elements\DynamicRoutingNodes.h(126): warning C4715: 'scriptno
                      de::duplilogic::dynamic::shouldUpdateNumClones': not all control paths return a value [I:\AUDIO TEMPORARY\HISE PROJECTS
                      \Handy Drums- Flamenco Percussion\Binaries\Builds\VisualStudio2022\Handy Drums- Flamenco Percussion_VST3.vcxproj]
                      C:\HISE-develop\hi_scripting\scripting\engine\JavascriptEngineCustom.cpp(839): warning C4715: 'hise::HiseJavascriptEngi
                      ne::RootObject::InlineFunction::ParameterReference::getResult': not all control paths return a value [I:\AUDIO TEMPORAR
                      Y\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\Builds\VisualStudio2022\Handy Drums- Flamenco Percussion_VST3
                      .vcxproj]
                        Finished generating code
                        Handy Drums- Flamenco Percussion_VST3.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Bi
                        naries\Compiled\VST3\Handy Drums- Flamenco Percussion.vst3
                      Exporting "Handy Drums- Flamenco Percussion" Plugin
                      
                      ==============================================================================
                      EXPORT ERROR: Preset file not found
                      ==============================================================================
                      
                      Re-saving file: I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\AutogeneratedProject.jucer
                      Finished saving: Visual Studio 2022
                      Finished saving: Xcode (macOS)
                      Finished saving: Xcode (iOS)
                      Finished saving: Linux Makefile
                      Compiling 64bit Instrument plugin Handy Drums- Flamenco Percussion ...
                      MSBuild version 17.8.3+195e7f5a3 for .NET Framework
                      
                        Handy Drums- Flamenco Percussion_SharedCode.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percuss
                        ion\Binaries\Compiled\Shared Code\Handy Drums- Flamenco Percussion.lib
                        Handy Drums- Flamenco Percussion_VST3.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Bi
                        naries\Compiled\VST3\Handy Drums- Flamenco Percussion.vst3
                      Press any key to continue . . .
                      

                      It compiles only vst3 plugin. If you notice from the console print, it was supposed to compile standalone, but it output vst3 instead, probably twice, as there is no app compiled, but only the vst3.

                      Goran Rista
                      https://gorangrooves.com

                      Handy Drums and Handy Grooves
                      https://library.gorangrooves.com

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

                        Is the project name exactly the same as the project xml?

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

                        gorangroovesG 1 Reply Last reply Reply Quote 0
                        • gorangroovesG
                          gorangrooves @d.healey
                          last edited by

                          @d-healey Yes.

                          Goran Rista
                          https://gorangrooves.com

                          Handy Drums and Handy Grooves
                          https://library.gorangrooves.com

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

                            @gorangrooves

                            %hise_path% export_ci "%project_dir%\XmlPresetBackups\%project_name%.xml" -t:standalone -a:x64 -p:""

                            What is -p:""?

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

                            gorangroovesG 1 Reply Last reply Reply Quote 0
                            • gorangroovesG
                              gorangrooves @d.healey
                              last edited by

                              @d-healey I don't know. You tell me, it is your script 😂

                              Goran Rista
                              https://gorangrooves.com

                              Handy Drums and Handy Grooves
                              https://library.gorangrooves.com

                              d.healeyD 2 Replies Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @gorangrooves
                                last edited by

                                @gorangrooves lol I just checked, apparently that's what we need for exporting standalone, so all good there.

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

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

                                  @gorangrooves So you get nothing output in Binaries\Compiled\App?

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

                                  gorangroovesG 1 Reply Last reply Reply Quote 0
                                  • gorangroovesG
                                    gorangrooves @d.healey
                                    last edited by

                                    @d-healey Correct. Nothing gets output there.

                                    Goran Rista
                                    https://gorangrooves.com

                                    Handy Drums and Handy Grooves
                                    https://library.gorangrooves.com

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

                                      @gorangrooves What happens if you comment out the VST3 compile, does it build the standalone then?

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

                                      gorangroovesG 1 Reply Last reply Reply Quote 0
                                      • gorangroovesG
                                        gorangrooves @d.healey
                                        last edited by

                                        @d-healey It doesn't compile.

                                        HISE source is C:\HISE-develop
                                        HISE path is C:\HISE-develop\projects\standalone\Builds\VisualStudio2022\x64\Release\App\HISE.exe
                                        HISE SDK path set to C:\HISE-develop
                                        ERROR: `"I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion"` is not a valid path
                                        Exporting "Handy Drums- Flamenco Percussion" Standalone
                                        
                                        ==============================================================================
                                        EXPORT ERROR: Preset file not found
                                        ==============================================================================
                                        
                                        Re-saving file: I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Binaries\AutogeneratedProject.jucer
                                        Finished saving: Visual Studio 2022
                                        Finished saving: Xcode (macOS)
                                        Finished saving: Xcode (iOS)
                                        Finished saving: Linux Makefile
                                        Compiling 64bit Instrument plugin Handy Drums- Flamenco Percussion ...
                                        MSBuild version 17.8.3+195e7f5a3 for .NET Framework
                                        
                                          Handy Drums- Flamenco Percussion_SharedCode.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percuss
                                          ion\Binaries\Compiled\Shared Code\Handy Drums- Flamenco Percussion.lib
                                          Handy Drums- Flamenco Percussion_VST3.vcxproj -> I:\AUDIO TEMPORARY\HISE PROJECTS\Handy Drums- Flamenco Percussion\Bi
                                          naries\Compiled\VST3\Handy Drums- Flamenco Percussion.vst3
                                        Press any key to continue . . .
                                        

                                        Goran Rista
                                        https://gorangrooves.com

                                        Handy Drums and Handy Grooves
                                        https://library.gorangrooves.com

                                        gorangroovesG 1 Reply Last reply Reply Quote 0
                                        • gorangroovesG
                                          gorangrooves @gorangrooves
                                          last edited by

                                          @gorangrooves Perhaps it is using outdated AutogeneratedProject and batchCompile, as it didn't rebuild those.
                                          I have to specify the path without "" to build those resources, then enclose the path in "" to compile the instrument.
                                          Let me re-run both of those.

                                          Goran Rista
                                          https://gorangrooves.com

                                          Handy Drums and Handy Grooves
                                          https://library.gorangrooves.com

                                          gorangroovesG 1 Reply Last reply Reply Quote 0
                                          • gorangroovesG
                                            gorangrooves @gorangrooves
                                            last edited by

                                            @d-healey Removing the code to generate the vst3, managed to compile the standalone app.

                                            Unfortunately, this process is worse than manual 😂

                                            @Christoph-Hart Am I correct to conclude that compiling using CI mode does not handle any spaces in the path folder names and perhaps in the project name?

                                            I'll have to rename my folders to exclude spaces to see if that does the trick.

                                            Goran Rista
                                            https://gorangrooves.com

                                            Handy Drums and Handy Grooves
                                            https://library.gorangrooves.com

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            17

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.7k

                                            Posts