Hi dear,
I'm installing linuxcnc from source (2.9 version) on a RPi4.
Software building runs fine, no error at all but I cannot start in simulation mode to make my first tests.
I mean, I run the following on the command line:
Code:
. /home/pi/linuxcnc/scripts/rip-environment
linuxcnc
Then I select any default configuration among qtdragon, qmoccapy, even axis and always get the same in my linuxcnc_debug.txt:
Can not find -sec TRAJ -var TPMOD -num 1
Can not find -sec EMCMOT -var HOMEMOD -num 1
Here is my log:
Code:
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/pi/linuxcnc/configs/sim/qtvcp_screens/qtdragon'
Machine configuration file is 'qtdragon.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./core_sim.hal
Found file(lib): /home/pi/linuxcnc/lib/hallib/simulated_home.hal
[QTvcp][INFO] Logging to "/home/pi/linuxcnc/configs/sim/qtvcp_screens/qtdragon/qtdragon.log" (logger.py:102)
Traceback (most recent call last):
File "/home/pi/linuxcnc/bin/qtvcp", line 22, in <module>
from qtvcp.lib import xembed
File "/home/pi/linuxcnc/lib/python/qtvcp/lib/xembed.py", line 47, in <module>
from Xlib.protocol import event
ModuleNotFoundError: No module named 'Xlib'
Shutting down and cleaning up LinuxCNC...
task: 205 cycles, min=0.000029, max=0.024989, avg=0.009657, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/pi/linuxcnc_debug.txt
and
/home/pi/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Here is my linuxcnc_debug.txt:
Code:
Can not find -sec TRAJ -var TPMOD -num 1
Can not find -sec EMCMOT -var HOMEMOD -num 1
7633
7670
Stopping realtime threads
Unloading hal components
And my linuxcnc_debug.txt:
Code:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/pi/linuxcnc/bin
LINUXCNC_TCL_DIR=/home/pi/linuxcnc/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/pi/linuxcnc/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/pi/linuxcnc/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
INIFILE=/home/pi/linuxcnc/configs/sim/qtvcp_screens/qtdragon/qtdragon.ini
VERSION=1.1
PARAMETER_FILE=qtdragon.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=qtvcp qtdragon
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Starting TASK program: milltask
Starting DISPLAY program: qtvcp
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
I can't figure out what is happening. Whatever example configuration I try, I always get the same error basically. I am absolutely lost.
Any addressing will be appreciated!
Thanks in advance.
PS: I realize LINUXCNC_DIR, TPMOD and HOMEMOD are in blanks but, I don't know if it is ok for a default simulation configuration nor where to set up to try.