Compile Issues on Windows using latest Libpack

Having trouble installing or compiling FreeCAD? Get help here.
Zig_mint
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

Compile Issues on Windows using latest Libpack

Postby Zig_mint » Mon May 13, 2019 1:57 pm

hello,

I have been trying to compile freecad latest version from github on windows 10 and Microsoft VS 2019 and Libpack 12.1.2 x64
I happen to come across this error using Cmake 3.14. Any suggestions on what I should do

Code: Select all

Found unsuitable Qt version "5.12.1" from C:/Users/RUPESH/Desktop/PROJECTS/SOP/FreeCAD/FreeCADLibs_12.1.2_x64_VC15/bin/qmake.exe
Qt QTOPENGL library not found.
Qt QTSVG library not found.
Qt QTUITOOLS library not found.
Qt QTWEBKIT library not found.
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTNETWORK library not found.
Qt QTCORE library not found.
CMake Error at CMakeLists.txt:851 (MESSAGE):
  ========================

  Qt4 libraries not found.

  ========================
Jee-Bee
Posts: 1959
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Compile Issues on Windows using latest Libpack

Postby Jee-Bee » Mon May 13, 2019 1:59 pm

it uses Qt5...
Zig_mint
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

Re: Compile Issues on Windows using latest Libpack

Postby Zig_mint » Mon May 13, 2019 2:38 pm

If it uses Qt5.......how do I fix this error?

PS: I am new to cmake.
User avatar
DeepSOIC
Posts: 7051
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Compile Issues on Windows using latest Libpack

Postby DeepSOIC » Mon May 13, 2019 4:02 pm

Set BUILD_QT5 to ON in CMakeCache.txt (or wherever you tweak them, I do it in Qt Creator, but it is also doable with CMake-gui, and maybe with Visual Studio).
Zig_mint
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

Re: Compile Issues on Windows using latest Libpack

Postby Zig_mint » Tue May 14, 2019 8:37 am

Hi,

Thanks for the quick reply. I was able to correct the error and was even able to build the FreeCAD from visual studio 2019. Now when I run the Freecad.exe file from the build-directory/bin/freecad.exe I get the error saying

Code: Select all

The code execution cannot proceed because Qt5Core.dll was not found. Reinstalling the program may fix this problem.
I have already tried reinstalling the application twice. i wonder why is the application is searching for Qt5 on my system when it has already been told to use it from LibPack.
Zig_mint
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

Re: Compile Issues on Windows using latest Libpack

Postby Zig_mint » Tue May 14, 2019 9:38 pm

Thank you apeltauer, this post was very helpful and I am now able to compile and run FreeCAD. Following are the version details for those who wish to know

Windows SDK version 10.0.17763.0 to Windows 10.0.17134.
Compiler: MSVC, version: 19.20.27508.1
Cmake 3.14.3
FreeCAD Vulcan version 0.19.16100
User avatar
sgrogan
Posts: 5421
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile Issues on Windows using latest Libpack

Postby sgrogan » Tue May 14, 2019 9:44 pm

Zig_mint wrote:
Tue May 14, 2019 9:38 pm
Thank you apeltauer, this post was very helpful and I am now able to compile and run FreeCAD. Following are the version details for those who wish to know
Glad it working.
We recently tagged an update to 0.18.2 https://github.com/FreeCAD/FreeCAD/tree ... eeCAD-0-18