current master (2.9) building debs error?

More
25 May 2022 20:16 #243835 by tripwire
The following is the recipe I believe I followed. (I I had success with it in an earlier install). But at this point I've tried other things like the suggestions offered here...


Replied by rodw on topic Installing LinuxCNC 2.8 on Debian 11 Installing LinuxCNC 2.8 on Debian 11 Category: Installing LinuxCNC I changed my process and upgraded to the unstable branch by following some instructions on the Debian site
From a basic install of Debian 11 (Bullseye)
sudo apt install geany curl 
sudo geany /etc/apt/sources.list
make sure any lines containing cd are commented out with a #
replace any reference to bullseye, buster or stable with unstable eg:
deb http://deb.debian.org/debian/ unstable main non-free contrib 
deb-src http://deb.debian.org/debian/ unstable main non-free contrib
save and exit geany, then
sudo apt update
sudo apt full-upgrade
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash
reboot
type uname -a
Last line is to check PREEMPT-RT kernel is running as its installed by the install
Linuxcnc should be in the menus or open a terminal and type:linuxcnc
If you need to update to the latest version of master, you need to install from source but there are far fewer dependencies to install.

Note I did not install the docs as thats quite time consuming and we already have a slightly earlier version of them on the system. If you want them, remove the no-docs flag to ./configure
cd ~
mkdir /dev
cd dev
git clone https::/github.com/linuxcnc/linuxcnc.git
cd linuxcnc/debian
./configure uspace no-docs
cd ..
sudo apt install debhelper-compat dh-python autoconf gettext intltool libboost-python-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libmodbus-dev libeditreadline-dev libusb-1.0-0-dev libxmu-dev python3-dev tcl8.6-dev tk8.6-dev yapps2
dpkg-buildpackage -b -uc
cd ..
sudo dpkg -i linuxcnc-uspace_ (tab)
Optionally install the dev package for mesaflash, halcompile, ethercat etc.
sudo dpkg -i linuxcnc-uspace-dev(tab)
This moved my version of QTplasmac from 1.222.178 when I did it.Note that opening an older sim version of QTplasmac generates an error with a missing .so file for the torch simulation.
The solution is to create a new sim by selecting from the Sample Configurations

To subsequently upgrade to the latest version of linuxcnc master[code]cd ~/dev/linuxcnc/src
git pull
cd ..
dpkg-buildpackage -b -uc
cd ..
sudo dpkg -i linuxcnc-uspace_ (tab)optionallysudo dpkg -i linuxcnc-uspace-dev(tab)[code] 

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

More
25 May 2022 20:21 - 25 May 2022 20:26 #243836 by robertspark
there is this script that will install linuxcnc on debian 11 (bullseye)

github.com/joco-nz/lcnc-bullseye-installer

just download the scripts and make them executable + run them as per the instructions

chmod 774 <file>

{note: I've run them about twice / three times and they worked}  I am not using them at present as I'm rolling my own :) (on buster! with a RIP) }
Last edit: 25 May 2022 20:26 by robertspark.

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

More
25 May 2022 20:34 #243837 by tripwire
Thanks Robert! I'll check that out.

(I hope all the gobbly-gook I've already installed won't mess things up...)

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

More
25 May 2022 20:54 #243840 by robertspark
you "may" need to delete the linuxcnc-dev folder.... as I suspect it will clone a new one.... it "may" fail when it detects a folder with the linuxcnc-dev name and it has stuff in it.

Just change linuxcnc-dev to something like linuxcnc-dev-old.

that way you can always just restore it by renaming it.

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

More
25 May 2022 21:25 #243844 by tripwire
Darn! That took a long time which wouldn't have been a problem if it worked...BUT...there were no error messages (or at least it finished the process without ending on an error) BUT when I opened axis I got the exact same error message as first posted.... (I did log out after the script install and then logged back in...)

Maybe I should start with a clean OS, then run the lcnc script.

What's the best was to install Bullseye? Or would Bookworm be better?

Thanks!

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

More
25 May 2022 22:31 #243851 by robertspark
I would recommend using the 2.8.2 linuxcnc iso (Buster).

Then you can just change the repository to master (buildbot) and update and it WILL work just fine.

it has advantages in my opinion.

sure if you have something new then there can be missing firmware... but it's all solvable.

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

More
25 May 2022 22:37 #243852 by robertspark
download:

www.linuxcnc.org/iso/linuxcnc-2.8.2-buster.iso

either DD it to a USB (if in linux) or use etcher / rufus if in windows to copy to usb.

Boot and install.

then I would recommend installing the following
sudo apt install -y git geany grub-customizer git ethtool curl dpkg-dev inkscape gimp librecad freecad python3-opengl gnome-icon-theme xfce4-power-manager network-manager-gnome debhelper live-build

you can take out inkscape, gimp librecad and freecad if you want.... the rest I would just leave as they all have a purpose.

what exactly are you trying to set up?? lathe, mill, router, plasma??

then start synaptic and then just change the linuxcnc repositories to:
deb     http://buildbot.linuxcnc.org/ buster master-rtpreempt  
deb-src http://buildbot.linuxcnc.org/ buster master-rtpreempt

then run
sudo apt update
sudo apt -y upgrade

you will now have a working Master installed on buster.

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

More
25 May 2022 22:39 #243853 by tripwire
Thanks for that. But can you be more specific with the commands and file locations? I haven’t used buildbot before.

And will I end up with. Debian 11 and Linuxcnc 9? I plan to work with qtpyvcp so I think those are prerequisits.

Thanks!

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

More
25 May 2022 22:44 #243855 by robertspark
To explain the purpose of some of these:
git - not installed by default / part of the package {useful for cloning github repositories]
geany - probably already installed {it is on linuxcnc iso, but not on other distros}
grub-customizer - if you need to change any settings in grub to latency, then its very easy to use
ethtool - I use ethotool for my intel network cards to improve ping times
curl - useful to download stuff using curl
dpkg-dev - for building debs
inkscape
gimp
librecad
freecad
python3-opengl - cant remember what needed it
gnome-icon-theme - this sorts out the missing icons in the linuxcnc iso distro (such as the "run" icon etc)
xfce4-power-manager - this is used for turning off all the screensaver and autologoff etc screens not helpful for cnc
network-manager-gnome - this is installed as it works better than nm-tray (which you will need to remove, and it stops the multiple entries + looks better and used in bullseye)
debhelper - used for nativecam to build.... if you want nativecam
live-build

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

More
25 May 2022 22:51 #243857 by robertspark
hm.... did not realise you were trying to get qtpyvcp.....

www.qtpyvcp.com/install/bullseye.html

going via the buster linuxcnc iso can be done but its a long route around

try the above ^^^^^^

it does work as I've done it before

Note Linuxcnc is not "9"...... the master {development version} is presently "2.9".

stable release is "2.8.2"

it is looking like "2.9" will be released at some point in the next few months possibly as a stable to align with debian bookworm

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

Time to create page: 0.123 seconds
Powered by Kunena Forum