Can't build LinuxCNC pre2.9 with python3
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
i'm building a RIP inuxcnc 2.9.
i'm using config
Àter i got this message : configure: WARNING: unrecognized options: --with-pythoncd linuxcnc-dev/src
./autogen.sh
./configure --with-realtime=uspace --with-python=python3 --with-boost-python=boost_python3-py37
I can't load the widgets in QTVCP with this build.
it's always error : ImportError: /home/lmycon/linuxcnc-dev/lib/python/_hal.so: undefined symbol: _Py_FalseStruct
can you help me with this issue?
thank you very much
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7935
- Thank you received: 2154
make sure you run make clean if you had compiled any other version before hand.
Please Log in or Create an account to join the conversation.
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
yes, i ran "make clean ."
My build:
After, I linked qtvcp_plugin to qt designer and ran it.cd linuxcnc-dev/debian
./configure uspace
cd ..
dpkg-buildpackage -b -uc
cd linuxcnc-dev/src
./autogen.sh
./configure --with-realtime=uspace --with-python=python3 --with-boost-python=boost_python3-py37
make clean
make
sudo make setuid
source ../scripts/rip-environment
i got this error:
thank you so much/home/mwork/linuxcnc-dev/scripts/rip-environment designer -qt=5
('Qtvcp python plugin found:', '/home/mwork/.designer/plugins/python/qtvcp_plugin.pyc')
Traceback (most recent call last):
File "/home/mwork/.designer/plugins/python/qtvcp_plugin.py", line 23, in <module>
from qtvcp.plugins.simplewidgets_plugin import *
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/plugins/simplewidgets_plugin.py", line 5, in <module>
from qtvcp.widgets.simple_widgets import IndicatedPushButton
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/widgets/simple_widgets.py", line 17, in <module>
from qtvcp.widgets.widget_baseclass import (_HalWidgetBase,
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/widgets/widget_baseclass.py", line 19, in <module>
import hal
File "/home/mwork/linuxcnc-dev/lib/python/hal.py", line 30, in <module>
import _hal
ImportError: /home/mwork/linuxcnc-dev/lib/python/_hal.so: undefined symbol: _Py_FalseStruct
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7935
- Thank you received: 2154
Please Log in or Create an account to join the conversation.
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
ln -s /home/mwork/mworkcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
and
ln -s /home/mwork/mworkcnc/lib/python/qtvcp/plugins/qtvcp_plugin.py /home/mwork/.designer/plugins/python
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7935
- Thank you received: 2154
Also does the example QTVCP screens work?
Please Log in or Create an account to join the conversation.
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
I deleted libpyqt5_py2 in /usr/lib/x86_64-linux-gnu/qt5/plugins/designer.
I'm using old file in LinuxCNC, this name file is libpyqt5.so
I can open linuxcnc file ini with dèfault GUI.
But I can't open QT designer to modify my GUI. it's can't load QTVCP widgets.
thank you for your helping!!!!/home/mwork/linuxcnc-dev/scripts/rip-environment designer -qt=5
('Qtvcp python plugin found:', '/home/mwork/.designer/plugins/python/qtvcp_plugin.pyc')
Traceback (most recent call last):
File "/home/mwork/.designer/plugins/python/qtvcp_plugin.py", line 23, in <module>
from qtvcp.plugins.simplewidgets_plugin import *
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/plugins/simplewidgets_plugin.py", line 5, in <module>
from qtvcp.widgets.simple_widgets import IndicatedPushButton
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/widgets/simple_widgets.py", line 17, in <module>
from qtvcp.widgets.widget_baseclass import (_HalWidgetBase,
File "/home/mwork/linuxcnc-dev/lib/python/qtvcp/widgets/widget_baseclass.py", line 19, in <module>
import hal
File "/home/mwork/linuxcnc-dev/lib/python/hal.py", line 30, in <module>
import _hal
ImportError: /home/mwork/linuxcnc-dev/lib/python/_hal.so: undefined symbol: _Py_FalseStruct
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
- Posts: 7935
- Thank you received: 2154
Please Log in or Create an account to join the conversation.
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
it built success. But i still see this error when I run qtdesign.
Please Log in or Create an account to join the conversation.
- nhanpham
-
Topic Author
- Offline
- Senior Member
-
- Posts: 77
- Thank you received: 1
~/linuxcnc-dev/lib/python/qtvcp/designer$ ./install_script
installing common base packages
[sudo] password for mwork:
Reading package lists... Done
Building dependency tree
Reading state information... Done
espeak is already the newest version (1.48.04+dfsg-7+deb10u1).
espeak-ng is already the newest version (1.49.2+dfsg-8+deb10u1).
gstreamer1.0-tools is already the newest version (1.14.4-1).
sound-theme-freedesktop is already the newest version (0.8-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
installing base packages for python3
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dbus is already the newest version (1.2.8-3).
python3-opencv is already the newest version (3.2.0+dfsg-6).
python3-cairo is already the newest version (1.16.2-1+b1).
python3-gi-cairo is already the newest version (3.30.4-1).
python3-opengl is already the newest version (3.1.0+dfsg-2).
python3-dbus.mainloop.pyqt5 is already the newest version (5.11.3+dfsg-1+b3).
python3-pyqt5 is already the newest version (5.11.3+dfsg-1+b3).
python3-pyqt5.qtopengl is already the newest version (5.11.3+dfsg-1+b3).
python3-pyqt5.qtsvg is already the newest version (5.11.3+dfsg-1+b3).
python3-pyqt5.qtwebkit is already the newest version (5.11.3+dfsg-1+b3).
python3-espeak is already the newest version (0.5-1+b6).
python3-numpy is already the newest version (1:1.16.2-1).
python3-xlib is already the newest version (0.23-2).
python3-pyqt5.qsci is already the newest version (2.10.4+dfsg-2.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Do you wish to install Qt Designer for creating or modifying a GUI
1 = No, exit
2 = Yes, for a Run In Place installation
3 = Yes, for a package installation
Selection? 2
installing common tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
qttools5-dev is already the newest version (5.11.3-4).
qttools5-dev-tools is already the newest version (5.11.3-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
installing python3 tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
pyqt5-dev-tools is already the newest version (5.11.3+dfsg-1+b3).
libpython3-dev is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
create plugin link at:
~/.designer/plugins/python/
Installation complete, designer can be started with:
designer -qt=5
Please Log in or Create an account to join the conversation.