Linux Compiling LuxCore

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.
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Linux Compiling LuxCore

Post by Fox »

Is this also pyside2 related:

Code: Select all

[LuxCore][6.530] Configuration: 
[LuxCore][6.530]   film.width = "800"
[LuxCore][6.530]   film.height = "800"
[LuxCore][6.530]   scene.file = "scenes/cornell/cornell.scn"
[LuxCore][6.530]   path.photongi.photon.maxcount = "10000000"
[LuxCore][6.530]   path.photongi.photon.maxdepth = "4"
[LuxCore][6.530]   path.photongi.indirect.enabled = "0"
[LuxCore][6.530]   path.photongi.indirect.maxsize = "0"
[LuxCore][6.530]   path.photongi.indirect.lookup.radius = "0.0"
[LuxCore][6.530]   path.photongi.caustic.enabled = "0"
[LuxCore][6.530]   path.photongi.caustic.maxsize = "10000"
[LuxCore][6.530]   path.photongi.caustic.lookup.radius = "0.15"
[LuxCore][6.530]   path.pathdepth.total = "5"
[LuxCore][6.530]   film.imagepipelines.0.0.type = "GAMMA_CORRECTION"
[LuxCore][6.530]   film.imagepipelines.0.0.value = "2.2"
[LuxCore][6.531]   film.imagepipelines.1.0.type = "INTEL_OIDN"
[LuxCore][6.531]   film.imagepipelines.1.1.type = "GAMMA_CORRECTION"
[LuxCore][6.531]   film.imagepipelines.1.1.value = "2.2"
[LuxCore][6.531]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][6.531]   film.outputs.0.index = "0"
[LuxCore][6.531]   film.outputs.0.filename = "normal.png"
[LuxCore][6.531]   film.outputs.1.type = "RGB_IMAGEPIPELINE"
[LuxCore][6.531]   film.outputs.1.index = "1"
[LuxCore][6.531]   film.outputs.1.filename = "denoised.png"
[LuxCore][6.531]   film.outputs.2.type = "ALBEDO"
[LuxCore][6.531]   film.outputs.2.filename = "cornell_ALBEDO.png"
[LuxCore][6.531]   film.outputs.3.type = "AVG_SHADING_NORMAL"
[LuxCore][6.531]   film.outputs.3.filename = "cornell_AVG_SHADING_NORMAL.exr"
[LuxCore][6.531] File Name Resolver Configuration: 
[LuxCore][6.531]   .
[LuxCore][6.531]   /home/human/LuxCore-opencl/scenes/cornell
[SDL][6.531] Reading scene: ./cornell.scn
[SDL][6.531] Material definition: Khaki
[SDL][6.531] Material definition: HalveRed
[SDL][6.531] Material definition: DarkGreen
[SDL][6.531] Material definition: Light
[SDL][6.531] Camera type: perspective
[SDL][6.531] Camera position: Point[-2.78, -8, 2.73]
[SDL][6.531] Camera target: Point[-2.78, 2, 2.73]
[SDL][6.531] Camera clipping plane disabled
RenderConfig loading error: 
Unable to parse PLY file './Khaki.ply'
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Linux Compiling LuxCore

Post by Dade »

The file "Khaki.ply" is missing in "/home/human/LuxCore-opencl/scenes/cornell". It is referenced inside the "home/human/LuxCore-opencl/scenes/cornell/cornell.scn" file.

The is a normal LuxCore error, nothing related to PySide2.
Support LuxCoreRender project with salts and bounties
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Linux Compiling LuxCore

Post by Fox »

It can not load the cornell scene from working windows build either.

I'm pretty sure it's Linux Python issue.
Even in Windows after installing new Python version i had to reinstall other dependencies.
But in Linux you can not remove some of the dependencies, :D or Linux won't boot up again.

And the Linux Python is a mess, it's installed all over the place, one has missing headers, another doesn't have numpy and so on.

In Windows i use this to start render:

Code: Select all

cd C:\Users\Human\Documents\LuxCoreUI_Windows
luxcoreui.exe -o C:\Users\Human\Documents\Rendering\render.cfg -f scene.scn -w 6000 -e 4500
But in linux this does not work as luxcoreui -o /
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Linux Compiling LuxCore

Post by u3dreal »

Fox wrote: Mon Feb 17, 2020 4:11 pm It can not load the cornell scene from working windows build either.

I'm pretty sure it's Linux Python issue.
Even in Windows after installing new Python version i had to reinstall other dependencies.
But in Linux you can not remove some of the dependencies, :D or Linux won't boot up again.

