I am facing a very frustrating access denied error without any other information.
I have git clone
'd a repository to a folder, naimly to ~\Desktop\bempp
. When i try to cmake
by typing in the cmd cmake -DCMAKE_INSTALL_PREFIX=<install_dir> ..
I get an error message Access denied. install_dir is ~\Desktop\bempp
. Instructions are here under the title compiling bem++:http://www.bempp.org/installation.html
I also tried to cmake with the gui (it succeeded), then build with visual studio (succeeded again), but once more when I try to run it I get: Unable to start program ~\bem\x64\Release\ALL_BUILD access denied.
I tried to remove the read-only nature of the folder and the subfolders, but they come back automatically. After more googling it turns out that attrib has to be used:
my call is:
attrib -r +s C:\Users\nempa001\Desktop\bempp /s /d
The call simply does not work. Apart from not working recursively as said in each description page (check this) https://www.lifewire.com/attrib-command-2625802 , even if I attrib +s
each one of the folders in the path shown in the Visual studio message (these attrib call succeed, I check it through attrib ), I still get the same error from Visual Studio.
I am the owner of the folder in properties and also I have full control rights and there is system endpoint center protection on my computer(maybe irrelevant). This whole situation makes zero sense.
Am I towards the right direction? I am totally out of ideas, can anyone propose a solution?