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 @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
                            • d.healeyD
                              d.healey @gorangrooves
                              last edited by

                              @gorangrooves said in "HISE path not set" error in Win batch compile script:

                              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?

                              The commandline won't work with spaces unless they are quoted or escaped.

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

                              Christoph HartC 1 Reply Last reply Reply Quote 0
                              • Christoph HartC
                                Christoph Hart @d.healey
                                last edited by

                                Yeah Iโ€˜m also always messing up the paths with whitespaces in my scripts. The good news is that once youโ€˜ve got the script working itโ€˜s a breeze until you come back to it a few months later and something broke :)

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

                                  @Christoph-Hart I hope that I can get away with just making the folder paths without white space.
                                  Changing project XML will require me to change the main container in the project, which will require me to change all references to it. Compiled plugins would also be affected, as will all my installer projects.

                                  @d-healey As I demonstrated above, quotes won't work, as part of the script works with them, then the other part works without them. It is impossible to run the script completely with or without the quotes if there are white spaces in the folder path. (I hope it is only the folder path white spaces....)

                                  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 said in "HISE path not set" error in Win batch compile script:

                                    hope that I can get away with just making the folder paths without white space.

                                    Did you try escaping the spaces?

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

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

                                      @d-healey let me try

                                      Goran Rista
                                      https://gorangrooves.com

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

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

                                        @d-healey No, that doesn't work either. The CMD uses ^ to escape, but is not being read by anything else, so that didn't work.
                                        What can of worms did I open?...

                                        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 Can you send me the project?

                                          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. I'll pack it up and dm you.

                                            Goran Rista
                                            https://gorangrooves.com

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

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

                                            27

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.7k

                                            Posts