EMC2 simulator build on Ubuntu 11.10

I thought I would build EMC2-simulator on 64-bit Ubuntu 11.10 following the instructions from the wiki. To get the source and dependencies:

$ git clone git://git.linuxcnc.org/git/emc2.git emc2-dev
$ cd emc2-dev
$ cd debian
$ ./configure sim
$ cd ..
$ dpkg-checkbuilddeps

Then install all the required packages with "sudo apt-get install". dpkg-checkbuilddeps suggests installing tk8.4 and tcl8.4 but I found that in ordet to get the configure-script to run without errors I needed tk8.5, tk8.5-dev, tcl8.5 and tcl8.5-dev, and I removed all the 8.4 packages of tk and tcl. That makes configure run without errors. Then try building:


$ cd src
$ ./autogen.sh
$ ./configure --enable-simulator
$ make

However that produces a number of linking errors. Don't ask me exactly why but this patch: 0001-changes-to-make-sim-build-on-ubuntu-11.10.patch.tar (updated corrected version!) seems to fix things, and I get emc2 sim built and running. Just in case anyone else wants to build on 64-bit Ubuntu 11.10.

5 Comments

  1. Thanks Anders, got write-up.
    I also found that I had to run
    sudo apt-get install python python-tk idle python-pmw python-imaging
    to get it going. I made a uge apt-get install-row to get all the packages and I accidently removed Python stuff (The Tk/Tcl versions thing), it might be the cause for the extra step.

    Anyhow, easy fixin and now have the Sim in 11.10. 🙂

  2. This is the (corrected) apt-get command to get all the libs.
    sudo apt-get install libpth-dev dvipng tcl8.5-dev tk8.5-dev bwidget libxaw7-dev libncurses-dev libreadline-dev asciidoc source-highlight dblatex groff python-dev libglu1-mesa-dev libgl1-mesa-swx11-dev libgtk2.0-dev libgnomeprintui2.2-dev autoconf libboost-python-dev texlive-lang-cyrillic

    Anders, is it ok with you if I add your steps to the EMC2 wiki?

  3. admin

    February 1, 2012 at 08:15

    Yes, if you are starting with a fresh install of 11.10 then there are probably more missing dependencies than in my case.

    Please do add these things to http://wiki.linuxcnc.org

    I think the next release of LinuxCNC will be 2.5 sometime soon, and that will still be for Ubuntu 10.04LTS. But after Ubuntu 12.04LTS is released I think we will see LinuxCNC 2.6 during the summer of 2012.

  4. I will add it to the wiki. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2019 anderswallin.net

Theme by Anders NorénUp ↑