FRI-Computational-Materials / haptic-device

Code for the FRI haptic device project
5 stars 3 forks source link

Windows support may be easy with some WSL2/Xming/GLX version control magic #60

Open grahamstockton opened 3 years ago

grahamstockton commented 3 years ago

I'm going to preface this by saying that I know very little about building software in windows, so there may be an equally easy solution for running the haptic device natively on windows, and I wouldn't know.

Using WSL2 with Ubuntu/Gnome (similar would probably work too) and Xming for windows, you can get support for running linux GUI applications. The issue that I ran into is that the GLFW libraries used by the haptic device use GLX version 1.3, which is not supported by Xming. With another windows X server client, or with some fiddling, it may be possible to get an easy setup going for windows users who want to work on this project/use our software.

I went to the trouble of getting GUIs set up with WSL 2, so if anyone has trouble with that, they can reach out to me for that part.

fabrice-ducos commented 3 years ago

One can avoid this issue by replacing Xming with VCXSRV (also FOSS), that supports GLX 1.4

https://github.com/sxyu/volrend/issues/8#issuecomment-898958107