Building Libs for Windows Debug Version with VS2017/Qt5.12

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
DeepSOIC
Posts: 6951
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby DeepSOIC » Fri Apr 05, 2019 4:05 pm

Wohahaha, the new libpack! Time for me to get going on fixing gesture navigation on Qt5!
wmayer
Site Admin
Posts: 14774
Joined: Thu Feb 19, 2009 10:32 am

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby wmayer » Sun Apr 07, 2019 11:52 am

There are two files missing to make ssl support working: ssleay32.dll and libeay32'dll

In Qt there is the function loadOpenSslWin32() (inside C:\Qt\5.12.1\Src\qtbase\src\network\ssl\qsslsocket_openssl_symbols.cpp) that tries to load them.
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby apeltauer » Sun Apr 07, 2019 3:11 pm

wmayer wrote:
Sun Apr 07, 2019 11:52 am
There are two files missing to make ssl support working: ssleay32.dll and libeay32'dll

In Qt there is the function loadOpenSslWin32() (inside C:\Qt\5.12.1\Src\qtbase\src\network\ssl\qsslsocket_openssl_symbols.cpp) that tries to load them.
Will add them....
wmayer
Site Admin
Posts: 14774
Joined: Thu Feb 19, 2009 10:32 am

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby wmayer » Sun Apr 07, 2019 5:43 pm

I can't remember how I once built them but you can use them from a previous libpack even when created with an older compiler because it's a C library and thus it doesn't matter. Of course you need the 64-bit version -- the 32-bit doesn't work.
In order to see that it works you can go to any forum thread where an .fcstd file is attached. When you drag and drop the link to a FreeCAD instance it should download the file without error message.
User avatar
sgrogan
Posts: 5321
Joined: Wed Oct 22, 2014 5:02 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby sgrogan » Sun Apr 07, 2019 5:55 pm

wmayer wrote:
Sun Apr 07, 2019 5:43 pm
When you drag and drop the link to a FreeCAD instance it should download the file without error message.
I used the .dll's from my Conda FreeCAD and this works perfectly.
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby apeltauer » Mon Apr 08, 2019 9:14 am

Updated the libpack with the files from the old libpack.... (https://github.com/apeltauer/FreeCAD/re ... bPack_12.1)

BTW: i added a pr (https://github.com/FreeCAD/FreeCAD/pull/2071) to reduce the compile time....
User avatar
saso
Posts: 1310
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby saso » Mon Apr 08, 2019 6:39 pm

apeltauer wrote:
Mon Apr 08, 2019 9:14 am
BTW: i added a pr (https://github.com/FreeCAD/FreeCAD/pull/2071) to reduce the compile time....
We have already been running the builds with the msbuild /m on windows and with make -j2 on linux to use all the available cpu cores, so I don't think this is needed and actually, I don't know why, but at least on windows, the builds with this commit now seem to run even slower https://ci.appveyor.com/project/yorikva ... ad/history
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby apeltauer » Mon Apr 08, 2019 7:22 pm

Maybe the flag does not speed up the build on machines with just 2 cpu. But I can just say that it speeds up the build on a 8 thread and 12 thread I7. With the flag my machines nearly have 100% percent usage all the time.
User avatar
sgrogan
Posts: 5321
Joined: Wed Oct 22, 2014 5:02 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby sgrogan » Mon Apr 08, 2019 9:35 pm

apeltauer wrote:
Mon Apr 08, 2019 9:14 am
Updated the libpack with the files from the old libpack.... (https://github.com/apeltauer/FreeCAD/re ... bPack_12.1)
Many thanks.
Do you mind if I also upload this to https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre?
Would you like any attribution? Or would you prefer a link to your github?
User avatar
apeltauer
Posts: 207
Joined: Fri Aug 11, 2017 2:19 pm

Re: Building Libs for Windows Debug Version with VS2017/Qt5.12

Postby apeltauer » Tue Apr 09, 2019 5:06 am

sgrogan wrote:
Mon Apr 08, 2019 9:35 pm
apeltauer wrote:
Mon Apr 08, 2019 9:14 am
Updated the libpack with the files from the old libpack.... (https://github.com/apeltauer/FreeCAD/re ... bPack_12.1)
Many thanks.
Do you mind if I also upload this to https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre?
Would you like any attribution? Or would you prefer a link to your github?
I think this is the right place for the libpack. If you mention my name, i would appreciate it.

BTW: Do we already have a discussion about a daily automated build,installer and a upload to somewhere?