Problems with including comp userspace application file to LinuxCNC project

More
25 Aug 2023 16:07 #278936 by Aciera

Maybe this is the case because I have took linuxcnc install CD iso file.

Yes that would explain it.
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 or Create an account to join the conversation.

More
25 Aug 2023 21:14 #278956 by smal
Why would you take a debian bookworm installation instead of linuxcnc iso instalation? Can you go more into depth with explanation.

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

More
26 Aug 2023 05:33 #278990 by Aciera
Because a LinuxCNC ISO will have linuxcnc already installed as a deb.
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 or Create an account to join the conversation.

More
26 Aug 2023 08:35 #279000 by smal
I started with LinuxCNC ISO. Because there was no source code I downloaded it from git repository and yes I need that because I was forced to change halui.cc file to make some of my comp file work as expected.
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 or Create an account to join the conversation.

More
26 Aug 2023 09:07 - 26 Aug 2023 09:11 #279002 by Aciera

If I understand you correctly there can be problems with this approach because the links to different software parts are not consistent any more?

Yes

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?

Yes

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?

If you are fine with using python3/gtk3 then proceed with 2.9 if you don't need the absolute bleeding edge of development.
[edit] Since you don't want to install 'packages' with a rip installation '2.9'/'master' here refers to the github branch.[/edit]

Just for my knowledge: how to purge the LinuxCNC from the system?

What I meant is that you could try to get rid of the deb installation using:
$ 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]
Last edit: 26 Aug 2023 09:11 by Aciera.

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

More
26 Aug 2023 19:35 #279022 by smal
I am now in the process of setting things up for linuxcnc on Debian 12.1 Bookworm.
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 or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
26 Aug 2023 21:41 #279033 by rodw
There are many more dependencies. You can ask the build environment to list them. Then you can copy into a text editor, clean up and paste back into the terminal preceded by sudo apt install.
I did a video which is still current.
The following user(s) said Thank You: smal

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

More
27 Aug 2023 14:10 #279091 by smal
Thanks a lot for this video. It helped me a lot to make this compile process work.
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 or Create an account to join the conversation.

More
27 Aug 2023 14:18 #279092 by smal
If I understand link concept (dependencies) correctly, than I can have only one LinuxCNC source code package on a system? Let´s say I can not have a working folder linuxcnc-2.9 and an experimental folder linuxcnc-2.9exp on the system because links (dependencies) will not work as expected?
Just to clarify this detail.

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

More
27 Aug 2023 15:00 - 27 Aug 2023 15:02 #279093 by Aciera
You can have as many git cloned folders (ie as many rip installations) on your system as you like.
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.
Last edit: 27 Aug 2023 15:02 by Aciera.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum