RUG/Pennsylvania/State College/RepSnapper

From RepRap
Revision as of 19:21, 27 October 2011 by Joshj (talk | contribs) (Windows MinGW)
Jump to: navigation, search

Ubuntu Linux

One of our machines runs Ubuntu linux 10.10. Here is how we installed repsnapper 1.1.x:

Note: The machine is not connected to the internet, so packages are transferred using Synaptic's "Generate Download Script" option on a separate computer.

The following packages were required, as listed by the readme:

build-essential fluid libgtk2.0-dev libfltk1.1 libfltk1.1-dev libglut3 libglut3-dev libboost-thread-dev libboost-system-dev libconfig++8-dev libconfig8-dev

Note: Initially I neglected to install libgtk2.0-dev, which caused confusing build errors that the packages "gtk+-2.0" and "gthread-2.0" could not be found. Installing libgtk2.0-dev fixed the problem (gtk+-2.0 is satisfied by libgtk2.0-dev, and gthread-2.0 is satisfied by libglib2.0-dev, which is a dependency).

The codebase was downloaded using Git on a windows pc:

git clone git://github.com/timschmidt/repsnapper.git -b repsnapper-1.1.x

The code was compiled:

cd repsnapper/src

make

The resulting executable "repsnapper" was then moved to ~/toolchain, and a desktop shortcut created.


Windows MinGW

Notes

 * This process is fairly involved.
 * The resulting executable requires a number of dynamic link libraries.
 * According to the MinGW documentation, it would have been better to install libraries into /mingw instead of /usr/local where possible. (eg. using make --prefix=/mingw)
 * In the MinGW shell, /mingw/* corresponds to C:\Path\to\MinGW\* and /usr/local/* corresponds to C:\Path\to\MinGW\msys\1.0\local\*


A. Install MinGW

 1. Install MinGW 20110802 (mingw-get-inst-20110802.exe from http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110802/mingw-get-inst-20110802.exe/download)
   * I installed to C:\PROGRAMS\MinGW. Path shouldn't matter as long as there are no spaces.
 2. Open a MinGW Shell

B. Install fltk library

 1. Download and extract fltk-1.1.10 (http://www.fltk.org/software.php?VERSION=1.3.0&FILE=fltk/1.1.10/fltk-1.1.10-source.zip)
 2. $ cd /c/path/to/fltk-1.1.10-source/fltk-1.1.10/
 3. $ ./configure
 4. $ make
 5. $ make install
 6. $ cd FL/
 7. $ make install

C. Install lua library

 1. Download and extract lua-5.1.4.tar.gz (http://www.lua.org/ftp/lua-5.1.4.tar.gz)
 2. $ cd /c/path/to/lua-5.1.4/
 3. $ make mingw
 4. $ make install

D. Install boost-build engine

 1. Download and extract boost_1_47_0.zip (http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.zip/download)
 2. $ cd /c/path/to/boost_1_47_0/tools/build/v2/engine
 3. $ ./build.sh mingw
 4. $ cp bin.ntx86/*.exe /usr/local/bin

E. Install luabind library

 1. Download and extract luabind-0.9.1.zip (http://sourceforge.net/projects/luabind/files/luabind/0.9.1/luabind-0.9.1.zip/download)
 2. $ cd /c/path/to/luabind-0.9.1
 3. $ cp -r luabind /usr/local/include
 4. $ b2 --toolset=gcc link=static variant=release -sBOOST_ROOT=../boost_1_47_0/ -sLUA_PATH=/usr/local
 5. $ cp bin/gcc-mingw-4.5.2/release/link-static/libluabind.a /usr/local/lib