Build Failed No Global Header File Was Included
-
Same error on Standalone and VST/AU Export
Any ideas?
/Users/cadencemusicent/HISE/hi_dsp_library/../hi_tools/../JUCE/modules/juce_core/system/juce_TargetPlatform.h:56:3: "No global header file was included!"
#error "No global header file was included!"
^** BUILD FAILED **
The following build commands failed:
CompileC /Users/cadencemusicent/Music/Top\ Secret/_VirtuScapeAudio/Rhapsody_Rhodecase_88_v1/Binaries/Builds/MacOSX/build/Rhodecase88.build/Release/Rhodecase88\ -\ Shared\ Code.build/Objects-normal/x86_64/factory.o /Users/cadencemusicent/Music/Top\ Secret/_VirtuScapeAudio/Rhapsody_Rhodecase_88_v1/AdditionalSourceCode/nodes/factory.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Rhodecase88 - Shared Code' from project 'Rhodecase88')
(1 failure) -
@virtuscapeaudio Have you tried cleaning the build folder?
-
@d-healey Just cleaned it. Failed again with this error:
/Users/cadencemusicent/HISE/hi_dsp_library/../hi_tools/../JUCE/modules/juce_core/system/juce_TargetPlatform.h:56:3: "No global header file was included!"
#error "No global header file was included!"
^** BUILD FAILED **
The following build commands failed:
CompileC /Users/cadencemusicent/Music/Top\ Secret/_VirtuScapeAudio/Rhapsody_Rhodecase_88_v1/Binaries/Builds/MacOSX/build/Rhodecase88.build/Release/Rhodecase88\ -\ Shared\ Code.build/Objects-normal/x86_64/factory.o /Users/cadencemusicent/Music/Top\ Secret/_VirtuScapeAudio/Rhapsody_Rhodecase_88_v1/AdditionalSourceCode/nodes/factory.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Rhodecase88 - Shared Code' from project 'Rhodecase88')
(1 failure) -
@virtuscapeaudio said in Build Failed No Global Header File Was Included:
com.apple.compilers.llvm.clang.1_0.compiler
I think the clang error points to an unsupported architecture.
-
@Dan-Korneff I recently had to change the supported architecture in the project autogenerated projucer file as well as the standalone hise one - then had to build in Xcode / VS rather than export directly from hise.
-
@DanH Really having trouble with this...I exported another test project just fine so it seems architecture settings are ok. I deleted the entire build folder and tried again but same issue.
Interesting thing is when I open in Xcode, I no londer see VST and AU targets, only Standalone.
any ideas?
-
@virtuscapeaudio What Xcode version are you using?
-
@d-healey XCode 13.1 on MacOS 12.2.1
-
@virtuscapeaudio Try updating it - or have you compiled successfully with that version before?
-
@d-healey All was working well with Xcode until I updated to latest develop branch of HISE so I wonder if something doesn't match with the actual project or something. Tested other projects and it works fine.
-
@virtuscapeaudio are you checking the autogenerated projucer file after hise fails to build? I found that I had to also change the architecture settings in there as well before then using Xcode (not hise) to build
-
@DanH Ive tried to change to x86_64 then build, and arm64 then build, and still no global header is included automatically. Also I don't see the VST and AU targets in Xcode, only Standalone
-
@virtuscapeaudio are you using faust? Which architecture is your system?
-
@DanH I'm not using faust...I'm on M1. I just exported a different project successfully from within HISE without any modifications. The build that fails doesn't get past the Global Header issue. What exactly is the Global Header? Perhaps there's something within the Project Settings of this particular .xml that I'm missing? How trivial is it to rebuild this project? I would hate to go down that road if its something as simple as fixing a setting the project_settings.xml or something (I'm really guessing, here)
-
@virtuscapeaudio it's really hard to tell without seeing what going on in your machine. Missing headers I think normally means it can't find files, which is often caused because it's looking in the wrong place.
Maybe Xcode 14.3 is worth a go if your OS supports that - I think it does.
What's the error you're getting now? Before it mentioned x86_64 which would mean a setting is wrong in the autoGen project I imagine...
You also probably don't see the au/vst3 options in Xcode because you attempted a standalone build and that's what it's created the autoGen project for.
You're definitely looking here, right?
-
@DanH so this is exactly what I mean in the image below, my computer is now ticking the x86_64 box by default for some reason...
-
Yes def the AutogeneratedPoroject.jucer
Yes that happened to me as well so I made sure only arm64 is selected and I chose Save and open in IDE, Build and get the same error.
-
@virtuscapeaudio so its nodes/factory.cpp that’s throwing the error? Still with x86_64?
-
@virtuscapeaudio Is it an Xcode issue if other projects work fine when exporting other projects?
@d-healey This project is built on a Rhapsody template and perhaps updating to the latest develop branch caused something to go awry? idk
-
@virtuscapeaudio is there a specific reason you updated the develop branch? If it was working fine before then perhaps its better to go back. I try to not update if I don't need to because I find you run into problems like this. Especially when you are close to a release...
Feel free to send me the project if you like, I can have a look, although I've never used a Rhapsody project before...