Wiki » History » Version 6

M. Rolf, 01/13/2012 03:28 PM

1 2 M. Rolf
h1. Using the example binaries
2 2 M. Rolf
3 2 M. Rolf
h2. Windows binaries
4 2 M. Rolf
5 6 M. Rolf
In order to execute the examples, you need some "Microsoft Visual C++" libaries:
6 2 M. Rolf
* The easiest way to get them is installing the "Microsoft Visual C++ 2010 Redistributable Package" from http://www.microsoft.com/download/en/details.aspx?id=5555
7 2 M. Rolf
* Having the "Microsoft Visual C++ 2010" development environment installed does the same job, of course.
8 2 M. Rolf
9 2 M. Rolf
h2. Linux Debian packages
10 2 M. Rolf
11 2 M. Rolf
h2. Troubleshooting
12 2 M. Rolf
13 2 M. Rolf
14 2 M. Rolf
15 2 M. Rolf
h1. Install and use from source
16 2 M. Rolf
17 2 M. Rolf
h2. Dependencies
18 2 M. Rolf
19 2 M. Rolf
* Required: "NemoMath":https://code.cor-lab.org/projects/nemomath/wiki/Wiki
20 2 M. Rolf
** Which requires: "Eigen 2":http://eigen.tuxfamily.org/index.php?title=Main_Page
21 2 M. Rolf
** Which requires: "Boost":http://www.boost.org/ (header-only parts)
22 2 M. Rolf
* Required: "CMake":http://www.cmake.org/
23 2 M. Rolf
* Optional: "libqglviewer-qt4-dev":http://www.libqglviewer.com/, in case you want to use the visualization. The pure kinematics part can be built and deployed without this dependency.
24 2 M. Rolf
** Which requires: "Qt 4":http://qt.nokia.com/
25 2 M. Rolf
26 2 M. Rolf
h2. Building from source
27 2 M. Rolf
28 5 M. Rolf
* Get the source from https://code.cor-lab.org/svn/continuumkinematics, e.g.
29 5 M. Rolf
  <pre>
30 5 M. Rolf
svn co https://code.cor-lab.org/svn/continuumkinematics</pre>
31 5 M. Rolf
* Build it under *Linux* (or MacOS???)
32 1 M. Rolf
<pre>
33 1 M. Rolf
cd continuumkinematics/build
34 1 M. Rolf
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
35 5 M. Rolf
make install</pre>
36 5 M. Rolf
* Build it under *Windows/MSVC*
37 5 M. Rolf
<pre>
38 5 M. Rolf
cd continuumkinematics
39 5 M. Rolf
call project\build_vs.bat</pre>
40 3 M. Rolf
41 3 M. Rolf
h3. Troubleshooting
42 1 M. Rolf
43 4 M. Rolf
* During configuration, cmake says *@Qt qmake not found!@*. Simply check out where the qmake binary is located in your filesystem and put this in your cmake call:
44 4 M. Rolf
   <pre>
45 4 M. Rolf
-DQT_QMAKE_EXECUTABLE="${PATH_TO_QMAKE}/qmake" </pre>
46 3 M. Rolf
* If you get linking errors like *@undefined reference to `QGLViewer::***'@*, you are probably linking against @libqglviewer-qt3@ instead of @qt4@
47 3 M. Rolf
** If you don't have the right version of @qglviewer@ around, install it.
48 3 M. Rolf
** If cmake still does not configure the correct library, you can manually chose the correct path by setting the variables "@QGLVIEWER_*@":
49 3 M. Rolf
   <pre>
50 3 M. Rolf
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DQGLVIEWER_INCLUDE_DIR=${QGL_QT4_DIR}/include -DQGLVIEWER_LIBRARIES=${QGL_QT4_DIR}/lib/${library_name} ..
51 1 M. Rolf
make install</pre>
52 4 M. Rolf
53 4 M. Rolf
* When running the example binaries, you get the error message *@QWidget: Must construct a QApplication before a QPaintDevice@*
54 4 M. Rolf
** An annoying problem that is currently only observed under Windows/MSVC: It seems to happen when QGLViewer is built in *@release@* mode, but you build the @continuumkinematics@ code in *@debug@* mode, or vice versa.
55 4 M. Rolf
** Solution: find out how QGLViewer was built (most likely as @release@) and set the build-configuration accordingly in the cmake call:
56 4 M. Rolf
   <pre>-DCMAKE_BUILD_TYPE=[release/debug]</pre>