« Posts list

Building a LinuxCNC 2.9 simulator on Linux Mint 21.3

An update on my previous guide for LM 19.3 on how to set up a LinuxCNC simulator on Linux Mint 21.3 Virginia. The LinuxCNC simulator is useful for testing/debugging drivers, gcode parsing and other non-realtime features without having to crawl around under your machine's actual control.

🔗Versions

🔗Dependencies

apt install --no-recommends \
    bwidget \
    intltool \
    kmod \
    libboost-python-dev \
    libglu-dev \
    libgtk2.0-dev \
    libmodbus-dev \
    libtk-img \
    libudev-dev \
    libusb-1.0-0-dev \
    libx11-dev \
    libxinerama-dev \
    libxmu-dev \
    mesa-common-dev \
    python3 \
    python-tk \
    tclx \
    tk-dev \
    yapps2 \
    libreadline-dev \
    asciidoc \
    python3-opengl

There might be an issue finding yapps where it's installed as yapps2. In this case, remove the yapps2 line from above, and run this as well:

apt install python-pip
pip install yapps

🔗Build

The following steps are a condensed version of the official build docs.

git clone https://github.com/LinuxCNC/linuxcnc.git
cd linuxcnc/src
git checkout v2.9.2
./autogen.sh
./configure \
  --with-realtime=uspace \
  --enable-non-distributable=yes \
  --disable-userspace-pci
make -j12
cd ..
./scripts/linuxcnc