Min-Devkit "Unable to start program.... Access is Denied"

Joe Kaplan's icon

I'm trying to set up my environment for Min-Devkit.

I am using Visual Studio 16 2019 on Windows 10.
I tried following the instructions here: https://github.com/Cycling74/min-devkit

I cloned the repository from GitHub to my Max8\Packages folder using the Clone Repository function in Visual Studio.

I generated the projects using 'cmake -G "Visual Studio 16 2019" ..'
I built using ' cmake --build . --config Release'

It all looks to be correct. If I right click on solutions in the solution and click build things seem to build.

But if try to run things in Visual Studio using the Local Windows debugger I get an error:

Unable to start program. 'C:\Users.....\Documents\Max 8\min-devkit\build\x64\Release\ALL_BUILD'. access is denied.


I don't know if this is a problem or not. What I do know is that I'm struggling to get unit tests working and I wonder if this is related. Thanks for any input. I'm flailing a little bit here.



FelixCode's icon

Hi, I have the same problem. Have you found a solution?

Joe Kaplan's icon

Hi Felix,

You need to tell visual studio what to run for debugging. Since you're not building an executable here, the default value will result in an error.

Just right click on ALL_BUILD and go to properties. Choose "debugging" under "Configuration properties" and put a valid path to max.exe in the command field. Now max will launch once the build is complete and you can debug your externals using breakpoints etc.

I learned this from Federico's video intro to MIN.