-
Notifications
You must be signed in to change notification settings - Fork 0
WIP: Trying out a Machinekit branch
-
you’re used to using LinuxCNC/Machinekit from packages, but never tried git, or building from source
-
now some fellow announces a feature which sounds interesting, and asks on the list to 'go try it out, the branch is foo in git repository bar'
-
instant 'deer in the headlights' time - how do I go about all this git mumbo-jumbo? will I loose my configuration?
This note intends to cover this common case - in two parts:
-
prepare your platform for building from source if that never happened before - this is a one time effort
The assumptions are:
-
the platform you’re building on has all preqrequisite packages for the build installed. This is true for all Beaglebone SD images; and if you ever built successfully from a 'git clone' command.
-
We’ll put make a minimal copy
git clone -b master --depth 1 git://github.com/machinekit/machinekit.git testdir linuxcnc@arm:/src$ du -sh testdir/ 94M testdir/
mah@pi:~/machinekit$ debian/configure debian/configure: line 49: lsb_release: command not found debian/configure: line 49: lsb_release: command not found debian/configure: line 49: lsb_release: command not found debian/configure: line 49: lsb_release: command not found debian/configure: line 62: lsb_release: command not found debian/configure: line 62: test: =: unary operator expected dpkg-query: no packages found matching linux-headers--rtai Adding build deps to control file: tcl-dev, tk-dev, libgnomeprintui2.2-dev dpkg-query: no packages found matching linux-headers--xenomai dpkg-query: no packages found matching linux-headers--rtai mah@pi:~/machinekit$ dpkg-checkbuilddeps dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 6) bwidget blt libxaw7-dev libncurses-dev libreadline-dev asciidoc (>= 8.5) source-highlight dblatex (>= 0.2.12) xsltproc groff python python-dev python-support python-tk python-lxml libglu1-mesa-dev libgl1-mesa-dev | libgl1-mesa-swx11-dev libgtk2.0-dev gettext autoconf (>= 2.63) libboost-python-dev imagemagick texlive-lang-cyrillic texlive-lang-french texlive-lang-spanish texlive-lang-german netcat libmodbus-dev (>= 3.0) libusb-1.0-0-dev psmisc dvipng texlive-extra-utils texlive-latex-recommended texlive-fonts-recommended ghostscript texlive-font-utils tcl-dev tk-dev libgnomeprintui2.2-dev
non-docs:
debhelper bwidget blt libxaw7-dev libncurses-dev libreadline-dev python python-dev python-support python-tk python-lxml libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev gettext autoconf libboost-python-dev imagemagick netcat libmodbus-dev libusb-1.0-0-dev psmisc dvipng tcl-dev tk-dev
mah@pi:~/machinekit$ sudo apt-get install lsb-release
linuxcnc@arm:/src/machinekit$ debian/configure dpkg-query: no packages found matching linux-headers--rtai Adding build deps to control file: tcl-dev, tk-dev, libgnomeprintui2.2-dev dpkg-query: no packages found matching linux-headers--xenomai dpkg-query: no packages found matching linux-headers--rtai
root@pi:/etc# apt-get install git-core git-gui linuxcnc@arm:/src$ git clone -b mk-circular-blend-arc-rc3 --depth 1 git://github.com/mhaberler/linuxcnc.git mytestrepo Cloning into 'mytestrepo'… remote: Counting objects: 17173, done. remote: Compressing objects: 100% (11394/11394), done. remote: Total 17173 (delta 10182), reused 10736 (delta 5224) Receiving objects: 100% (17173/17173), 45.17 MiB | 343 KiB/s, done. Resolving deltas: 100% (10182/10182), done. Checking out files: 100% (4537/4537), done. linuxcnc@arm:/src$ du -sh mytestrepo/ 119M mytestrepo/ linuxcnc@arm:/src$ du -sh linuxcnc 309M linuxcnc