AAX compile error - Develop branch



  • I'm getting the following error when trying to compile via Develop branch:

    c:\program files\hise-develop\juce\modules\juce_audio_plugin_client\aax\juce_aax_wrapper.cpp(49): fatal error C1083: Ca
    nnot open include file: 'AAX_Version.h': No such file or directory
    

    is that something on my end?


  • administrators

    Yup, AAX goes through here.

    The AAX_Version.h file is located here:

    HISE_PATH\tools\SDK\AAX\Interfaces\AAX_Version.h
    

    Do you have that file?



  • ahh... I didn't put the whole SDK within the AAX folder. one problem solved!
    Ok next problem 🙂
    Once the SDK is properly in place, I'm seeing this:

    AAXLibrary_x64.lib(AAX_CEffectParameters.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynami
    cRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docu
    ments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_Init.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doe
    sn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\BACK TO
     SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CParameter.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicReleas
    e' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\B
    ACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_IEffectGUI.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicReleas
    e' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\B
    ACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_IEffectParameters.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynami
    cRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docu
    ments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CACFUnknown.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelea
    se' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\
    BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CEffectGUI.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicReleas
    e' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\B
    ACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CParameterManager.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynami
    cRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docu
    ments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CPacketDispatcher.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynami
    cRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docu
    ments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CString.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease'
    doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\BACK
     TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_CChunkDataParser.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynamic
    Release' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docum
    ents\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VController.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelea
    se' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\
    BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VCollection.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelea
    se' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents\
    BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VPropertyMap.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRele
    ase' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents
    \BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VDescriptionHost.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynamic
    Release' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docum
    ents\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VEffectDescriptor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dynami
    cRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Docu
    ments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VComponentDescriptor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_Dyn
    amicRelease' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\D
    ocuments\BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]
    AAXLibrary_x64.lib(AAX_VFeatureInfo.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRele
    ase' doesn't match value 'MT_StaticRelease' in include_juce_audio_plugin_client_AAX.obj [C:\Users\BasicDrumCo\Documents
    \BACK TO SCHOOL 2\Binaries\Builds\VisualStudio2017\BACK TO SCHOOL 2_AAX.vcxproj]


  • I did a little research and found this:

    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. 
    

    Made this change and it exported 🙂



  • Once the plug loads in PT, I'm getting a dialog saying the Sample directory does not exist.
    0_1536932028555_sample folder.png
    Usually, I get a dialog with VST plugs to select the sample folder when you first launch. Do I have to do something different with AAX?


  • administrators

    Hmm, the error message pops up if the sample directory does not exist, but it should be caught before this at plugin launch. Can you look in your AppData folder of your plugin (%APPDATA%/Company/Product) whether there's a file called LinkWindows and if yes whether the directory where it points to (it's just a text file) exists?

    But not sure why this would fire at an AAX but not with other formats...



  • So I ditched the folder. It came up with the usual "select sample folder". Once I selected the folder, it came back to the "sample directory not found".
    When I reopen the plug all is well. It's working, so I won't question it at the moment 😉


Log in to reply
 

0
Online

315
Users

919
Topics

6.0k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.