And the Linux Python is a mess, it's installed all over the place, one has missing headers, another doesn't have numpy and so on.

In Windows i use this to start render:

Code: Select all

cd C:\Users\Human\Documents\LuxCoreUI_Windows
luxcoreui.exe -o C:\Users\Human\Documents\Rendering\render.cfg -f scene.scn -w 6000 -e 4500
But in linux this does not work as luxcoreui -o /
Try to use pyenv to install and set python version ...
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Linux Compiling LuxCore

Post by Fox »

u3dreal wrote: Mon Feb 17, 2020 5:52 pm Try to use pyenv to install and set python version ...
I found out my default python was 2.7. So via pyenv i have now installed python 3.7.4 and made it default, as this version works in windows,
but i have no way to install PySide2. I uninstalled it, but it only installs in non pyenv version of python

Luxcore error:
ModuleNotFoundError: No module named 'PySide2'

Code: Select all

human@human:~$ cd /home/human/Documents/Linux_Custom_LuxCoreRender_Ui_0113979/
human@human:~/Documents/Linux_Custom_LuxCoreRender_Ui_0113979$ python3 pyluxcoretools.zip --help
ModuleNotFoundError: No module named 'numpy'
ImportError: numpy.core._multiarray_umath failed to import
Traceback (most recent call last):
  File "pyluxcoretools.zip/pyluxcoretools/pyluxcoremenu/cmd.py", line 25, in <module>
    
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/human/.pyenv/versions/3.7.4/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/human/.pyenv/versions/3.7.4/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "pyluxcoretools.zip/__main__.py", line 73, in <module>
  File "pyluxcoretools.zip/pyluxcoretools/pyluxcoremenu/cmd.py", line 30, in <module>
    commands that have no complete_ method.
ModuleNotFoundError: No module named 'PySide2'
human@human:~/Documents/Linux_Custom_LuxCoreRender_Ui_0113979$ 
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Linux Compiling LuxCore

Post by Fox »

:D Yeeeey, got it working :D

The commands for virtualenv are little different.

This tutorial was very helpful https://www.youtube.com/watch?v=fv8YxO3AJqg
Installed Python 3.7.4
python3 -m pip install virtualenv numpy
pip install --upgrade virtualenv pip
python3 -m pip install virtualenv pyinstaller
python3 -m pip install virtualenv PySide2
kUbuntu 19.10 LuxCoreRender.jpg
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Linux Compiling LuxCore

Post by u3dreal »

Excellent ! :geek:
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
Fox
Posts: 437
Joined: Sat Mar 31, 2018 11:17 am

Re: Linux Compiling LuxCore

Post by Fox »

Dade wrote: Sun Feb 16, 2020 9:31 am The file "Khaki.ply" is missing in "/home/human/LuxCore-opencl/scenes/cornell". It is referenced inside the "home/human/LuxCore-opencl/scenes/cornell/cornell.scn" file.
Is this not because scene.objects.Khaki.ply = scenes/cornell/Khaki2.ply
--------
EDIT
Nevermind, renaming
Khaki.ply = scenes/cornell/Khaki2.ply to:
Khaki2.ply = scenes/cornell/Khaki2.ply
didn't work out

This is how i ended up compiling, some of the dependencies i got from azureus script and i don't know if all that is needed.

Pyenv tutorial https://www.youtube.com/watch?v=fv8YxO3AJqg
Install python 3.7.4
python3 -m pip install virtualenv numpy
pip install --upgrade virtualenv pip
python3 -m pip install virtualenv pyinstaller
python3 -m pip install virtualenv PySide2
sudo apt-get install -y libtool-bin flex bison libgtk-3-dev libgl1-mesa-dev ocl-icd-opencl-dev
wget https://www.khronos.org/registry/OpenCL/api/2.1/cl.hpp
sudo cp cl.hpp /usr/include/CL/cl.hpp
Install cuda toolkit.
Install newest cmake from software center.
----------------------------------------------------------------------------------------------
git clone https://github.com/LuxCoreRender/LinuxCompile.git
cd LinuxCompile
git clone https://github.com/LuxCoreRender/LuxCore.git LuxCore-opencl
cd LinuxCompile
CPLUS_INCLUDE_PATH=/home/human/.pyenv/versions/3.7.4/include/python3.7m/
export CPLUS_INCLUDE_PATH
./build-64-sse2 LuxCore-opencl
----------------------------------------------------------------------------------------------
Post Reply