Error using generateAudioPlugin for VST plugin generation in Matlab 2019b
7 views (last 30 days)
Show older comments
Hi all
I have been using Matlab 2019b. I am using the AudioPlugin of AudioSystem Toolbox
to prototype some audio algorithm. I am using this plugin to generate a corresponding VST dll
file to test it in a DAW.
However, when I first run the command the "validateAudioPlugin" its sucessful. But the
generateAudioPlugin fails with the error shown in the screenshot.
If I try the same plugin in Matlb 2018a, it generates the respective dll file. I have checked about
the "devenv.com" and respective settings of Visual studio 2017 paths in the Environment
variables. Since the same plugin runs on Matlab 2018a, I belive the settings are correct.
Please let me know if there is some specific settings for Matlab 2019b that I am missing.
Thanks
Regards
Daniel
1 Comment
Charlie DeVane
on 14 Nov 2019
Hi Daniel,
I'm sorry you are having this problem.
The error message's reference to "Visual Studio 14.0" suggests that MATLAB is trying to use Visual Studio 2015 for C++ Compilation. To use Visual Studio 2017 with generationAudioPlugin, you need to be sure mex is set up to use that as your C++ compiler. You can check this by typing
>> mex -setup C++
You should see something like this:
>> mex -setup C++
MEX configured to use 'Microsoft Visual C++ 2017' for C++ language compilation.
What do you see?
Charlie
Answers (6)
Daniel Kotulla
on 14 Nov 2019
1 Comment
Charlie DeVane
on 14 Nov 2019
Hi Daniel,
It's helpful to know where you found devenv.com in your installation, but unfortunately I don't think configuing paths will help you.
Does the folder "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" exist on your computer?
Could you run the command below and paste the result here?
>> mex.getCompilerConfigurations('C++','Selected')
Fazil Peermohammed
on 15 Nov 2019
Hi, what edition of Visual Studio do you have? Please note that we only support Community, Professional, and Enterprise editions. We do not support Visual Studio build tools. See this page for supported compilers:
0 Comments
Daniel Kotulla
on 18 Nov 2019
1 Comment
Charlie DeVane
on 18 Nov 2019
Hi Daniel,
Sorry this is taking a while to diagnose, but we need some more details. Please run the two commands below and post the output.
thanks,
Charlie
>> mex -setup:MSVCPP150 -v
>> a = mex.getCompilerConfigurations('C++', 'selected')
Daniel Kotulla
on 18 Nov 2019
1 Comment
Charlie DeVane
on 18 Nov 2019
Hi Daniel,
It looks like your machine has both Professional and Build Tools editions installed, and somehow the registry is pointing to Build Tools. I suggest:
- Uninstall BuildTools version. If the you cannot find that edition, uninstall all editions and then install the supported edition only (Professional, Enterprise or Community)
- Start MATLAB and type >>mex -setup C++
- Select VS 2017
- Run >> mex.getCompilerConfigurations('C++', 'selected')
- Confirm that the location points to the supported edition instead of "BuildTools", eg, "Location: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\'"
hope this helps,
Charlie
Daniel Kotulla
on 19 Nov 2019
2 Comments
Charlie DeVane
on 19 Nov 2019
Edited: Charlie DeVane
on 19 Nov 2019
Hi Daniel,
Can you reproduce this on a different computer?
Please run the commands below and post the output.
>> ver
>> mex -setup:MSVCPP150 -v
>> mex.getCompilerConfigurations('C++', 'selected')
>> mex -setup:MSVC150 -v
>> mex.getCompilerConfigurations('C', 'selected')
Charlie DeVane
on 19 Nov 2019
It would also be helpful if you can send us an example plugin, as small as possible, that reproduces the problem. If you would rather not post that publicly, we can proceed through tech support.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!