- Posts: 4819
- Thank you received: 0
Problems with including comp userspace application file to LinuxCNC project
Yes that would explain it.Maybe this is the case because I have took linuxcnc install CD iso file.
I guess you could try to purge linuxcnc from the system and then go through the rip installation again.
Is there a compelling reason for using version 2.8?
If not then I would try a debian Bookworm installation and do a rip installation of linuxcnc from github _without_ installing the 'linuxcnc' package from the package manager.
Please Log in to join the conversation.
Please Log in to join the conversation.
From what I understand you are trying to work on the source code and for that you need a rip installation. If I got that wrong and you only want to work on components and thus only need halcompile then you don't need the full source and thus you don't need a rip install then a linuxcnc iso should be fine. Although you will need the 'linuxcnc-dev' package.
Please Log in to join the conversation.
If I understand you correctly there can be problems with this approach because the links to different software parts are not consistent any more?
The solution for that would be to take a fresh official debian installation and get the LinuxCNC from the github then make -> sudo make setuid. If I understand you correctly this is called a rip installation?
Regarding downloading official LinuxCNC packages there are several possibilities. I can proceed with master or take 2.8 or 2.9. Which would you recommend to work with, I mean, it will work fine without further tweaking?
Just for my knowledge: how to purge the LinuxCNC from the system? Do you delete with that whole software package together with links?
Please Log in to join the conversation.
YesIf I understand you correctly there can be problems with this approach because the links to different software parts are not consistent any more?
YesThe solution for that would be to take a fresh official debian installation and get the LinuxCNC from the github then make -> sudo make setuid. If I understand you correctly this is called a rip installation?
If you are fine with using python3/gtk3 then proceed with 2.9 if you don't need the absolute bleeding edge of development.Regarding downloading official LinuxCNC packages there are several possibilities. I can proceed with master or take 2.8 or 2.9. Which would you recommend to work with, I mean, it will work fine without further tweaking?
[edit] Since you don't want to install 'packages' with a rip installation '2.9'/'master' here refers to the github branch.[/edit]
What I meant is that you could try to get rid of the deb installation using:Just for my knowledge: how to purge the LinuxCNC from the system?
$ sudo apt purge linuxcnc
and/or
$ sudo apt purg linuxcnc-dev
But really, instead of fiddling with the mess you might just as well give yourself a clean rip installation using bookworm. Which will require the installation of the needed dependencies for linuxcnc, of course.
[/quote]
Please Log in to join the conversation.
I have made a fresh installation on a new harddisk and downloaded linuxcnc 2.9 from the github. Now I would like to make a compile of the software package, but some things are missing. Bussiness as usual.
So far I was able to install following software:
sudo apt-get install automake
apt install build-essential
sudo apt-get install pkg-config
sudo apt-get install libudev-dev
sudo apt-get install libmodbus-dev
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libglib2.0-dev
sudo apt-get install libgtk2.0-dev
sudo apt install libgtk-3-dev
sudo apt-get update -y
sudo apt-get install -y yapps2
apt-get install intltool
sudo apt-get install libboost-all-dev
sudo apt-get install tcl-lib
sudo apt-get update
sudo apt-get install tcl tcllib
apt-get install tk
apt-get install python-tk
sudo apt install python3-tk
But when I run ./configure --with-realtime=uspace
I get this error:
checking whether boost_python is the correct library... no
checking whether boost_python311 is the correct library... yes
checking whether to build documentation... no
checking for sys/io.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for optreset... no
checking for library containing dlopen... none required
checking for library containing clock_nanosleep... none required
checking for tcl... tclConfig.sh not found, trying tcl.h and libs.
If it doesn't work try running ./configure --with-tclConfig=<path to tclConfig.sh>
checking for tcl.h... no
checking for library containing Tcl_Init... -ltcl8.6
checking for tk... dirname: missing operand
Try 'dirname --help' for more information.
tkConfig.sh not found, trying tk.h and libs.
If it doesn't work try running ./configure --with-tkConfig=<path to tkConfig.sh>
checking for tk.h... no
checking for library containing Tk_Init... no
configure: error: tk lib not found
What to do to get tk lib installed?
Please Log in to join the conversation.
I did a video which is still current.
Please Log in to join the conversation.
Now I am in a position to start the linuxcnc from console and when I do that I get following printouts:
smal@linuxcnc:~/linuxcnc-2.9$ linuxcnc
LINUXCNC - 2.9.0~pre1
Machine configuration directory is '/home/smal/linuxcnc-2.9/configs/sim/axis'
Machine configuration file is 'axis.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/core_sim.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/sim_spindle_encoder.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/axis_manualtoolchange.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/simulated_home.hal
Found file(lib): /home/smal/linuxcnc-2.9/lib/hallib/check_xyz_constraints.hal
Found file(REL): ./cooling.hal
Traceback (most recent call last):
File "/home/smal/linuxcnc-2.9/bin/axis", line 24, in <module>
from OpenGL.GL import *
ModuleNotFoundError: No module named 'OpenGL'
Shutting down and cleaning up LinuxCNC...
link (updating variable file): No such file or directory
task: 75 cycles, min=0.000014, max=0.001701, avg=0.001040, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Note: Using POSIX non-realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/smal/linuxcnc_debug.txt
and
/home/smal/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
smal@linuxcnc:~/linuxcnc-2.9$ cd src
smal@linuxcnc:~/linuxcnc-2.9/src$ git pull
bash: git: command not found
smal@linuxcnc:~/linuxcnc-2.9/src$
What is with this OpenGL Module? Does it has to be installed separatelly?
Please Log in to join the conversation.
Just to clarify this detail.
Please Log in to join the conversation.
To run one you need to open a terminal, cd to the respective folder and do:
$ source scripts/rip-environment
As for the openGL error, try
$ sudo apt install python3-opengl
[edit]
The problems come from having both 'RIP' and 'package' installs on the same system.
Please Log in to join the conversation.
