Page 1 of 13

Windows Build FAILED

Posted: Wed Mar 25, 2020 3:52 pm
by kintuX
W10, Latest commit 04298f479, gives:

--- FATAL ERROR RUNNING CMAKE ---

Code: Select all

Build FAILED.

       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxrays\luxrays.vcxproj" (default target) (8) ->
       (ClCompile target) ->
         c:\luxcorerender\luxcore\src\luxrays\devices\ocldevice.cpp(244): error C2664: 'cl_int cl::Kernel::setArg(cl_ui
       nt,size_t,void *)': cannot convert argument 3 from 'const void *' to 'void *' [C:\luxcorerender\WindowsCompile\B
       uild_CMake\LuxCore\src\luxrays\luxrays.vcxproj]

Re: Windows Build FAILED

Posted: Wed Mar 25, 2020 4:58 pm
by Dade
kintuX wrote: Wed Mar 25, 2020 3:52 pm W10, Latest commit 04298f479, gives:

--- FATAL ERROR RUNNING CMAKE ---

Code: Select all

Build FAILED.

       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
       "C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxrays\luxrays.vcxproj" (default target) (8) ->
       (ClCompile target) ->
         c:\luxcorerender\luxcore\src\luxrays\devices\ocldevice.cpp(244): error C2664: 'cl_int cl::Kernel::setArg(cl_ui
       nt,size_t,void *)': cannot convert argument 3 from 'const void *' to 'void *' [C:\luxcorerender\WindowsCompile\B
       uild_CMake\LuxCore\src\luxrays\luxrays.vcxproj]
You may have a old/wrong/broken version of https://www.khronos.org/registry/OpenCL/api/2.1/cl.hpp installed on your system. It is working fine with the linked cl.hpp on Azure for Windows.

Re: Windows Build FAILED

Posted: Wed Mar 25, 2020 5:01 pm
by acasta69
Most probably you need to replace file cl.hpp in your OpenCL SDK distribution with a more recent version.
You can download it from here:
https://www.khronos.org/registry/OpenCL/api/2.1/cl.hpp

Edit: Ooops, I didn't notice Dade answered in the meantime...

Re: Windows Build FAILED

Posted: Wed Mar 25, 2020 5:37 pm
by kintuX
Yup, that was it! Got it back on track and is building fine :D

Thank you both!

BTW - What is the "giveaway"? How can I recognize the culprit in the future?

Re: Windows Build FAILED

Posted: Wed Mar 25, 2020 5:55 pm
by Dade
kintuX wrote: Wed Mar 25, 2020 5:37 pm BTW - What is the "giveaway"? How can I recognize the culprit in the future?
I doubt we will ever change OpenCL version (i.e. v1.2) so you should be fine with that file for any foreseeable future.

Re: Windows Build FAILED

Posted: Fri Mar 27, 2020 1:53 am
by kintuX
Dade wrote: Wed Mar 25, 2020 5:55 pm
kintuX wrote: Wed Mar 25, 2020 5:37 pm BTW - What is the "giveaway"? How can I recognize the culprit in the future?
I doubt we will ever change OpenCL version (i.e. v1.2) so you should be fine with that file for any foreseeable future.
Yeah, new era commences. ;)

CUDA build error

Posted: Thu Apr 23, 2020 8:59 pm
by kintuX
With the latest updates, running...

Code: Select all

cmake-build-x64.bat /cuda
I get following error:

Code: Select all

CMake Error at CMakeLists.txt:117 (MESSAGE):
  --> CUDA support requires to enable OpenCL support too


-- Configuring incomplete, errors occurred!
See also "C:/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeOutput.log".
See also "C:/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeError.log".
--- FATAL ERROR RUNNING CMAKE ---
ERRORlogs.7z
(51.19 KiB) Downloaded 316 times
:?

Re: Windows Build FAILED

Posted: Thu Apr 23, 2020 9:05 pm
by acasta69
I am working on the Cuda builds for Windows, but it's not yet totally ready...

Re: Windows Build FAILED

Posted: Thu Apr 23, 2020 9:12 pm
by kintuX
acasta69 wrote: Thu Apr 23, 2020 9:05 pm I am working on the Cuda builds for Windows, but it's not yet totally ready...
OK, thank you for letting me know. 8-)

Re: Windows Build FAILED

Posted: Fri Apr 24, 2020 9:54 am
by acasta69
At the moment the CUDA build is working for me and also on Azure.
Could you please try again?