nvcc : fatal error : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/Bin/../../VC/Bin/vcvars32.bat

I met the error message when I build opencv+cuda.

In past, I am solved by this method -> http://feelmare.blogspot.kr/2014/08/nvcc-fatal-error-could-not-set-up.html

But this is different method.

In conclusion, the error is because PATH problem in the environment variable.

vcvars32.bat do not work properly because using of wrong PATH value.

So nvcc environment error is occurred.

Try checking the value of the PATH in the user and system variables

Normal format is path;path;path.... .
(In my case, " caused the error C:\Python27\Lib";C:\Program Files (x86)\Google\google_appengine\ )

If the value of PATH in system variables did not included "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" and 
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin", add these path.

and in cmd window, run vcvars32.bat. If there is no response text, it is normal.

and check one more, run cl.exe in cmd window.

this is wrong result. 

good luck.

No comments:

Post a Comment