Build Qt for Visual Studio - visual-studio

I searched the Web for few days now, for how to build Qt 4.8.6 for Visual Studio 2012. I am using Windows 10 x64.
I tried following:
Enviroment Variables:
QTDIR=c:\Qt\4.8.6
Path=%QTDIR%\bin
QMAKESPEC=%QTDIR%\mkspecs\win32-msvc2012
Visual Studio Native Tools Command Prompt:
cd c:\Qt\4.8.6
nmake confclean
configure -no-webkit -debug-and-release -opensource -platform win32-msvc2012
jom -j 8
But I always get Error-Codes: (last few lines)
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DNDEBUG -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\mkspecs\win32-msvc2012" -Fotmp\obj\release_shared\ #C:\Users\HONIAH~1\AppData\Local\Temp\moc_mainwindow.obj.146576.5359.jom
moc_mainwindow.cpp
link /LIBPATH:"c:\Qt\4.8.6\lib" /LIBPATH:"c:\Qt\4.8.6\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:release\undoframework.exe #C:\Users\HONIAH~1\AppData\Local\Temp\undoframework.exe.146576.7484.jom
jom: C:\Qt\4.8.6\Makefile [sub-examples-make_default-ordered] Error 2

Related

VS2013 and CUDA 12 compatibility

Error 2 error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin\nvcc.exe" -gencode=arch=compute_35,code="sm_35,compute_35" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -x cu -rdc=true -IInclude\cutil\inc -IC:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver -ISource\DXUT\Optional -ISource\DXUT\Core -IInclude\Uplink -I"C:\Program Files (x86)\Intel RealSense SDK 2.0\include" -I"C:\Program Files (x86)\Intel RealSense SDK 2.0\third-party\" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\include" --keep-dir x64\Debug -maxrregcount=62 --machine 64 --compile -cudart static -g -DWIN32 -D_DEBUG -DDEBUG -DPROFILE -D_CONSOLE -DD3DXFX_LARGEADDRESS_HANDLE -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Fdx64\Debug\vc120.pdb /FS /Zi /RTC1 /MDd " -o C:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver\x64\Debug\CUDAHistogramHashSDF.cu.obj "C:\Users\fardin\BundleFusion2\BundleFusion\FriedLiver\Source\DepthSensing\CUDAHistogramHashSDF.cu"" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 12.0.targets 794 9 FriedLiver
I ran into this issue when I was building my project. So I was wondering whether CUDA 12 is compatible with VS2013. I am on windows 11 so I can only download CUDA 12 and 11.6. Also I have both VS2013 and VS2019 but my project requires it to be used in VS2013
CUDA 12 is not compatible with VS2013.
If you attempt to run the CUDA 12 installer after installing VS2013, the CUDA 12 installer will ignore the VS2013 install, and not install necessary pieces to make the integration work.

How to upgrade the CUDA version in a Visual Studio solution?

