Compile Issues on Windows using latest Libpack

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Zig_mint
Posts: 12
Joined: Thu Jan 10, 2019 5:48 pm

Compile Issues on Windows using latest Libpack

Post by Zig_mint »

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
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Compile Issues on Windows using latest Libpack

Post by Jee-Bee »

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

Re: Compile Issues on Windows using latest Libpack

Post by Zig_mint »

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

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

Re: Compile Issues on Windows using latest Libpack

Post by DeepSOIC »

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

Post by Zig_mint »

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

Post by Zig_mint »

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

Re: Compile Issues on Windows using latest Libpack

Post by sgrogan »

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
"fight the good fight"
zipitupuk
Posts: 1
Joined: Wed May 18, 2022 10:33 pm

Re: Compile Issues on Windows using latest Libpack

Post by zipitupuk »

Hi - thought Id add my two pennies worth(i am totall new to this and just trying to find a cad program i can get to grips with for my 3D printer.)
I had the same problem, tried reinstalling, tried the moving Lib files....Turns out what appeard to cause the problem for me, was that i chose a custom install path for the progra. when i re installed it to the default path it wanted, it started fine.

if this was obious, i apologise and doff my newbie ha to you <grin>

first time installer, new to this forum and my first post all in one day....think i might need a lay down lol :D
Post Reply