It is written with PySide (aka QT4) and designed with QtDesigner. The GUI can be accessed with the following commands:
Code: Select all
pyluxcoretool
or
pyluxcoretool netnodeui
Code: Select all
pyluxcoretool
or
pyluxcoretool netnodeui
Code: Select all
~/P/l/L/t/LuxCore› ./pyluxcoretool
Traceback (most recent call last):
File "pyluxcoretool.py", line 42, in <module>
File "/tmp/_MEIdbMKTC/pyluxcoretools.zip/pyluxcoretools/pyluxcorenetconsole/ui.py", line 25, in <module>
ImportError: No module named 'PySide'
[28652] Failed to execute script pyluxcoretool
Code: Select all
make -j 12 pyluxcoretools ; python3 samples/pyluxcoretool/pyluxcoretool.py netnodeui
When I run this, the second command crashes with SIGSEV.Dade wrote: ↑Sat Mar 17, 2018 1:08 amCode: Select all
make -j 12 pyluxcoretools ; python3 samples/pyluxcoretool/pyluxcoretool.py netnodeui
This also works in a Python3 interpreter.
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Debug .
make -j8
Code: Select all
==12586== Process terminating with default action of signal 11 (SIGSEGV)
==12586== Bad permissions for mapped region at address 0x216296
==12586== at 0x216296: ???
==12586== by 0x81200E7: std::future_category() (in /home/simon/Projekte/luxcore_build/LinuxCompile/LuxCore/lib/pyluxcore.so)
==12586== by 0x9C22718: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19)
==12586== by 0x40101D9: call_init.part.0 (dl-init.c:78)
==12586== by 0x40102C2: call_init (dl-init.c:36)
==12586== by 0x40102C2: _dl_init (dl-init.c:126)
==12586== by 0x4014CFF: dl_open_worker (dl-open.c:577)
==12586== by 0x4010093: _dl_catch_error (dl-error.c:187)
==12586== by 0x401444A: _dl_open (dl-open.c:661)
==12586== by 0x541F02A: dlopen_doit (dlopen.c:66)
==12586== by 0x4010093: _dl_catch_error (dl-error.c:187)
==12586== by 0x541F62C: _dlerror_run (dlerror.c:163)
==12586== by 0x541F0C0: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==12586==
==12586== HEAP SUMMARY:
==12586== in use at exit: 3,053,706 bytes in 6,983 blocks
==12586== total heap usage: 26,385 allocs, 19,402 frees, 16,015,063 bytes allocated
Code: Select all
import sys
from PySide.QtCore import *
from PySide.QtGui import *
# Create a Qt application
app = QApplication(sys.argv)
# Create a Label and show it
label = QLabel("Hello World")
label.show()
# Enter Qt application main loop
app.exec_()
sys.exit()
Code: Select all
david@i7-3930k:~/projects/luxcorerender/LuxCore$ python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from PySide.QtCore import *
>>> from PySide.QtGui import *
>>>
>>> # Create a Qt application
... app = QApplication(sys.argv)
>>> # Create a Label and show it
... label = QLabel("Hello World")
>>> label.show()
>>> # Enter Qt application main loop
... app.exec_()
0
>>> sys.exit()
[2]+ Terminated python3 samples/pysideluxcoredemo/pysideluxcoredemo.py
david@i7-3930k:~/projects/luxcorerender/LuxCore$
Code: Select all
Collecting PySide
Using cached PySide-1.2.4.tar.gz
Complete output from command python setup.py egg_info:
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
It works:
Ok I'll try to reinstall. Yesterday night I compiled it with multithreading, maybe that killed it.
Because I don't know how to use gdb
Code: Select all
make -j 12 pyluxcoretools ; python3 samples/pyluxcoretool/pyluxcoretool.py netnode
Code: Select all
david@i7-3930k:~/projects/luxcorerender/LuxCore$ make -j 12 pyluxcoretools
Built target pyluxcoretools
david@i7-3930k:~/projects/luxcorerender/LuxCore$ gdb python3
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...(no debugging symbols found)...done.
(gdb) r samples/pyluxcoretool/pyluxcoretool.py netnodeui