[Home]Compilar El Simulador Manualmente

LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org

Showing revision 1
Compilar el simulador manualmente

Compilar el simulador desde el código

El modo simulador esta completo para que interprete el código G sobre la pantalla, y brinda un espacio al usuario para el desarrollo y exploración, pero no sirve para la medicion de fluctuaciones en la medida o para manejar las maquinas en la vida real.

nota acerca de Ubuntu 10.04

The following build steps for Ubuntu 11.10 and 12.04 tambien trabajará para el ubuntu 10.04 con una principal diferencia. Ubuntu 10.04 three packages must be installed to enable the git command set.

Los siguientes pasos de compilación para el ubuntu 11.10 y el 12.04 con una principal diferencia. En Ubuntu 10.04 tres paquetes deben ser instalados para habilitar el conjunto de comandos del git

Desde la pagina Installing LinuxCNC,

  sudo apt-get install git-core gitk git-gui

También, para Ubuntu 10.04 esto no es necesario para mover el tcl8.4 y tk8.4 packages before compilation.

Build steps for Ubuntu 11.10 (Oneiric Ocelot) and 12.04 (Precise Pangolin)

http://youtu.be/PFdNbaBq760

There are no precompiled packages for 11.10. These steps will make a working simulator with a fresh Ubuntu 11.10 installation.

Credit goes to Anders Wallin who made the first steps with the simulator and 11.10.

Preparation

Install git.
 sudo apt-get install git
Intall dpkg-dev.
 sudo apt-get install dpkg-dev
Make a directory, for example git, in your favourite location.
 mkdir git
Go into the git directory and get a copy of the LinuxCNC source.
 cd git
 git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc

Dependencies

Go to the debian folder and configure
 cd linuxcnc/debian
 ./configure sim
Go back to the linuxcnc folder and check dependencies
 cd ..
 dpkg-checkbuilddeps
Which will output something similar to:
 dpkg-checkbuilddeps: Unmet dependencies: debhe...
Now the dependency check threw a number of missing artifacts, install them all with apt-get.

Editor's note 1: These are the packages I had to install to get it running. This list is illustrative but dependencies may well differ for your installation---it's best explicitly to check them as shown above.

 sudo apt-get install libpth-dev dvipng tcl-dev tk-dev tcl8.4-dev tk8.4-dev bwidget libxaw7-dev libncurses-dev libreadline-dev asciidoc source-highlight dblatex groff python-dev python-tk python-lxml libglu1-mesa-dev libgl1-mesa-dev libgl1-mesa-swx11-dev libgtk2.0-dev libgnomeprintui2.2-dev autoconf libboost-python-dev texlive-lang-cyrillic

Editor's note 2: There can only be one libgl development package installed at the time. If there are any conflicts, remove (purge) the installed package and retry.

Editor's note 3: The apt-get install command above is almost working as is in a Ubuntu 12.04 as well. The libgl1-mesa-dev is provided in other packages, but apt-get will hint which one to install get it running. Install that package separately, remove libgl1-mesa-dev from the long install command and go for it. Please note that the extra packages needed might differ for your machine, depending on your setup and hardware.

Here's an example of a command that worked on 12.04:

sudo apt-get install libpth-dev dvipng tcl-dev tk-dev tcl8.4-dev tk8.4-dev bwidget libxaw7-dev libncurses-dev libreadline-dev asciidoc source-highlight dblatex groff python-dev python-tk python-lxml libglu1-mesa-dev libgl1-mesa-swx11-dev libgtk2.0-dev libgnomeprintui2.2-dev autoconf libboost-python-dev texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-spanish texlive-lang-polish libmodbus-dev python-support

When the command dpkg-checkbuilddeps returns silent you can go to next step.

Configure and compile

The tcl8.4 and tk8.4 packages are only needed to get the dependencies check working, they will conflict with the configure. Remove them again.
 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

Add following to your path (such as .profile)

 export PATH=$PATH:[path to the linuxcnc dir]/linuxcnc/scripts/rip-environment

Linuxcnc can now be started with the command

 . scripts/linuxcnc

Don't forget to use a simulator configuration (sim tree in the config selector).


LinuxCNCKnowledgeBase | RecentChanges | PageIndex | Preferences | LinuxCNC.org
This page is read-only. Follow the BasicSteps to edit pages. | View other revisions | View current revision
Edited August 15, 2013 11:31 pm by Aabaenar (diff)
Search:
Published under a Creative Commons License