Forum

    • Register
    • Login
    • Search
    • Categories

    AAX compile error - Develop branch

    Bug Reports
    2
    8
    771
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dustbro
      dustbro last edited by

      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?

      Dan Korneff - Producer / Mixer / Audio Nerd

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • dustbro
          dustbro last edited by

          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]

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • dustbro
            dustbro last edited by

            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 🙂

            Dan Korneff - Producer / Mixer / Audio Nerd

            1 Reply Last reply Reply Quote 0
            • dustbro
              dustbro last edited by

              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?

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 0
              • Christoph Hart
                Christoph Hart last edited by

                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...

                1 Reply Last reply Reply Quote 0
                • dustbro
                  dustbro last edited by

                  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 😉

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  dustbro 1 Reply Last reply Reply Quote 0
                  • dustbro
                    dustbro @dustbro last edited by dustbro

                    @Christoph-Hart I'm getting a new error when compiling AAX on the lastest scriptnode.

                    fatal error C1007: unrecognized flag '-pdbrpc' in 'p2'
                    

                    Win11
                    VS2017
                    VS2019
                    AAX SDK 2.4.0

                    Have you encountered this yet? Figured I'd ask and then hit the web for some answers

                    EDIT:
                    fixed! I accidentally compiled the AAX library as Multi-threaded DLL (/MD) instead of Multi-threaded (/MT)
                    It didn't like that 💩

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    21
                    Online

                    795
                    Users

                    5.5k
                    Topics

                    51.6k
                    Posts