Problems with building Linux CNC source

More
05 Aug 2021 11:05 #216961 by smal
After installing new Linux CNC 2.8.2, downloading source, resolving dependencies etc. I was able to build the software package. All that was done according to this document:

linuxcnc.org/docs/html/code/building-linuxcnc.html

Now I would like to run the recompiled Linux CNC with my ini file and I get the following error message:

Debug file information:
Note: Using POSIX realtime
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 6.000 units/sec 360.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
Traceback (most recent call last):
File "/home/smal/linuxcnc-dev/bin/axis", line 3929, in <module>
get_coordinate_font(vars.dro_large_font.get())
File "/home/smal/linuxcnc-dev/bin/axis", line 3808, in get_coordinate_font
glnav.use_pango_font(coordinate_font, 0, 128)
File "/home/smal/linuxcnc-dev/lib/python/glnav.py", line 13, in use_pango_font
import cairo
ModuleNotFoundError: No module named 'cairo'
1287
1318
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f81503b5000
Note: Using POSIX realtime

When I try to install the cairo package I get this message:

sudo apt install libcairo2

Reading package lists... Done
Building dependency tree
Reading state information... Done
libcairo2 is already the newest version (1.16.0-4+deb10u1).
libcairo2 set to manually installed.
The following package was automatically installed and is no longer required:
gstreamer1.0-pulseaudio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What to do to get my compiled Linux CNC in working condition?

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 11:34 - 05 Aug 2021 11:35 #216966 by snowgoer540
Based on recent things I've seen other people say other places, try:

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
Last edit: 05 Aug 2021 11:35 by snowgoer540.
The following user(s) said Thank You: smal

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 12:17 - 05 Aug 2021 12:19 #216968 by smal
Now OpenGL seems to be the problem:

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
File "/home/smal/linuxcnc-dev/bin/gladevcp", line 50, in <module>
import gladevcp.makepins
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/__init__.py", line 1, in <module>
from .hal_pythonplugin import *
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py", line 30, in <module>
from .hal_gremlin import HAL_Gremlin
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/hal_gremlin.py", line 36, in <module>
import gremlin
File "/home/smal/linuxcnc-dev/lib/python/gremlin.py", line 47, in <module>
from OpenGL.GL import *
ModuleNotFoundError: No module named 'OpenGL'
<commandline>:0: waitpid failed gladevcp gladevcp
<commandline>:0: gladevcp exited without becoming ready
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 6.000 units/sec 360.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
5420
5451
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f2aefd31000
Note: Using POSIX realtime

What to install next to solve this problem?
Last edit: 05 Aug 2021 12:19 by smal. Reason: Syntax Error

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 12:37 #216969 by snowgoer540
Have you done this part of building linuxcnc: linuxcnc.org/docs/html/code/building-lin...g-Build-Dependencies

Otherwise, I don't have access to the list of required dependencies to install at the moment.

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 12:46 - 05 Aug 2021 12:47 #216971 by rodw
Try this. I had a lot of fun with dependencies NOT
pip3 install --upgrade setuptools
pip3 install QScintilla
pip3 install numpy
pip3 install PyOpenGL
Last edit: 05 Aug 2021 12:47 by rodw.

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 12:57 #216972 by smal
Yes, with this command: dpkg-checkbuilddeps I dont get any missing libraries.

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 13:01 #216973 by smal
I dont have pip3. With using sudo apt install I get:

smal@LinuxCNC:~/linuxcnc-dev$ sudo apt install --upgrade setuptools
[sudo] password for smal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package setuptools
smal@LinuxCNC:~/linuxcnc-dev$ sudo apt install QScintilla
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package QScintilla

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 15:03 #216984 by snowgoer540
try running Phill's qtvcp script, I think it may cover some dependencies you are in need of as it definitely covers "python3-cairo python3-gi-cairo":
~/linuxcnc-dev/lib/python/qtvcp/designer/install_script

Apologize I didnt think of this earlier.

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 15:55 #216990 by smal
I have tried with the install_script and after installing numerous software packages I have the same problem as before: OpenGL is missing. Should there be any other action than ./install_script to make every thing work? I mean at the bottom of printouts I can see:

installing python2 tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython-dev is already the newest version (2.7.16-1).
libpython-dev set to manually installed.
The following package was automatically installed and is no longer required:
gstreamer1.0-pulseaudio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

rename original plugin module


copy python2 plugin module from:
/home/smal/linuxcnc-dev/lib/python/qtvcp/designer/x86_64/qt5.11/libpyqt5_py2.so.tar.gz
to:
/usr/lib/x86_64-linux-gnu/qt5/plugins/designer


create plugin link at:
~/.designer/plugins/python/


Installation complete, designer can be started with:

designer -qt=5

After setting the rip-environment

Are this actions of any importance? Do I have to perform them?
After this solution didn't worked I have installed the pip3 software. Then I have installed the proposed packages with:

pip3 install --upgrade setuptools
pip3 install QScintilla
pip3 install numpy
pip3 install PyOpenGL

All except of QScintilla were installed without errors. With Qscintila I got:

smal@LinuxCNC:~$ pip3 install QScintilla
Collecting QScintilla
Downloading files.pythonhosted.org/packages/46/a3/27...ntilla-2.13.0.tar.gz (1.7MB)
100% |████████████████████████████████| 1.7MB 752kB/s
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-7h9y2a5j/QScintilla/setup.py'

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-7h9y2a5j/QScintilla/

I hope that this does not affect anything. After trying to start the LinuxCNC I got this message:

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
File "/home/smal/linuxcnc-dev/bin/gladevcp", line 50, in <module>
import gladevcp.makepins
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/__init__.py", line 1, in <module>
from .hal_pythonplugin import *
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/hal_pythonplugin.py", line 42, in <module>
from .hal_sourceview import *
File "/home/smal/linuxcnc-dev/lib/python/gladevcp/hal_sourceview.py", line 28, in <module>
gi.require_version("GtkSource","3.0")
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available
<commandline>:0: waitpid failed gladevcp gladevcp
<commandline>:0: gladevcp exited without becoming ready
note: MAXV max: 25.000 units/sec 1500.000 units/min
note: LJOG max: 25.000 units/sec 1500.000 units/min
note: LJOG default: 6.000 units/sec 360.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
8653
8683
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7f70dd796000
Note: Using POSIX realtime

I guess I am making some progress because the missing OpenGL is not active any more. But what to do in this case?

Please Log in or Create an account to join the conversation.

More
05 Aug 2021 16:24 #216992 by snowgoer540
Unfortunately, I've run out of "poke and hope" suggestions.  Someone else will have to step in hopefully with the answer. 

Please Log in or Create an account to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum