I am trying to install CUDA to another computer with VS 2013. After installing CUDA 7.5 I had some problems with VS.
I tried nvcc on VS command terminal and received,
LNK1104: cannot open file ‘uuid.lib’
Clearly this is due to missing library linking. So i manually copied uuid.lib, then I received missing Kernel32.lib error. After copying this lib file to project directory everything works fine.
I checked another computer with VS 2013 and CUDA 7.5 for environment variables, path links…etc . But i could not find what is missing.
Could you help what configuration is needed so i can run it not only on terminal but also VS environment.
I will appreciate if you promt as
Do this → Do that → …
In other forums, answer to similar problems are either outdated or inconsisntent.
It sounds like the environment variable WindowsSdkDir is either missing or set incorrectly. On my Windows system it points at C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A, and the two libraries you mention can be found below that directory.
The thing is i check other computer which does not have a problem with CUDA compilation and Run, does not have a such env. variable either. (I checked it from System properties → environment variables…)
My best guess is that one of your machines has a broken (incomplete, damaged) installation of MSVS or the Windows Platform SDK. You should never have to copy individual Microsoft-provided library files between machines in the manner you described, that is a sure indication something is wrong in the setup. One thought: Are you using MSVS Express Edition by any chance?
Let me rephrase then: You should never have to copy individual Microsoft-provided library files between two directories on the same machine in the manner you described, that is a sure indication something is wrong in the setup.
I am not sure what else to try at this point. You could try manually running the batch file that sets up the MSVS environment variables
vcvarsall.bat amd64
but it seems doubtful this has anything to do with your issue.
what happens if you load a sample project, e.g. deviceQuery, and compile it. (this is one of the steps in the installation guide). Does it compile successfully?
Note that the compilation log in #9 contains a warning that WindowsSDKDir isn’t set (correctly), which is something I already suspected in #2. You might want to fix this first.
I am having trouble understanding where you are stuck. An environment variable is not correctly set. I gave an example how it should be set in #2. Corrective action you need to take: Set that environment variable on your machine.
Do you know how to set an environment variable under Windows? You can use the SET command of the command line processor. If you want to set it permanently, you can use Control Panel → System and Security → System, Advanced System Settings, Environment Variables
As the 3rd post states, reference computer (PC with VS 2013 and CUDA, and works perfectly fine) does not have such environemnt variable either. I checked all variables and there seems all variables match. If you are using CUDA on Win machine i believe you can verify that.
Manually creating such variable does not help also…