[Solved] AWS Windows Server 2016/Azure Windows 10 Pro

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
JoshuaCall
Posts: 50
Joined: Tue Dec 17, 2019 3:43 am

[Solved] AWS Windows Server 2016/Azure Windows 10 Pro

Post by JoshuaCall »

Has anyone managed to compile FC 0.19 on AWS workspace Windows 10 desktop experience, powered by Windows Server 2016? I got it to work just fine on my Windows 10 1903 laptop, but it didn't work on AWS Windows 10 destop powered by Windows Server 2016. I'm wondering if anyone would know why that is.

I'm also thinking of trying the BYOL option. Has anyone had success with that?
Last edited by JoshuaCall on Mon Jan 13, 2020 11:45 am, edited 2 times in total.
User avatar
JoshuaCall
Posts: 50
Joined: Tue Dec 17, 2019 3:43 am

Re: AWS Windows Server 2016

Post by JoshuaCall »

Update: I'm having a similar problem when trying to compile in Windows 10 Pro 1903 on a Microsoft Azure cloud instance. The problem is similar, except this is the key difference:

On both operating systems, after I compile and then install and/or copy the the necessary files to the build directory, the FreeCAD splash screen will appear.

On AWS Windows Server 2016, after the splash screen appears and then disappears, a window will open that says something along the lines of "freecad has stopped working" and gives me the option to close or debug.

On Azure Windows 10 Pro, after the splash screen appears and then disappears, nothing else happens.
User avatar
JoshuaCall
Posts: 50
Joined: Tue Dec 17, 2019 3:43 am

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by JoshuaCall »

I think the problem might be the lack of a GPU on these instances.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by sgrogan »

JoshuaCall wrote: Wed Jan 08, 2020 10:07 am I think the problem might be the lack of a GPU on these instances.
Maybe this thread offers some clues? https://forum.freecadweb.org/viewtopic.php?f=4&t=36087

You can try launching FreeCAD with the -l switch to get a log in %appdata%/FreeCAD
Or maybe FreeCADcmd -l, that doesn't require a gui at all. You could also try to run the selftests from FreeCADcmd https://www.freecadweb.org/wiki/Start_u ... figuration

Can you get the onboard graphics info? There have been issues with some chipsets with QT5/OpenGL.

If you get this working I'd love to know the details.
"fight the good fight"
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by apeltauer »

How are you connected to your windows instance? Via Remote Desktop? In my experience the rdp protocol uses OpenGL 1.4 (or lower) and Qt5.12 needs OpenGL greater then that. So if you try to start Freecad on a remote machine via rdp this will fail.
User avatar
JoshuaCall
Posts: 50
Joined: Tue Dec 17, 2019 3:43 am

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by JoshuaCall »

apeltauer wrote: Thu Jan 09, 2020 7:38 am How are you connected to your windows instance? Via Remote Desktop?
I connected to the AWS instance via the amazon workspaces client, and I connected to the azure instance via an RDP file.
apeltauer wrote: Thu Jan 09, 2020 7:38 am In my experience the rdp protocol uses OpenGL 1.4 (or lower) and Qt5.12 needs OpenGL greater then that. So if you try to start Freecad on a remote machine via rdp this will fail.
Why would that keep FreeCAD from running at all on the remote desktop? I didn't even see FreeCAD running in the task manager. Also, does that mean that I wouldn't be able to connect to someone else's desktop via Remote Desktop Connection and compile/run FreeCAD 0.19?
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by apeltauer »

Compiling works, just starting Freecad won’t work via rdp.
Try to connect to the machine with some other program like teamviewer...
User avatar
JoshuaCall
Posts: 50
Joined: Tue Dec 17, 2019 3:43 am

Re: AWS Windows Server 2016/Azure Windows 10 Pro

Post by JoshuaCall »

sgrogan wrote: Wed Jan 08, 2020 9:51 pm
apeltauer wrote: Thu Jan 09, 2020 7:38 am
Alright guys, thanks for your advice. I was actually able to get it working on both AWS and Azure by just downloading an opengl32.dll from https://fdossena.com/?p=mesa/index.frag and then copying the dll to the bin folder. I found the website with the dll on stack overflow.
Post Reply