"HISE path not set" error in Win batch compile script
-
@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.
-
Is the project name exactly the same as the project xml?
-
@d-healey Yes.
-
%hise_path% export_ci "%project_dir%\XmlPresetBackups\%project_name%.xml" -t:standalone -a:x64 -p:""
What is
-p:""
? -
@d-healey I don't know. You tell me, it is your script
-
@gorangrooves lol I just checked, apparently that's what we need for exporting standalone, so all good there.
-
@gorangrooves So you get nothing output in
Binaries\Compiled\App
? -
@d-healey Correct. Nothing gets output there.
-
@gorangrooves What happens if you comment out the VST3 compile, does it build the standalone then?
-
@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 . . .
-
@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. -
@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.
-
@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.
-
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 :)
-
@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....)
-
@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?
-
@d-healey let me try
-
@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?... -
@gorangrooves Can you send me the project?
-
@d-healey Yes. I'll pack it up and dm you.