Build LuxCore with Python version 3.6

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Build LuxCore with Python version 3.6

Post by DorPrz »

Hello all,
I followed this guide:
https://github.com/LuxCoreRender/WindowsCompile
And I want to build with python version 3.6 (I also have blender version with 3.6 python https://github.com/TylerGubala/blenderpy)
What should I change to make it work?
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Build LuxCore with Python version 3.6

Post by acasta69 »

You can build luxcore with Python 3.6 with this command:

Code: Select all

cmake-build-x64.bat /python36
I have tested the resulting pyluxcore with a blender buildbot build, I assume you are using one of those...
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Build LuxCore with Python version 3.6

Post by DorPrz »

That worked, but now I understand that I wanted to build it as a addon for blender (blendluxcore?) Can it be done?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Build LuxCore with Python version 3.6

Post by B.Y.O.B. »

Clone BlendLuxCore repo, then run get_binaries.py.
See the readme here for more information:
https://github.com/LuxCoreRender/BlendL ... master/bin

After that, you can copy or symlink the BlendLuxCore repo to your Blender addons directory (or zip it and install via user preferences).
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Build LuxCore with Python version 3.6

Post by DorPrz »

pyluxcoretool.exe is missing, what could be the problem?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Build LuxCore with Python version 3.6

Post by Dade »

DorPrz wrote: Mon Sep 17, 2018 2:03 pm pyluxcoretool.exe is missing, what could be the problem?
Missing PyInstaller when building LuxCore :?:
Support LuxCoreRender project with salts and bounties
DorPrz
Posts: 17
Joined: Tue Sep 04, 2018 2:34 pm

Re: Build LuxCore with Python version 3.6

Post by DorPrz »

Dade wrote: Mon Sep 17, 2018 2:39 pm
DorPrz wrote: Mon Sep 17, 2018 2:03 pm pyluxcoretool.exe is missing, what could be the problem?
Missing PyInstaller when building LuxCore :?:
Hoped it was it but no, pyinstaller is installed and working:
Image
The build had some warnings I don't know if they are related
Image
Could I generate it manually perhaps? What is the pyinstaller command?
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Build LuxCore with Python version 3.6

Post by B.Y.O.B. »

Maybe you are missing PySide?

Anyway, BlendLuxCore works without pyluxcoretools as well, they are only needed for network rendering.
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Build LuxCore with Python version 3.6

Post by acasta69 »

If you need pyluxcoretools.exe, you can generate it after the build is completed with this command:

Code: Select all

create-standalone.bat
You will then find a folder named "luxcorerender" containing all required files, including that one.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
mib2berlin
Posts: 53
Joined: Fri Apr 06, 2018 6:29 pm

Re: Build LuxCore with Python version 3.6

Post by mib2berlin »

Hi, if I understand this correctly Blender dev´s upgrade to Python 3.7.
Because you´re at it may change to 3.7 too.

Cheers, mib

https://developer.blender.org/rB51ac494 ... 61d6ba3ad9
Post Reply