Access is denied problem
-
I'm work in project with opencv lib and sometimes it give me that error and sometimes it's not when I build it :
@mingw32-make.exe[1]: *** Access is denied.
. Stop.
mingw32-make.exe: *** [release] Error 2
09:16:55: The process "F:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project TraySystemtry (target: Desktop)
When executing build step 'Make'
@I can't figure out the problem so plz help
Thanks advance :) -
Does this happen in a compile step or in the link step?
I have frequently the issue in the link step. The reason is then that I did not stop the application, but rather started to edit and compile with the application still running. The linking process cannot replace the application then. Most of the time the reason is quite obvious, because you see that the application is still running. When the debugging somehow, it is less obvious.
-
In a compilation step
but I stoped the application too. -
On the projects page you find the section Build steps. For "Make:" there should be a line something like "mingw32-make ..." this line should NOT have a parameter "-j" or "-j <any number>". This would start parallel building which might double access files.
However, that is unlikely since "-j" is not used per default AFAIK.You are using drive f:. Possibly the drive is very slow. Maybe you can use another faster drive.
-
I'll try it