realthunder / FreeCAD

Link branch FreeCAD
Other
763 stars 45 forks source link

[Problem] Spacemouse not detected in 20240113stable macOS release #931

Closed wltwt closed 7 months ago

wltwt commented 7 months ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

OS: macOS 14.2.1
Word size of FreeCAD: 64-bit
Version: 2024.114.0.14555 (Git shallow)
Build type: Release
Branch: HEAD
Hash: 4235ee9c92d9822b434ec2bc8da7cee729fd9f3b
Python 3.11.6, Qt 5.15.8, Coin 4.0.1, Vtk 9.2.5, OCC 7.7.2
Locale: C/Default (C)
Installed mods: 
  * Assembly3 0.12.0

Subproject(s) affected?

None

Problem description

Hello! I saw that PR #11753 was implemented into the LinkStable relase, but when I tried to test the latest release (20240113stable) with my spacemouse it was not detected.

I managed to build the current release using this guide (https://github.com/oursland/FreeCAD-Build-Notes) and the spacemouse connected successfully.

I have little experience with the cMake build process, but I stumbled upon these lines of code in the cMake folder.

https://github.com/realthunder/FreeCAD/blob/4235ee9c92d9822b434ec2bc8da7cee729fd9f3b/cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake#L145-L151

Is it possible that the absence of ${3DCONNEXIONCLIENT_FRAMEWORK} in the build environment could cause the software not to detect the spacemouse?

Anything else?

About info from build that successfully connect to spacemouse:

OS: macOS 14.2.1
Word size of FreeCAD: 64-bit
Version: 0.21.0.38940 (Git)
Build type: Release
Branch: LinkStable
Hash: 4235ee9c92d9822b434ec2bc8da7cee729fd9f3b
Python 3.11.0, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly3 0.12.0

Code of Conduct

wltwt commented 7 months ago

In addition to my previous description, I found a specific warning in the build logs that might be related to the issue with Spacemouse support. In the build log here, at line 66095, there's a warning:

WARNING (freecad-rt,lib/libFreeCADGui.dylib): /Library/Frameworks/3DconnexionClient.framework/Versions/A/3DconnexionClient not found in packages, sysroot(s) nor the missing_dso_whitelist.

This seems to be a warning about the 3DconnexionClient framework not being found. Could this be a potential cause for the Spacemouse functionality not working in the latest build?

wltwt commented 7 months ago

Update: Upon further inspection, I realized that the build log I previously referenced was for the Intel 64-bit version, in which the 3Dconnexion driver actually works. I am now uncertain about what could be causing the issue in the ARM64 version. Any insights or guidance to better understand this issue would be greatly appreciated.

wltwt commented 7 months ago

Issue resolved in 20240123stable, thanks for resolving the issue!