opoppopopp wrote: ↑Wed Dec 29, 2021 3:23 pm
So can I use the same guide document and script to compile against 2.7 on windows?
Because seems the parameters are all 3.x
We have removed the support for Python 2.7 months ago (end of official support has been 01-01-2020), however, as Dade said, it should still be possible to compile LuxCore with Python 2.7.
First of all, you need to restore the required Python 2.7 dependencies (Python includes, Boost.Python and Boost.NumPy) in the LuxCore dependency tree.
The easiest way to get them is to download an old version of the binary dependencies:
https://github.com/LuxCoreRender/Window ... _v2.6_1.7z
Unzip the downloaded file, then copy everything related to Python 2.7 to the WindowsCompileDeps directory you are currently using to build LuxCore (the "include\Python27" folder and the following files in x64\Release\lib: libboost_numpy27-vc141-mt-x64-1_72.lib, libboost_python27-vc141-mt-x64-1_72.lib, python27.dll, python27.lib).
You also need to restore support for the "/python27" switch in "cmake-build-x64.bat".
It should be straightforward, just add this line
Code: Select all
if /i "%1" EQU "/python27" set PYTHON_VERSION=27
near the similar lines 33-37 for the other python versions.
Now it should be possible to build:
I hope I did not forget anything. I'll try to give support in case of problems...