victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
918 stars 351 forks source link

Can not build ITMLib with CUDA #89

Closed dzmitrykomar closed 6 years ago

dzmitrykomar commented 6 years ago

Hello,

I try to build InfiniTAM in Windows 10 to use it with librealsense and it works fine if I build without CUDA, but as soon as I add CUDA in CMake, I cannot build ITMLib anymore. I get following error at ITMLib\ITMLib.dir\Debug\ITMLib.txt:

" Building NVCC (Device) object ITMLib/CMakeFiles/ITMLib.dir/Debug/ITMLib_generated_CUDAInstantiations.cu.obj CMake Error at ITMLib_generated_CUDAInstantiations.cu.obj.Debug.cmake:222 (message): Error generating E:/install/infiniTAM/buildCUDA/ITMLib/CMakeFiles/ITMLib.dir//Debug/ITMLib_generated_CUDAInstantiations.cu.obj

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1."

I use VisualStudio Community 2017 v15.3.5 and CUDA Version 9.0.176. Here are the added in CMake components: cmakeinfinitamcuda

Do you have an idea how can I get it to work?

victorprad commented 6 years ago

The current version of CUDA 9 only supports Visual Studio 2017 RTM. If need to generate a VS2015 project and install the required build tools.

MicroYY commented 5 years ago

I have the same problem. Did you solve it?

dzmitrykomar commented 5 years ago

I think I installed it without cuda at the end

MicroYY notifications@github.com schrieb am Do., 16. Mai 2019, 10:42:

I have the same problem. Did you solve it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/victorprad/InfiniTAM/issues/89?email_source=notifications&email_token=AIC37JJOMRQ54Z2CBQPDOYTPVUNBHA5CNFSM4EFC3T4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRDQHQ#issuecomment-492976158, or mute the thread https://github.com/notifications/unsubscribe-auth/AIC37JN7LPRHAI3QKKQF4KLPVUNBHANCNFSM4EFC3T4A .

MicroYY commented 5 years ago

Oh... Can it achieve real-time performance without GPU?

dzmitrykomar commented 5 years ago

Not really..

MicroYY notifications@github.com schrieb am Do., 16. Mai 2019, 11:31:

Oh... Can it achieve real-time performance without GPU?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/victorprad/InfiniTAM/issues/89?email_source=notifications&email_token=AIC37JOBLGNY33ZJSG7GWRTPVUSYDA5CNFSM4EFC3T4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRHXBQ#issuecomment-492993414, or mute the thread https://github.com/notifications/unsubscribe-auth/AIC37JNABOQHX3EC6KC6FDTPVUSYDANCNFSM4EFC3T4A .

sgolodetz commented 5 years ago

For what it's worth, I'm using Visual Studio 2017 with CUDA 9.2, and it works fine if you install and use the v140 toolset (i.e. the Visual Studio 2015 build tools). See also build-win.sh on the infinitam_v3.5 branch.

MicroYY commented 5 years ago

For what it's worth, I'm using Visual Studio 2017 with CUDA 9.2, and it works fine if you install and use the v140 toolset (i.e. the Visual Studio 2015 build tools). See also build-win.sh on the infinitam_v3.5 branch.

Oh, I switch to the v3.5 branch and it really works! Thanks !!!