Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post by PrzemoF »

Yes, that's the log:

Code: Select all

$ git rebase  master
First, rewinding head to replay your work on top of it...
Applying: X11 independant implementation for USB SpaceNavigator, works with Wayland
Applying: Spacemouse platform dependent code is moved to different classes. Compiles and works for Linux
Applying: The platform dependant stuff is in different files chosen by the build system. Building on Linux/Qt5 works without libspacenav, with the X11 interface and the polling interface. All run. Spacemouse works with the polling interface and should work with the X11 interface under a real X system.
Applying: Blind update for Windows code
Applying: Mac build of new Spacenavigator class works
Applying: GuiNativeEventLinux* compiles again after changes for Mac
Applying: Use QSocketNotifier for the libspnav polling interface
Applying: Fixed compilation of 3Dconnexion/libspacenav wit Qt4
Applying: x11EventFilter must be overridden for Qt4
Applying: Use std::vector to copy Spacemouse data from helper class to Application
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post by PrzemoF »

tsadowski wrote: Thu Nov 08, 2018 8:02 pm Linux + Qt4 + Spnav both interfaces
- Compiles
- FreeCAD does not start, mismatched libraries
Works for me. Clean build after rm -rf *, cmake with no settings:

Code: Select all

$ ldd $(which FreeCAD) | grep Qt
	libQtOpenGL.so.4 => /lib64/libQtOpenGL.so.4 (0x00007f3578e7b000)
	libQtSvg.so.4 => /lib64/libQtSvg.so.4 (0x00007f3578c1d000)
	libQtWebKit.so.4 => /lib64/libQtWebKit.so.4 (0x00007f357660b000)
	libQtGui.so.4 => /lib64/libQtGui.so.4 (0x00007f3575861000)
	libQtNetwork.so.4 => /lib64/libQtNetwork.so.4 (0x00007f35754fd000)
	libQtXml.so.4 => /lib64/libQtXml.so.4 (0x00007f35752af000)
	libQtCore.so.4 => /lib64/libQtCore.so.4 (0x00007f3574d87000)
	libQtLocation.so.1 => /lib64/libQtLocation.so.1 (0x00007f356f288000)
	libQtSensors.so.1 => /lib64/libQtSensors.so.1 (0x00007f356f053000)
	libQtDeclarative.so.4 => /lib64/libQtDeclarative.so.4 (0x00007f356b804000)
	libQtScript.so.4 => /lib64/libQtScript.so.4 (0x00007f356b34e000)
	libQtXmlPatterns.so.4 => /lib64/libQtXmlPatterns.so.4 (0x00007f356ac94000)
	libQtSql.so.4 => /lib64/libQtSql.so.4 (0x00007f356aa4c000)
$ rpm -q libspnav libspnav-devel spnavcfg
libspnav-0.2.3-7.fc28.x86_64
libspnav-devel-0.2.3-7.fc28.x86_64
spnavcfg-0.3-7.fc28.x86_64

Compiles and works flawlessly :D on fedora 28. Thanks!!!
wmayer
Founder
Posts: 20308
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post by wmayer »

Windows
- ????
Windows + Qt5 + 3Dconnexion
Windows + Qt4 + 3Dconnexion
- Compiles
The space mouse support should still work (but I have no such device)
UllrichT
Posts: 5
Joined: Thu Mar 27, 2014 5:03 pm
Location: Berlin

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post by UllrichT »

OS: Ubuntu 19.04 (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16718 (Git) AppImage
Build type: Release
Branch: master
Hash: cfd04ac6afa091f5c4f18e94756bd58fb6d66806
Python version: 3.7.1
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
spacenav version: 0.6

i have the same problem. I have tested the freecad appimage versions 0.19pre, 0.18.1 0.17Roland and 0.16 and they all don't recognize the spacenavigator. When I install version 0.16 from the ubuntu repositories, the spacenavigator works fine.
I haven't yet tested the freecad-daily versions, but I assume, they work too.
I have no idea, why the appimage doesn't work, but I'm pretty sure it has something to do with the appimage.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Unable to connect to SpaceNavigator with FreeCAD 0.17 on Fedora 28

Post by Kunda1 »

From: https://forum.freecadweb.org/viewtopic. ... 27#p341327
ivxcvi wrote: Wed Oct 16, 2019 5:41 am EDIT: I've found the issue. It was the X11 permissions issue listed under Debian.

tail -n100 -f /var/log/spnavd.log

Returned:

Code: Select all

Spacenav daemon 0.6
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
adding device.
device name: 3Dconnexion SpacePilot
using device: /dev/input/event5
No protocol specified
failed to open X11 display ":0.0"
So I ran

Code: Select all

sudo cp ~/.Xauthority /root/ ; sudo spnavd_ctl x11 start ; sudo systemctl restart spacenavd

and now FreeCAD recognizes the hardware flawlessly. I'm unsure whether the

Code: Select all

spnav_ctl x11 start

command aided in getting things to work--but regardless--that's what I ran under this session to get functionality.

Thank you!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply