Jump to content
3DCoat Forums

How to compile Spacenavd on non Ubuntu distro


Sakru
 Share

Recommended Posts

  • Member
Carlosan
This post was recognized by Carlosan!

Sakru was awarded the badge 'Great Content' and 1 points.

So, i decieded to spend some time and get Spacenav working on non ubuntu based distro. Tried to adapt what i did on CL. This guide should work on other distros like Arch, Opensuse and Fedora.
Before you start, ensure that you have the following dependencies installed: Development tools (GCC, Make), CMake, X11 development libraries, libspnav.

For most distributions, you can install these dependencies using your package manager:

Fedora: sudo dnf install gcc make cmake libX11-devel libspnav-devel

Arch Linux: sudo pacman -S base-devel cmake libx11 libspnav

OpenSuse: sudo zypper install gcc make cmake libX11-devel libspnav-devel

1. Clone the Spacenavd Repository

git clone https://github.com/FreeSpacenav/spacenavd.git
cd spacenavd

2. Run CMake to configure the build

cmake.

3. Compile the source code

make

4. Install spacenavd

sudo make install

5. Set up and enable the spacenavd service

sudo nano /etc/systemd/system/spacenavd.service

Add the following content to the file:

[Unit]
Description=Spacenavd Service
After=network.target

[Service]
ExecStart=/usr/local/bin/spacenavd -d
Restart=always

[Install]
WantedBy=multi-user.target

6. Reload Systemd Deamn and start the service

sudo systemctl daemon-reload
sudo systemctl enable spacenavd
sudo systemctl start spacenavd

Ensure that spacenavd is running without errors:

systemctl status spacenavd


If you have any questions, feel free to ask.

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...