#!/bin/bash ################################################################################ #Building a simulator from source Ubuntu 12.04LTS and 10.04 #First Install needed software, this might not be all. Please check the output of "dpkg-checkbuilddeps" for missing dependencies. sudo apt-get -y update sudo apt-get -y upgrade sudo apt-get install -y alien sudo apt-get install -y asciidoc sudo apt-get install -y autoconf sudo apt-get install -y automake sudo apt-get install -y bison sudo apt-get install -y blt sudo apt-get install -y build-essential sudo apt-get install -y bwidget sudo apt-get install -y cpio sudo apt-get install -y dblatex sudo apt-get install -y debhelper sudo apt-get install -y dpkg-dev sudo apt-get install -y dvipng sudo apt-get install -y eclipse-cdt sudo apt-get install -y fakeroot sudo apt-get install -y g++ sudo apt-get install -y gettext sudo apt-get install -y ghostscript sudo apt-get install -y git sudo apt-get install -y git-core sudo apt-get install -y git-doc sudo apt-get install -y git-gui sudo apt-get install -y gitk sudo apt-get install -y glade sudo apt-get install -y glade-gnome sudo apt-get install -y glibc-doc sudo apt-get install -y groff sudo apt-get install -y imagemagick sudo apt-get install -y libboost-python-dev sudo apt-get install -y libc6-dev sudo apt-get install -y libgl1-mesa-dev sudo apt-get install -y libglib2.0-dev sudo apt-get install -y libglu1-mesa-dev sudo apt-get install -y libgnomeprintui2.2-dev sudo apt-get install -y libgtk2.0-dev sudo apt-get install -y libmodbus-dev sudo apt-get install -y libmodbus5 sudo apt-get install -y libncurses-dev sudo apt-get install -y libncurses5-dev sudo apt-get install -y libpth-dev sudo apt-get install -y libreadline-dev sudo apt-get install -y libreadline6-dev sudo apt-get install -y libtool sudo apt-get install -y libusb-1.0-0 sudo apt-get install -y libusb-1.0-0-dev sudo apt-get install -y libx11-dev sudo apt-get install -y libxaw7-dev sudo apt-get install -y lyx sudo apt-get install -y manpages-dev sudo apt-get install -y python sudo apt-get install -y python-configobj sudo apt-get install -y python-dev sudo apt-get install -y python-glade2 sudo apt-get install -y python-gnome2 sudo apt-get install -y python-gtkglext1 sudo apt-get install -y python-gtksourceview2 sudo apt-get install -y python-imaging sudo apt-get install -y python-imaging-tk sudo apt-get install -y python-lxml sudo apt-get install -y python-numpy sudo apt-get install -y python-scipy sudo apt-get install -y python-support sudo apt-get install -y python-tk sudo apt-get install -y python-vte sudo apt-get install -y python-xlib sudo apt-get install -y source-highlight sudo apt-get install -y tcl8.5-dev sudo apt-get install -y texlive-extra-utils sudo apt-get install -y texlive-font-utils sudo apt-get install -y texlive-fonts-recommended sudo apt-get install -y texlive-lang-cyrillic sudo apt-get install -y texlive-lang-french sudo apt-get install -y texlive-lang-polish sudo apt-get install -y texlive-latex-recommended sudo apt-get install -y tk8.5-dev sudo apt-get install -y vorbis-tools sudo apt-get install -y xsltproc #Go into the git directory and get a copy of the LinuxCNC source. git clone git://git.linuxcnc.org/git/linuxcnc.git ~/linuxcnc-simulator #Go to the debian folder and configure for Simulator use cd ~/linuxcnc-simulator/debian ./configure sim cd .. #This will check for missing dependencies there should be none but if something pops up it will need to be installed. dpkg-checkbuilddeps #The tcl8.4 and tk8.4 packages are only needed to get the dependencies check working, they will conflict with the configure. sudo apt-get purge tcl8.4-dev tk8.4-dev #Now it's finally time to compile linuxcnc cd src ./autogen.sh ./configure --enable-simulator make make install-menus #Linuxcnc will now be started with Gmoccapy GUI ~/linuxcnc-simulator/scripts/linuxcnc ~/linuxcnc-simulator/configs/sim/gmoccapy/gmoccapy.ini