Earlier I installed CUDA 9.2 on my machine and built a solution with it. Then I upgraded Visual Studio 2017 to a revision that is not supported by CUDA 9.2, so I'm getting errors like:
1>D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe" -gencode=arch=compute_61,code=\"sm_61,compute_61\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64" -x cu -rdc=true -ID:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" --source-in-ptx -G -lineinfo --keep-dir x64\Debug -maxrregcount=32 --machine 64 --compile -cudart static -g -D_DEBUG -D_WINDOWS -D_USRDLL -DPQACORE_EXPORTS -D_WINDLL -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W4 /nologo /Od /FS /Zi /RTC1 /MDd /GR" -o x64\Debug\CudaEngineGpu.cu.obj "D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\CudaEngineGpu.cu"
1>c:\program files\nvidia gpu computing toolkit\cuda\v9.2\include\crt/host_config.h(133): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
1>CUDACOMPILE : nvcc warning : '--device-debug (-G)' overrides '--generate-line-info (-lineinfo)'
1>CudaEngineGpu.cu
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 9.2.targets(707,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin\nvcc.exe" -gencode=arch=compute_61,code=\"sm_61,compute_61\" --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64" -x cu -rdc=true -ID:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\include" --source-in-ptx -G -lineinfo --keep-dir x64\Debug -maxrregcount=32 --machine 64 --compile -cudart static -g -D_DEBUG -D_WINDOWS -D_USRDLL -DPQACORE_EXPORTS -D_WINDLL -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W4 /nologo /Od /FS /Zi /RTC1 /MDd /GR" -o x64\Debug\CudaEngineGpu.cu.obj "D:\Dev\Views\Engines\ProbQA\ProbQA\PqaCore\CudaEngineGpu.cu"" exited with code 2.
I've installed CUDA 10.0 that claims to be compatible with VS2017 Update 8 and any later versions. However, my solution still uses CUDA 9.2.
How to upgrade the solution to CUDA 10.0? Can I do this from GUI somewhere, or do I have to edit project files and something else?
You have two ways to upgrade the CUDA version in a Visual Studio solution:
Build dependencies -> Build customizations;
Open the vcxproj file associated to the Visual Studio solution and change 9.2 to 10.0 wherever 9.2 occurs.

How to manually fix Qt PATH: fatal error RC1106: invalid option: -ologo, LNK1327 / LNK1158 : fatal error during running rc.exe

This is a rare problem some people have after installing the Qt IDE. With all the reports of a similar problem in VS I found it very hard to find the answer to this problem.
The problem is as follows: Qt searches for the PATH that VS uses. Qt fails to find correct PATH even if VS has the correct path. When it tries to compile and attempts to run rc.exe it cannot, because it has no idea where it is. It then throws the following compiler outputs depending on your configuration:
Compile output 1/2:
07:53:21: Running steps for project untitled...
07:53:21: Configuration unchanged, skipping qmake step.
07:53:21: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe"
D:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:CONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\untitled.exe #C:\Users\willi\AppData\Local\Temp\untitled.exe.10340.16.jom
fatal error RC1106: invalid option: -ologo
LINK : fatal error LNK1327: failure during running rc.exe
jom: D:\Documents\build-untitled-Desktop_Qt_5_11_0_MSVC2015_32bit-Debug\Makefile.Debug [debug\untitled.exe] Error 1327
jom: D:\Documents\build-untitled-Desktop_Qt_5_11_0_MSVC2015_32bit-Debug\Makefile [debug] Error 2
07:53:22: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled (kit: Desktop Qt 5.11.0 MSVC2015 32bit)
The kit Desktop Qt 5.11.0 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
07:53:22: Elapsed time: 00:00.
Compile Output 2/2:
11:23:23: Running steps for project untitled3...
11:23:23: Starting: "D:\Qt\5.11.1\msvc2015\bin\qmake.exe" D:\Documents\untitled3\untitled3.pro -spec win32-msvc "CONFIG+=debug" "CONFIG+=qml_debug"
Info: creating stash file D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug.qmake.stash
11:23:23: The process "D:\Qt\5.11.1\msvc2015\bin\qmake.exe" exited normally.
11:23:23: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe" qmake_all
jom 1.1.2 - empower your cores
11:23:23: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited normally.
11:23:23: Starting: "D:\Qt\Tools\QtCreator\bin\jom.exe"
D:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug
D:\Qt\5.11.1\msvc2015\bin\uic.exe ..\untitled3\mainwindow.ui -o ui_mainwindow.h
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\main.obj.11648.16.jom
cl -BxD:\Qt\5.11.1\msvc2015\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E ....\Qt\5.11.1\msvc2015\mkspecs\features\data\dummy.cpp 2>NUL >debug\moc_predefs.h
main.cpp
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\mainwindow.obj.11648.31.jom
mainwindow.cpp
D:\Qt\5.11.1\msvc2015\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --compiler-flavor=msvc --include debug/moc_predefs.h -ID:/Qt/5.11.1/msvc2015/mkspecs/win32-msvc -ID:/Documents/untitled3 -ID:/Qt/5.11.1/msvc2015/include -ID:/Qt/5.11.1/msvc2015/include/QtWidgets -ID:/Qt/5.11.1/msvc2015/include/QtGui -ID:/Qt/5.11.1/msvc2015/include/QtANGLE -ID:/Qt/5.11.1/msvc2015/include/QtCore -I. -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" ..\untitled3\mainwindow.h -o debug\moc_mainwindow.cpp
cl -c -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\untitled3.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\untitled3 -I. -I....\Qt\5.11.1\msvc2015\include -I....\Qt\5.11.1\msvc2015\include\QtWidgets -I....\Qt\5.11.1\msvc2015\include\QtGui -I....\Qt\5.11.1\msvc2015\include\QtANGLE -I....\Qt\5.11.1\msvc2015\include\QtCore -Idebug -I. -I\include -I....\Qt\5.11.1\msvc2015\mkspecs\win32-msvc -Fodebug\ #C:\Users\willi\AppData\Local\Temp\moc_mainwindow.obj.11648.375.jom
moc_mainwindow.cpp
link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /MANIFEST:embed /OUT:debug\untitled3.exe #C:\Users\willi\AppData\Local\Temp\untitled3.exe.11648.1359.jom
LINK : fatal error LNK1158: cannot run 'rc.exe'
jom: D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile.Debug [debug\untitled3.exe] Error 1158
jom: D:\Documents\build-untitled3-Desktop_Qt_5_11_1_MSVC2015_32bit-Debug\Makefile [debug] Error 2
11:23:25: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project untitled3 (kit: Desktop Qt 5.11.1 MSVC2015 32bit)
The kit Desktop Qt 5.11.1 MSVC2015 32bit has configuration issues which might be the root cause for this problem.
When executing step "Make"
11:23:25: Elapsed time: 00:02.
Go to Tools -> Options -> Build and Run -> Kits -> (The kit you are using) -> then adding the proper directory to the Environment with the "PATH=${PATH};" command. Example in attachments. To find the file path, follow mine to the bin folder and select the one you need.
Thanks to #aha_1980 #kkoehne and #J.Hilk over at: https://forum.qt.io/topic/92145/qt-cannot-find-rc-exe-codes-fatal-error-rc1106-invalid-option-ologo-lnk1327-lnk1158-fatal-error-during-running-rc-exe

"fatal error : Failed to open output file" when compiling CUDA programs under Win 7

whenever I try to compile a CUDA program (even the samples) on Windows 7 (64 Bit), using VisualStudio 2010 and CUDA 5.0, I get the error message below and nvcc crashes:
1>------ Erstellen gestartet: Projekt: vectorAdd, Konfiguration: Debug x64 ------
1> Compiling CUDA source file vectorAdd.cu...
1>
1> C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"../../common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "x64\Debug" -maxrregcount=0 --machine 64 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "x64/Debug/vectorAdd.cu.obj" "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu"
1>nvcc : fatal error : Failed to open output file 'C:\Users\<MY_USERNAME>\AppData\Local\Temp;"C:\Windows\winsxs"/tmpxft_00001d24_00000000'
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets(592,9): error MSB3721: Der Befehl ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2010 -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64" -I"../../common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "x64\Debug" -maxrregcount=0 --machine 64 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "x64/Debug/vectorAdd.cu.obj" "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu"" wurde mit Code -1073741819 beendet.
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
This error also occurs when I try to compile the program from the command line or using VS2008.
I have tried redownloading and reinstalling CUDA, the display driver and VisualStudio. The permissions for the Temp folder are set correctly.
I also tested the solutions proposed in these two threads:
https://devtalk.nvidia.com/default/topic/503284/?comment=3590464
https://devtalk.nvidia.com/default/topic/406549/?comment=2860913
Unfortunately, none of it worked :(
I am fairly new to CUDA, so maybe I just forgot a setting, but the target architectures were set to x64 for both host and device code, and in the samples the settings should be correct anyways.
If anyone knows a solutions to this problem I will be glad to hear it!
Kind regards,
maddin45
EDIT: formated the compiler output as code for better readability
SOLVED
Thanks to the support of SO member Robert Crovella I was able to find the error. The path "C:\Windows\winsxs" was added to the end of my user's TEMP variable. I removed it and now the samples compile without an error.

cuda error MSB3721 exited with code 2

I am trying to compile my first CUDA 5.0 project I took the template sample. I have not gotten it to compile it yet and as it shows two errors, I have compared the project settings with those of the template project and they appear to be consistent so I'm stumped. Here are my two errors.
The first occurs when I try to call my kernwl it marks the '<<<'
Error 32 error : expected an expression D:\Virtualbox
Data\Assembla\gul\antares
software\AntaresVisualizerCuda\AntaresVisualizerCuda\kernel.cu 584
Its possible that thar would be fixed by solving the next error:
Error 33 error MSB3721: The command ""C:\Program Files\NVIDIA GPU
Computing Toolkit\CUDA\v5.0\bin\nvcc.exe"
-gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"./" -I"C:\ProgramData\NVIDIA Corporation\CUDA
Samples\v5.0\C\common\inc" -I"C:\ProgramData\NVIDIA Corporation\CUDA
Samples\v5.0\shared\inc" -I"C:\fltk-1.3.0\include" -I"C:\Program
Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program
Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program
Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir
"Debug" -maxrregcount=0 --machine 32 --compile -g -DWIN32 -DWIN32
-DWIN32 -D_DEBUG -D_WINDOWS -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "Win32/Debug/kernel.cu.obj"
"D:\Virtualbox Data\Assembla\gul\antares
software\AntaresVisualizerCuda\AntaresVisualizerCuda\kernel.cu""
exited with code 2. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA
5.0.targets 498
Any ideas on this one?
Your kernel call within the comments looks like this:
tracePixel<<< gridP, threads >>>(d_screenOrigin, u_unit, d_u_dir, v_unit, d_v_dir, d_cam_pos, d_minpoint, d_maxpoint, gridLength, min, scale, d_grid, d_buffer,);
If that is indeed what you have and not a typo, then there is an extra ',' after d_buffer which should not be there. Either that or you're missing an argument.

Resources