Windows Build FAILED

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

Windows Build FAILED

Post 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]
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

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

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post 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?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post 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. ;)
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

CUDA build error

Post 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 308 times
:?
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post by acasta69 »

I am working on the Cuda builds for Windows, but it's not yet totally ready...
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post 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-)
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post by acasta69 »

At the moment the CUDA build is working for me and also on Azure.
Could you please try again?
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
Post Reply