Problems with building Linux CNC source

More
05 Aug 2021 21:08 #217011 by rodw
Me too. Try
pip3 install PyGObject

On my system it says it was installed with Cairo

I think QScintilla might have been a red herring. I picked it up from some stuff I read trying to fix dependencies myself.

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

More
05 Aug 2021 21:15 #217012 by smal
I have tried with PyGObject. And the answer was:

Requirement already satisfied: PyGObject in /usr/lib/python3/dist-packages (3.30.4)
Requirement already satisfied: pycairo>=1.11.1 in /usr/lib/python3/dist-packages (from PyGObject) (1.16.2)

As seen already installed.

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

More
06 Aug 2021 02:08 #217018 by phillc54
The opengl module you require is probably python3-opengl so try sudo apt install python3-opengl.

I see in one of your ealier posts that the qt install script used python2 which means that your systems default python version is python2.

I pushed a change yesterday that sets the install script to python3 regardless of the system version so you could your update your repo and try the script again.

The above assumes that you are trying to build master branch.
 

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

More
06 Aug 2021 19:15 - 06 Aug 2021 19:25 #217071 by smal
 

File Attachment:

File Name: linuxcnc_r...8-06.txt
File Size:11 KB
 

File Attachment:

File Name: linuxcnc_info.txt
File Size:4 KB
OK. I see I have the same problem.
What exactly I have done:
1. I have downloaded zip file from: github.com/LinuxCNC/linuxcnc
2. Unzipping it and copied to my working directory as linuxcnc-master/.
3. Followed by the standard procedure:
cd linuxcnc-master/src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
~/linuxcnc-master/lib/python/qtvcp/designer$ ./install_script
4. After that I have started the application:
/home/smal/linuxcnc-master/scripts/linuxcnc '/home/smal/linuxcnc/configs /smal3D_CNC_machine/smal3D_CNC_machine.ini'

with the same result as before with the linuxcnc-dev software package:

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
File "/home/smal/linuxcnc-master/bin/gladevcp", line 50, in <module>
import gladevcp.makepins
File "/home/smal/linuxcnc-master/lib/python/gladevcp/__init__.py", line 1, in <module>
from .hal_pythonplugin import *
File "/home/smal/linuxcnc-master/lib/python/gladevcp/hal_pythonplugin.py", line 42, in <module>
from .hal_sourceview import *
File "/home/smal/linuxcnc-master/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()
12913
12943
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7fa109afa000
Note: Using POSIX realtime

In the attachment is the complete linuxcnc.report 

Attachment not found

Attachments:
Last edit: 06 Aug 2021 19:25 by smal. Reason: Add attachment

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

More
06 Aug 2021 19:18 #217073 by cmorley
I see Smal said he was using 2.8.2.
If he is trying to compile a 2.8 version there is _NO_ python3 libraries required.
It wont hurt but won't help either.

Only master uses python 3

Smal if you could confirm what version of linuxcnc you wish to compile, what operating system you are using please.

My bet was you are missing a library called python-cairo but i can;t confirm if that is the actual name of the package or it's called something different.

It would be nice if linuxcnc documented dependencies some where in the docs for reference.

Chris

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

More
06 Aug 2021 19:21 #217074 by cmorley
Oh and I read somewhere on the net that installing the cairo package with PIP didn't always work properly.
Should always try to use the OS packages first IMHO

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

More
06 Aug 2021 19:39 #217077 by smal
Hi Chris
I am using: LinuxCNC 2.8.2 Debian 10 Buster PREEMPT-RT ISO
I have made a fresh install on another disc so there is absolutely no interference with my previous wheezy experiments.
Actually compiling the downloaded linuxcnc software is not a problem any more. With a fresh install of 2.8.2 and following instruction on: linuxcnc.org/docs/html/code/building-linuxcnc.html compiling works as expected.
The real problem here is to make the compiled software package work with my hardware.

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

More
06 Aug 2021 19:44 #217078 by smal
Chris:
Actually what version of software I am exactly using you can find in the attached linuxcnc.report file above.

Simon

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

More
06 Aug 2021 19:44 #217079 by cmorley
Well that confusing as you just quoted linuxcnc-master in your post above.

linuxcnc 2.8 and linuxcnc-master are very different now.

Chris

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

More
06 Aug 2021 19:47 #217080 by cmorley
ok then you _are_ compiling linuxcnc-master and so python 3 libraries are required.

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

Time to create page: 0.119 seconds
Powered by Kunena Forum