Dade wrote: ↑Fri May 22, 2020 10:45 am
@Acasta69, I'm starting to think that compilation problem on Azure is due to the use of a Linux OpenCL SDK on Windows. The error seems to suggest that and the compilation on Windows works fine here.
You should check the OpenCL headers, the definition of "cl_ulong" type should be like:
I was using the same SDK, but since I installed the CUDA SDK, NVIDIA OpenCL is found and used.
The definition in 'cl_platform.h' in both SDKs matches the one you posted above.
Compilation with OpenCL and with CUDA is ok, the problem is when OpenCL is disabled.
The cl headers are not loaded in that case, even if 'ocl.h' is included, so 'cl_ulong' is not defined.
acasta69 wrote: ↑Fri May 22, 2020 12:45 pm
Compilation with OpenCL and with CUDA is ok, the problem is when OpenCL is disabled.
Ah, ok, it makes sense, I was thinking the error was when compiling the OpenCL enabled version. Indeed, cl_ulong is an OpenCL data type and it is not defined when OpenCL is not enabled.
I pushed a fix.
Support LuxCoreRender project with salts and bounties
acasta69 wrote: ↑Fri May 22, 2020 12:45 pm
Compilation with OpenCL and with CUDA is ok, the problem is when OpenCL is disabled.
Ah, ok, it makes sense, I was thinking the error was when compiling the OpenCL enabled version. Indeed, cl_ulong is an OpenCL data type and it is not defined when OpenCL is not enabled.
I pushed a fix.
TYVM to both
---------------------------
Commit 93de16134
Dade wrote: ↑Fri Jun 12, 2020 9:07 pm
It is the same error than before: "An internal error has occurred in the compiler". Your compiler is broken (or you have an hardware problem).
OK. After restarting Windows "Build succeeded."
Indeed, something got corrupt on my side & now I at least know what to do, if it happens again, so: "Thank you for the note."
Hi everyone,
I'm attempting to build the LuxCoreRender for the first time using VS2019, but I'm getting the following errors from complex in slg-core project. Am I missing something?
Just checked and it's happening also here, I'm going to look into that.
By the way, did you use the "cmake-build-x64.bat" to build with VS2019?
Could you please let me know if the script has correctly detected VS2019 or you had to use the "/vs2019" switch?
It should be possible to see that from the very first lines of output, before it begins detecting cmake.
Thank you in advance, it helps having some feedback as VS2019 is not much tested at the moment.
Support LuxCoreRender project with salts and bounties