Build LinuxCNC Master - Sector67/router-conversion GitHub Wiki
Introduction
This page captures the procedure for building and using the latest LinuxCNC master branch pncconf from the Debian stretch RTPrempt kernel.
This follows the procedure from (http://linuxcnc.org/docs/master/html/code/building-linuxcnc.html)
Check out linuxcnc source
sudo apt-get install autoconf pkg-config dpkg-dev
mkdir linuxcnc-dev
cd linuxcnc-dev
git clone [email protected]:LinuxCNC/linuxcnc.git
cd linuxcnc
# install all needed dependencies (current, might change)
sudo apt-get install debhelper tcl8.6-dev tk8.6-dev libreadline-gplv2-dev asciidoc dblatex docbook-xsl dvipng graphviz groff inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc asciidoc-dblatex python-dev libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev gettext intltool libboost-python-dev netcat libmodbus-dev libusb-1.0-0-dev yapps2
# check that dependencies are satisfied
cd debian
./configure uspace
cd ..
dpkg-checkbuilddeps
# build
cd src/
./autogen.sh
./configure --with-realtime=uspace
make
changes can then be made to, for instance, pncconf
and run from this local build:
../bin/pncconf
I ran into issues with the default pncconf libs being loaded before the custom pncconf build, even though the sys.path seems to be set appropriately.