Windows Build FAILED

Discussion related to the Engine functionality, implementations and API.
Post Reply
kintuX
Posts: 524
Joined: Wed Jan 10, 2018 2:37 am

Windows Build FAILED

Post by kintuX » 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]

User avatar
Dade
Developer
Posts: 3927
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade » Wed Mar 25, 2020 4:58 pm

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.
Support LuxCoreRender project with salts and bounties

acasta69
Developer
Posts: 256
Joined: Tue Jan 09, 2018 3:45 pm

Re: Windows Build FAILED

Post by acasta69 » Wed Mar 25, 2020 5:01 pm

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...
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v382.05

kintuX
Posts: 524
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post by kintuX » Wed Mar 25, 2020 5:37 pm

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?

User avatar
Dade
Developer
Posts: 3927
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade » 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.
Support LuxCoreRender project with salts and bounties

kintuX
Posts: 524
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post by kintuX » Fri Mar 27, 2020 1:53 am

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. ;)

Post Reply