106 lines
6.3 KiB
HTML
106 lines
6.3 KiB
HTML
<html><head><title>3Dconnexion input devices/cn</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>3Dconnexion input devices/cn</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:SpaceNavigator.jpg" class="image"><img alt="" src="200px-SpaceNavigator.jpg" width="200" height="133" class="thumbimage" srcset="/wiki/images/thumb/e/ea/SpaceNavigator.jpg/300px-SpaceNavigator.jpg 1.5x, /wiki/images/thumb/e/ea/SpaceNavigator.jpg/400px-SpaceNavigator.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.freecadweb.org/wiki/index.php?title=File:SpaceNavigator.jpg" class="internal" title="Enlarge"></a></div>3Dconnexion SpaceNavigator</div></div></div>
|
|
<div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Driver_installation"><span class="tocnumber">1</span> <span class="toctext">Driver installation</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-2"><a href="#Linux"><span class="tocnumber">1.1</span> <span class="toctext">Linux</span></a>
|
|
<ul>
|
|
<li class="toclevel-3 tocsection-3"><a href="#Compile_Spacenav_from_source"><span class="tocnumber">1.1.1</span> <span class="toctext">Compile Spacenav from source</span></a></li>
|
|
<li class="toclevel-3 tocsection-4"><a href="#Install_from_repo"><span class="tocnumber">1.1.2</span> <span class="toctext">Install from repo</span></a>
|
|
<ul>
|
|
<li class="toclevel-4 tocsection-5"><a href="#Ubuntu"><span class="tocnumber">1.1.2.1</span> <span class="toctext">Ubuntu</span></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-2 tocsection-6"><a href="#OSX"><span class="tocnumber">1.2</span> <span class="toctext">OSX</span></a></li>
|
|
<li class="toclevel-2 tocsection-7"><a href="#Windows"><span class="tocnumber">1.3</span> <span class="toctext">Windows</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-1 tocsection-8"><a href="#Setting_up_FreeCAD"><span class="tocnumber">2</span> <span class="toctext">Setting up FreeCAD</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<h2><span class="mw-headline" id="Driver_installation">Driver installation</span></h2>
|
|
<h3><span class="mw-headline" id="Linux">Linux</span></h3>
|
|
<p>FreeCAD supports drivers from project <a rel="nofollow" class="external text" href="http://spacenav.sourceforge.net/">Spacenav</a>. This is a project aiming to create an open-sourced driver which is compatible with the proprietary drivers from 3Dconnexion.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Compile_Spacenav_from_source">Compile Spacenav from source</span></h4>
|
|
<p>This is recommended since your distribution might provide an outdated version. For example, Ubuntu repos contain version 0.3.0 as of 2011-04-10.
|
|
</p>
|
|
<ul><li>Download the following files:
|
|
<ul><li><a rel="nofollow" class="external text" href="http://sourceforge.net/projects/spacenav/files/spacenav%20daemon/spacenavd%200.5/spacenavd-0.5.tar.gz/download">spacenavd-0.5.tar.gz</a></li>
|
|
<li><a rel="nofollow" class="external text" href="http://sourceforge.net/projects/spacenav/files/spacenav%20library%20%28SDK%29/libspnav%200.2.2/libspnav-0.2.2.tar.gz/download">libspnav-0.2.2.tar.gz</a></li>
|
|
<li><a rel="nofollow" class="external text" href="http://sourceforge.net/projects/spacenav/files/spacenavd%20config%20gui/spnavcfg%200.2.1/spnavcfg-0.2.1.tar.gz/download">spnavcfg-0.2.1.tar.gz</a></li></ul></li>
|
|
<li>Unpack the archives into a folder in your home directory.</li>
|
|
<li>Enter the directory spacenavd-0.5 and run the following commands:</li></ul>
|
|
<pre>
|
|
./configure
|
|
make
|
|
</pre>
|
|
<ul><li>If this was successful, run the following commands <b>as root</b> (or prefix with sudo.)</li></ul>
|
|
<pre>
|
|
make install
|
|
./setup_init
|
|
/etc/init.d/spacenavd start
|
|
</pre>
|
|
<ul><li>This installs the spacenav daemon, configures it to automatically load on system boot, and starts the daemon without having to reboot.</li>
|
|
<li>Now it is time to check that your device is properly detected. With your device unplugged, run the following command and then plug it in.</li></ul>
|
|
<pre>tail -n100 -f /var/log/spnavd.log </pre>
|
|
<ul><li>If the output looks something like this, you can continue.</li></ul>
|
|
<pre>
|
|
Device detection, parsing /proc/bus/input/devices
|
|
trying alternative detection, querying /dev/input/eventX device names...
|
|
trying "/dev/input/event1" ... Power Button
|
|
trying "/dev/input/event2" ... 3Dconnexion SpaceNavigator
|
|
using device: /dev/input/event2
|
|
device name: 3Dconnexion SpaceNavigator
|
|
</pre>
|
|
<ul><li>Now enter the directory named libspnav-0.2.2 and run the following commands:</li></ul>
|
|
<pre>
|
|
./configure
|
|
make
|
|
</pre>
|
|
<ul><li>If make fails with the following error: ...</li></ul>
|
|
<pre>
|
|
fatal error: gtk/gtk.h: No such file or directory
|
|
</pre>
|
|
<ul><li> ... then you need to install libgtkmm-2.4-dev. Under Ubuntu, this is done like this:</li></ul>
|
|
<pre>
|
|
sudo apt-get install libgtkmm-2.4-dev
|
|
</pre>
|
|
<ul><li>When make has completed successfully, run the following command <b>as root</b> (or prefix with sudo.)</li></ul>
|
|
<pre>
|
|
make install
|
|
</pre>
|
|
<ul><li>Look in the directory libspnav-0.2.2/examples/. If you want to test your device, compile and run either one of the two examples.</li></ul>
|
|
<ul><li>Follow the same pattern to compile and install spnavcfg. Make sure to run spnavcfg as root, or no settings will be saved!</li></ul>
|
|
<h4><span class="mw-headline" id="Install_from_repo">Install from repo</span></h4>
|
|
<h5><span class="mw-headline" id="Ubuntu">Ubuntu</span></h5>
|
|
<pre>sudo apt-get install spacenavd</pre>
|
|
<h3><span class="mw-headline" id="OSX">OSX</span></h3>
|
|
<p>TBD
|
|
</p>
|
|
<h3><span class="mw-headline" id="Windows">Windows</span></h3>
|
|
<p>TBD
|
|
</p>
|
|
<h2><span class="mw-headline" id="Setting_up_FreeCAD">Setting up FreeCAD</span></h2>
|
|
<p>TBD
|
|
</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=3Dconnexion_input_devices/cn&oldid=83858">http://www.freecadweb.org/wiki/index.php?title=3Dconnexion_input_devices/cn&oldid=83858</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |