Errors trying to compile standalone app on MacOS- XCode 14.1
-
@Christoph-Hart
I compiled HISE standalone with no problems on MacOS, Ventura, using the latest XCode 14.1. I used HISE develop branch downloaded about an hour or so ago.However, compiling my standalone app fails with the following errors.
/Binaries/Source/Plugin.cpp:6:57 Use of undeclared identifier 'PresetData'
The relevant code:
DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::AudioFiles, PresetData::impulses, PresetData::impulsesSize); DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::Images, PresetData::images, PresetData::imagesSize); DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::MidiFiles, PresetData::midiFiles, PresetData::midiFilesSize); DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::SampleMaps, PresetData::samplemaps, PresetData::samplemapsSize); DEFINE_EMBEDDED_DATA(hise::FileHandlerBase::Scripts, PresetData::externalFiles, PresetData::externalFilesSize);
Preset data errors:
/Binaries/Source/PresetData.cpp:29:1 Expected unqualified-id
Code on line 29:
5,27,89,175,
Preset data error 2:
/Binaries/Source/PresetData.cpp:4631:141 Extraneous closing brace ('}')
Code on line 4631:
114,107,100,111,119,110,68,111,99,115,78,101,116,119,111,114,107,115,0,0,0,5,240,3,130,154,104,26,3,156,183,218,121,88,133,233,93,17,2,0,0};
And lucky last:
/Binaries/Source/PresetData.cpp:4632:55 Use of undeclared identifier 'temp1'
Code on line 4632:
const char* PresetData::externalFiles = (const char*) temp1;
I am off to try to compile a plugin and see if that works ok.
-
@gorangrooves Try cleaning the build folder, it looks like some intermediate autogenerated files cause some glitching.
-
@Christoph-Hart Ok. I'll give that a shot. I got the same errors for the plugins.
-
@gorangrooves So, when trying to export from HISE, I noticed that the export failed and I get this line in the terminal.
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
I checked that directory and I have Ruby version 2.6.
When trying to compile the plugins from the autogenerated project using XCode, I still get the same Preset data errors. Maybe this is all related?
Should I be hunting for Ruby 2.3 or change something to require Ruby 2.6?
-
Not having success installing Ruby v 2.3, so if possible, changing the required version to 2.6 would probably do the trick. Where would I do that?
-
@Christoph-Hart Apparently even the Ruby 2.6 version is no longer maintained, as the latest is 3.12. It would make sense to move over to it if practical.
-
This post is deleted! -
Can you install the older version via homebrew?
-
@d-healey I got as far as installing the version 2.3 using Homebrew, but it is not happening. It seems that it may no longer be avaliable on the Ruby server.
-
@d-healey Would you please be able to tell me what version of Ruby you have on your system here:
/System/Library/Frameworks/Ruby.framework/Versions/
I wonder if I duplicate the "2.6" folder and rename it to "2.3", it will fix the problem
-
@gorangrooves I'm using Monterey and Xcode 13.1 so my Ruby version is probably not relevant.
-
@d-healey I think it is relevant. If your version is 2.3, then something needs to be changed with HISE to work with 2.6 or other versions.
If your version is other than 2.3 and still working, then the problem could be more my system-specific. -
@gorangrooves Ok, I'll check later this evening and let you know.
-
@gorangrooves I have version 2.6
-
@d-healey Thank you. That is good to know. So, you have the same as me. I am now unable to export projects on Win either with the latest HISE build, so let us see if this issue gets somewhat resolved after Christoph does some tinkering.
-
I'm having no issues compiling here
-
Not having success with Mac builds. I copied the project to an SSD attached to my Mac to rule out that problem and cleaned up the build folder. I am targeting both Apple silicon and Intel. These are the errors I am getting for all formats I am trying to compile (VST, VST3, AU, AUv3, AAX).
Showing Recent Errors Only Undefined symbol: _ippFree Undefined symbol: _ippsAdd_32f Undefined symbol: _ippsCplxToReal_32fc Undefined symbol: _ippsFFTFwd_RToPerm_32f Undefined symbol: _ippsFFTGetSize_C_32fc Undefined symbol: _ippsFFTGetSize_C_64fc Undefined symbol: _ippsFFTGetSize_R_32f Undefined symbol: _ippsFFTGetSize_R_64f Undefined symbol: _ippsFFTInit_C_32fc Undefined symbol: _ippsFFTInit_C_64fc Undefined symbol: _ippsFFTInit_R_32f Undefined symbol: _ippsFFTInit_R_64f Undefined symbol: _ippsFFTInv_PermToR_32f Undefined symbol: _ippsFree Undefined symbol: _ippsMalloc_32fc Undefined symbol: _ippsMalloc_8u Undefined symbol: _ippsRealToCplx_32f Undefined symbol: _ippsSum_32f Undefined symbol: _ippsThreshold_32f_I
Perhaps some setting somewhere will magically blow these errors away?
-
Don't use IPP on Mac
-
@d-healey Not trying to. How not to?
-
@gorangrooves Uncheck it in your project preferences