Hi,
I tried building Luxcore based on the instructions in GitHub (WindowsCompile).
I got the following error.
VS 2017 community edition is installed in my computer.
Any help is greatly appreciated .
Luxcore build error
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: Luxcore build error
Hi, it seems that for some reason cmake cannot find a C/C++ compiler.
Could it be that you have installed Visual Studio, but without selecting C/C++ development components?
You could try to run the installer again and verify that something like "Desktop development with C++" is selected.
Could it be that you have installed Visual Studio, but without selecting C/C++ development components?
You could try to run the installer again and verify that something like "Desktop development with C++" is selected.
Re: Luxcore build error
Windows Desktop application in Visual C++ is installed.
But from version 2.1 the OpenCL code are moved to .cl files. The .cl files are converted to .cpp files during the preprocess section of the build process.
So I just run the build process to collect the opencl files in .cpp fomat and use it in my VS project.
I think the below two files are mainly involved in generating .cl to .cpp files.
\luxcorerender\LuxCore\cmake\KernelPreprocess
\luxcorerender\LuxCore\cmake\Scripts\PreprocessKernel
I don't know how to use cmake and batch scripts.
Could you please provide me a batch script just to convert the .cl files in .cpp format, so that i don't need to run the entire build process and don't worry about the above error. Thanks .
Previously, I was adding source files directly to the VS IDE, and build pyluxcore from it (as I need to change some source files according to my needs).But from version 2.1 the OpenCL code are moved to .cl files. The .cl files are converted to .cpp files during the preprocess section of the build process.
So I just run the build process to collect the opencl files in .cpp fomat and use it in my VS project.
I think the below two files are mainly involved in generating .cl to .cpp files.
\luxcorerender\LuxCore\cmake\KernelPreprocess
\luxcorerender\LuxCore\cmake\Scripts\PreprocessKernel
I don't know how to use cmake and batch scripts.
Could you please provide me a batch script just to convert the .cl files in .cpp format, so that i don't need to run the entire build process and don't worry about the above error. Thanks .
Re: Luxcore build error
Fix the real problem, don't do additional work to just work around. There must be a reason why for you (and only for you) cmake does't detect VisualC++: https://stackoverflow.com/questions/516 ... ual-studio
Re: Luxcore build error
I agree, and the most likely solution is in the link posted by Dade.Dade wrote: ↑Thu Mar 28, 2019 10:17 am Fix the real problem, don't do additional work to just work around. There must be a reason why for you (and only for you) cmake does't detect VisualC++: https://stackoverflow.com/questions/516 ... ual-studio
Once that works, the easiest way to generate the files you need is:
Code: Select all
cmake-build-x64.bat /cmake-only
Re: Luxcore build error
Yes, After installing the "Visual C++ tools for CMake" feature, the kernel files are generated and all source files are compiled.acasta69 wrote: ↑Thu Mar 28, 2019 10:27 amI agree, and the most likely solution is in the link posted by Dade.Dade wrote: ↑Thu Mar 28, 2019 10:17 am Fix the real problem, don't do additional work to just work around. There must be a reason why for you (and only for you) cmake does't detect VisualC++: https://stackoverflow.com/questions/516 ... ual-studio
Once that works, the easiest way to generate the files you need is:This will run only the cmake preprocessing, including generation of VS solution and kernel CPP files, without running the actual build.Code: Select all
cmake-build-x64.bat /cmake-only
But, got this error after object files are generated I got the required Kernel files for my project. So I can skip the rest of build process (no problem). But if the error can be corrected, let me know so that I can correct that too.
Thanks for the info Dade and acasta69 .
Re: Luxcore build error
I may have had the same MSB6006 error.
Then i had to redo this:
pip install pyinstaller
press enter
pip install PySide2
press enter
pip install numpy
press enter
---------------
EDIT
If you have nVidia GPU, then CUDA toolkit has to be installed.
Then i had to redo this:
pip install pyinstaller
press enter
pip install PySide2
press enter
pip install numpy
press enter
---------------
EDIT
If you have nVidia GPU, then CUDA toolkit has to be installed.
Last edited by Fox on Thu Mar 28, 2019 2:08 pm, edited 1 time in total.
Re: Luxcore build error
I'm glad it's working now.
If not, that's the most likely cause: the pyluxcoretools cmake script deletes some files in order to regenerate them with the available PySide version. If PySide is not found, these files will be missing.
Anyway, you only need this if you want to have working pyluxcoretools.
All other binaries should have been built correctly.
Do you have a working Python3 with PySide2 also installed?
If not, that's the most likely cause: the pyluxcoretools cmake script deletes some files in order to regenerate them with the available PySide version. If PySide is not found, these files will be missing.
Anyway, you only need this if you want to have working pyluxcoretools.
All other binaries should have been built correctly.