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

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

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

Post by DeepSOIC »

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

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

Post by wmayer »

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: 399
Joined: Fri Aug 11, 2017 2:19 pm

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

Post by apeltauer »

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
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

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

Post by wmayer »

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
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

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

Post by sgrogan »

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.
"fight the good fight"
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

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

Post by apeltauer »

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
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

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

Post by saso »

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: 399
Joined: Fri Aug 11, 2017 2:19 pm

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

Post by apeltauer »

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
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

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

Post by sgrogan »

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?
"fight the good fight"
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

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

Post by apeltauer »

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?
Post Reply