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.


Popular posts from this blog

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

OpenCV Stitching example (Stitcher class, Panorama)

AMP dose run on my pc?, AMP(Accelerated Massive Parallelism)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Optical Flow sample source code using OpenCV

Real-time N camera stitching Class.

OpenCV meanShiftFiltering example source code ( cpu: pyrMeanShiftFiltering, gpu:meanShiftFiltering, gpu:meanShiftSegmentation )

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)

Image warping (using opencv findHomography, warpPerspective)