Problems with including comp userspace application file to LinuxCNC project

More
3 years 2 months ago #278904 by smal
Yes I were on run-in-place install (git clone) but using sudo helped somehow.

smal@LinuxCNC:~/linuxcnc-2.8$ sudo halcompile --install ./src/hal/components/serialcon.comp
[sudo] password for smal:
gcc -I/usr/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -Os -o serialcon /tmp/tmpHtNDaY/serialcon.c -Wl,-rpath,/lib -L/lib -llinuxcnchal
smal@LinuxCNC:~/linuxcnc-2.8$

But now I have completely different problems which I was not having before:
Some problems with jog whb04

Debug file information:
Note: Using POSIX realtime
Nonstandard layout:<2 (required: 1|2 are supported)>
trying: 2 (required: 1|2 are supported)
find_file_in_hallib_path: cannot find: <2 (required: 1|2 are supported)>
while executing
"find_file_in_hallib_path $cfg"
(file "./xhc-hb04.tcl" line 473)
invoked from within
"source $filename"
invoked from within
"set result [source $filename]"
(file "/home/smal/linuxcnc-2.8/scripts/haltcl" line 42)
1753
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7fa50857e000
Note: Using POSIX realtime

This is also the case if I exclude loadusr -W serialcon from my hal file.

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

More
3 years 2 months ago #278908 by Aciera

Yes I were on run-in-place install (git clone) but using sudo helped somehow.

I'm certainly no expert but seeing this in your terminal output:

File "/usr/bin/halcompile", line 1478, in main

Gives me the impression that linuxcnc may have also been installed by some sort of package because on a rip install there should be no 'halcompile' in '/usr/bin'. There certainly isn't on my system. Running rip installations alongside deb installations can lead to problems that are very difficult to troubleshoot.
Also running halcompile with sudo is not something you want to do on a rip installation because it will lead to permission issues.
 

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

More
3 years 2 months ago #278912 by smal
I made it 2 years ago like this (my log file):

7. avgust 2021
Compiling your own linuxcnc:
1. Get linuxcnc 2.8.2 from the github -> github.com/LinuxCNC/linuxcnc -> switch from master to 2.8, the button is in the upper left corner.
2. unzip the package and copy from download to home
3. > cd linuxcnc-dev/src
> ./autogen.sh
> ./configure --with-realtime=uspace
> make -> you can use option -j4 for processor with 4 cores. It will speed up the process of compiling
> sudo make setuid
but before make check dependencies with:
> dpkg-checkbuilddeps
if not present:
> sudo apt-get install dpkg-dev
There should be no packages which need to be installed. If not:
Install them all with sudo apt-get install, followed by the package names
Then:
> cd linuxcnc-dev/debian
> ./configure uspace
> cd ..

But the question is now what should I do to get existing 2.8 package working? Because after proposed changes I have problems running my whb04B-6. This was not the case before. Now I am not even so far to test if loadusr -W serialcon is working.

Do you propose I should take a new package and start from the scratch? If yes which package do you propose?

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

More
3 years 2 months ago #278922 by smal
"Gives me the impression that linuxcnc may have also been installed by some sort of package because on a rip install there should be no 'halcompile' in '/usr/bin'. "

Maybe this is the case because I have took linuxcnc install CD iso file. On that I have downloaded 2.8 which was basis for my work.

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

More
3 years 2 months ago #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
3 years 2 months ago #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.

Time to create page: 0.153 seconds
Powered by Kunena Forum