Building from source for Trixie

More
8 months 3 weeks ago #342397 by persei8
I've built linuxcnc from source many times, but since upgrading to trixie, it no longer works. I'm following the instructions at  Building LinuxCNC . I don't think they are entirely correct. In section 4.2 (Building Debian Packages) it says the following:
Code:
$ sudo apt-get install build-essential $ git clone https://github.com/LinuxCNC/linuxcnc.git linuxcnc-source-dir $ cd linuxcnc-source-dir/src $ ./debian/configure $ sudo apt-get build-dep . $ DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -B
The result of ./debian/configure is bash: ./debian/configure: No such file or directory
If I don't cd into src, like it says in the previous step, then configure works.
The result of sudo apt-get build-dep . is Error: Unsupported file . given on commandline
The result without the . is Error: Unable to locate package build-dep
If I just go ahead anyway and run the last line, it seems to compile but ends with:
Code:
dh_auto_build: error: cd src && make -j4 build-software returned exit code 2 make[1]: *** [debian/rules:57: override_dh_auto_build-arch] Error 2 make[1]: Leaving directory '/home/jim/linuxcnc-dev' make: *** [debian/rules:45: build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

Since it appears buildbot is not building debs for trixie, my only option is to build from source. What is the correct procedure for building deb files for trixie? Thanks,
Jim
 

Please Log in to join the conversation.

More
8 months 3 weeks ago #342410 by tommylight
linuxcnc.org/dists/trixie/2.9-uspace/bin...pace_2.9.8_amd64.deb
Download and double click to install with gdebi, and in case gdebi is missing:
sudo apt update
sudo apt install gdebi

Please Log in to join the conversation.

More
8 months 3 weeks ago #342415 by persei8
Thanks tommylight but I'm trying to build from master branch. Probably should have mentioned that.
Jim
 

Please Log in to join the conversation.

More
8 months 3 weeks ago #342418 by tommylight
The only 2.10 deb i can find is from buster, so quite old, here
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-amd64/

Please Log in to join the conversation.

More
8 months 3 weeks ago #342423 by rodw
I have done a video on this. There is a bookmark for cloning and compiling.
Master branch build process has been updated but I think there is a typo in the docs. Now getting dependencies is done the debian way with a single command line. This is an amazing improvement :)

Please Log in to join the conversation.

More
8 months 3 weeks ago #342424 by rodw
I should mention I show how to build for RIP but you can keep with the Debian way and build the debs and install with sudo dpkg -i on the folder above where you are.

Please Log in to join the conversation.

More
8 months 3 weeks ago #342476 by persei8
Thanks Rod, I managed to build a deb in a bookworm chroot but it won't install on trixie because linuxcnc requires python3.11 and trixie uses python3.13. I also tried installing the deb from buildbot2 but same result. Looks like I have no option but to reinstall bookworm. Major PITA.
On that note, I recall you posted the 6.3.0-rt11-linuxcnc kernel somewhere, but I can no longer find it. Could you tell me where that is? Thanks again.
Jim
 

Please Log in to join the conversation.

More
8 months 2 weeks ago #342798 by summat
Following this with interest (I had the exact same problem) - my goal was rebuilding the mot2-eth driver. Will review all the advice here when I've had more coffee but PITA if we can't build from a Trixie installation.

Please Log in to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum