Building from source for Trixie

More
8 months 4 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
 
The following user(s) said Thank You: summat

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

More
8 months 4 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
The following user(s) said Thank You: summat

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

More
8 months 4 weeks ago #342415 by persei8
Thanks tommylight but I'm trying to build from master branch. Probably should have mentioned that.
Jim
 
The following user(s) said Thank You: tommylight

Please Log in or Create an account 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 or Create an account 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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum