macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
PistonPin
Posts: 3
Joined: Tue Nov 05, 2019 8:29 pm

macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby PistonPin » Tue Nov 05, 2019 10:44 pm

Hello everyone!

I have a question. And depending on the answer to this question, I also might have a request. :)

Currently I'm trying to transition from Fusion 360 to FreeCAD. I had to give it a few tries, but now I feel accustomed enough to make the switch. (My main use case is designing functional parts for 3d-printing.)

I've spent the last two or three evenings trying to build 0.18 and 0.19 with SpaceMouse support – with mediocre success. (FreeCAD successfully compiled, but the resulting FreeCAD.app wouldn't start anymore if moved to the /Applications folder. It runs if it is started from the folder where it was built, but would throw an error about numpy.)

While I was going through the cmake options, I was wondering if it would be possible to have SpaceMouse support built into the official FreeCAD releases for macOS?

I know that the config script checks for the presence of the 3Dconnexion software and automatically adds support if it is able to find said software. But would setting

Code: Select all

FREECAD_USE_3DCONNEXION:BOOL=ON
and

Code: Select all

3DCONNEXIONCLIENT_FRAMEWORK:FILEPATH=/Library/Frameworks/3DconnexionClient.framework
be enough to compile it into FreeCAD, even if there is no 3Dconnexion software installed?

For now I stick to 0.17. :)

Cheers,
Alexander
User avatar
sgrogan
Posts: 5416
Joined: Wed Oct 22, 2014 5:02 pm

Re: macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby sgrogan » Tue Nov 05, 2019 11:00 pm

PistonPin wrote:
Tue Nov 05, 2019 10:44 pm
For now I stick to 0.17. :)
I think its working again in https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
User avatar
PistonPin
Posts: 3
Joined: Tue Nov 05, 2019 8:29 pm

Re: macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby PistonPin » Tue Nov 05, 2019 11:32 pm

sgrogan wrote:
Tue Nov 05, 2019 11:00 pm
PistonPin wrote:
Tue Nov 05, 2019 10:44 pm
For now I stick to 0.17. :)
I think its working again in https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre
Nope, unfortunately not.
looo
Posts: 2898
Joined: Mon Nov 11, 2013 5:29 pm

Re: macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby looo » Wed Nov 06, 2019 5:17 am

I don't think we have enabled this option for Mac. Package for spnav is available, but iicrc it didn't work out of the box.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
wmayer
Site Admin
Posts: 14882
Joined: Thu Feb 19, 2009 10:32 am

Re: macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby wmayer » Wed Nov 06, 2019 8:43 am

be enough to compile it into FreeCAD, even if there is no 3Dconnexion software installed?
I think for macOS you need the SDK installed because when looking into GuiNativeEventMac.h then a couple of methods are declared as extern and it includes some header files which are not part of the FreeCAD code base.
User avatar
PistonPin
Posts: 3
Joined: Tue Nov 05, 2019 8:29 pm

Re: macOS: Possible to have 3Dconnexion SpaceMouse support built into official releases?

Postby PistonPin » Fri Nov 08, 2019 4:51 pm

be enough to compile it into FreeCAD, even if there is no 3Dconnexion software installed?
I think for macOS you need the SDK installed because when looking into GuiNativeEventMac.h then a couple of methods are declared as extern and it includes some header files which are not part of the FreeCAD code base.
Ah, okay, I see. Thanks for the clarification!