Problem compiling with AAX
-
@orange well it not in that folder - which folder should it be in?
-
@Lindon I wrote it above, again:
64 bit: SDK KIT\AAX\Libs\Release\AAXLibrary_x64.lib
32 bit (if you use): SDK KIT\AAX\Libs\Release\AAXLibrary.lib -
@orange yes -- sorry but I also said - but tio be clear: there is nothing in the folder
tools\SDK\AAX\Libs\Release\
-
OK so I tried again and now its failing to build in VS2017.. hang on I'll look for the problem.
-
now I'm getting a whole bunch of these :
c:\users\lindon\desktop\hise-scriptnode\tools\sdk\aax_sdk_2p2p2\interfaces\aax.h(219): error C2220: warning treated as error - no 'object' file generated (compiling source file ....\source\AAX_CACFUnknown.cpp)
-
@Lindon said in Problem compiling with AAX:
warning treated as error
So the solution to this was to turn OFF treat warnings as errors in VS 2017:
to do that:
right click your project in VS 2017 (in this case AAXlibrary),
select properties
Select C++/General
Set: Treat warnings as errors to NoThis is Avid not updating their lib past VS2013.....
Thanks for your help @orange
-
@Lindon OK so I seem to have
HISE-scriptnode\tools\SDK\AAX\Libs\Release\AAXLibrary_x64.lib
which I think is whats needed from the AAX side of things, but I'm getting these (same) errors)...
c:\users\lindon\desktop\hise-scriptnode\juce\modules\juce_audio_plugin_client\a ax\juce_aax_wrapper.cpp(56): error C2065: 'AAX_SDK_2p3p0_REVISION': undeclared identifier [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualSt udio2017\Shapiro_AAX.vcxproj] c:\users\lindon\desktop\hise-scriptnode\juce\modules\juce_audio_plugin_client\a ax\juce_aax_wrapper.cpp(75): fatal error C1083: Cannot open include file: 'AAX_ IDescriptionHost.h': No such file or directory [D:\Audio\ChannelRobot\AA HISE W ork\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj]
Perhaps I'm using too late a version of the AAX SDK?
For sure AAX_IDescriptionHost.h is nowhere in any path I can see....
-
@Lindon hmm, it looks something different.
-
@orange yeah ...time to call..
@Christoph-Hart any ideas?
-
Hey guys,
I slightly remember this issue... think I posted about it. try using an older AAX sdk -
@dustbro Yeah you are right.
My version: AAX SDK 2.3.1
-
@orange said in Problem compiling with AAX:
@dustbro Yeah you are right.
My version: AAX SDK 2.3.1
OK so where would I get an AAX SDK that works with HISE? - it sure aint Avid.
-
@Lindon said in Problem compiling with AAX:
@orange said in Problem compiling with AAX:
@dustbro Yeah you are right.
My version: AAX SDK 2.3.1
OK so where would I get an AAX SDK that works with HISE? - it sure aint Avid.
I have 3 versions of AAX SDK from 2.2.2 to 2.3.2 in my account including the 2.3.1 version. Just available in my toolkits and downloads, so I expect it to be same for you? Avid usually gives few versions...Hope that helps
-
@VHO you entirely correct, silly me for missing them over on the right side of the page..
so I downloaded V2.3.1 (the same as @orange) and compiled it - I got a .lib file fine, then I went into HISE and tried to compile a plug-in now I get these errors:
AAXLibrary_x64.lib(AAX_CEffectParameters.obj) : error LNK2038: mismatch detecte d for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Stati cRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_Init.obj) : error LNK2038: mismatch detected for 'Runtim eLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Sh apiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CParameter.obj) : error LNK2038: mismatch detected for ' RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticReleas e' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE W ork\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_IEffectGUI.obj) : error LNK2038: mismatch detected for ' RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticReleas e' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE W ork\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_IEffectParameters.obj) : error LNK2038: mismatch detecte d for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Stati cRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CACFUnknown.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelea se' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CEffectGUI.obj) : error LNK2038: mismatch detected for ' RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticReleas e' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE W ork\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CParameterManager.obj) : error LNK2038: mismatch detecte d for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Stati cRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CPacketDispatcher.obj) : error LNK2038: mismatch detecte d for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Stati cRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CString.obj) : error LNK2038: mismatch detected for 'Run timeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work \Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_CChunkDataParser.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Static Release' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VController.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelea se' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VCollection.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelea se' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VPropertyMap.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRele ase' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VDescriptionHost.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Static Release' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VEffectDescriptor.obj) : error LNK2038: mismatch detecte d for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_Stati cRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VComponentDescriptor.obj) : error LNK2038: mismatch dete cted for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_St aticRelease' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot \AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] AAXLibrary_x64.lib(AAX_VFeatureInfo.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRele ase' in include_juce_audio_plugin_client_AAX.obj [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudio2017\Shapiro_AAX.vcxproj] Creating library .\..\..\Compiled\AAX\Shapiro x64.lib and object .\..\..\C ompiled\AAX\Shapiro x64.exp LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; u se /NODEFAULTLIB:library [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\B uilds\VisualStudio2017\Shapiro_AAX.vcxproj] .\..\..\Compiled\AAX\\Shapiro x64.aaxdll : fatal error LNK1319: 18 mismatches d etected [D:\Audio\ChannelRobot\AA HISE Work\Shapiro\Binaries\Builds\VisualStudi o2017\Shapiro_AAX.vcxproj]
-- which seem to be 18 of these:
value 'MD_DynamicRelease' doesn't match value 'MT_StaticRele
ase' -
@Lindon yeah, this is the exact same problem I had in another post. Here's the soloution:
This error can occur when you are statically linking your project with a library (typically a file with .lib extension) but the linker setting in your Visual Studio project are set to dynamically link (meaning the link will occur during runtime, usually with a .dll file). To define that you need the project to use static linking start Visual Studio. In the Solution Explorer pane, right click the project name, and select Properties. Expand the properties as shown in the figure below: C/C++ --> Code Generation --> Runtime Library, select the Multi-threaded (/MT) option from the dropdown menu.
-
@dustbro thanks Dan, to be clear I need to do this when I'm compiling the AAX plugin?
-
@Lindon correct. You'll need to open the AAX solution in visual studio to make this change I believe. It's been a few minutes since I've compiled AAX
-
@dustbro -- hey success! Thanks mate, I owe you one.
Now on to the xcode implementation......
-
@Lindon cool you've done it!
I just did on macOS yesterday and it works with no complication... Except that I didn't know the folder should be renamed "AAX", not "AAX SDK"... -
@ustk great, so just rename the folder AAX and select the xcode project - load it - build it and its done yes?