Compile on Win 7-30-19

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Tue Aug 13, 2019 9:51 pm

apeltauer wrote:
Tue Aug 13, 2019 5:33 am
Can you post your whole cmake output?
Here it is:
CMakeError.log
(1.08 KiB) Downloaded 15 times
CMakeOutput.log
(14.37 KiB) Downloaded 12 times
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Tue Aug 13, 2019 10:18 pm

sgrogan wrote:
Tue Aug 13, 2019 8:51 pm
Brute force setting all the lib paths would allow you to continue, but it would be good to know why others don't need to do this.
I did this now and set all path manually as in your screenshot, but then I get the next error:

Code: Select all

CMake Error at D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/cmake/hdf5/hdf5-targets.cmake:225 (message):
  The imported target "hdf5::h5debug" references the file

     "D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/bin/h5debug.exe"

  but this file does not exist.
This is a bug in the 12.1.3 libpack because in the 12.1.2 this file is there. I copied this file now from the 12.1.2 libpack but then the next error occurs:

Code: Select all

CMake Error at D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/lib/cmake/Shiboken2-5.12.2/Shiboken2Config.cmake:10 (include):
  include could not find load file:

    D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/lib/cmake/Shiboken2-5.12.2/Shiboken2Config-python2.7.cmake
Call Stack (most recent call first):
  CMakeLists.txt:1046 (find_package)
And indeed, there is no file Shiboken2Config-python2.7.cmake in the libpacks.
User avatar
apeltauer
Posts: 291
Joined: Fri Aug 11, 2017 2:19 pm

Re: Compile on Win 7-30-19

Post by apeltauer » Wed Aug 14, 2019 5:13 am

I just locked at your output file and i think it is a little bit short. Can you check again if this is all of the output?!? Also can you copy and past the output the cmake gui is producing?
Could you also test if it works if go back to the older lib pack 12.1.2?
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Wed Aug 14, 2019 11:10 am

apeltauer wrote:
Wed Aug 14, 2019 5:13 am
I just locked at your output file and i think it is a little bit short. Can you check again if this is all of the output?!? Also can you copy and past the output the cmake gui is producing?
Could you also test if it works if go back to the older lib pack 12.1.2?
Thanks for having a look.
There is no more output than the log files. Are there other files with relevant output?
The CMake GUI output is the one I posted in this message:
https://forum.freecadweb.org/viewtopic. ... 40#p325777

With lib pack 12.1.2 I get the same problem that boost is not found.

Besides this, in my previous post I found out that the lib pack 12.1.3 misses the h5debug.exe. So this must be corrected in the 12.1.3 pack in every case.
User avatar
apeltauer
Posts: 291
Joined: Fri Aug 11, 2017 2:19 pm

Re: Compile on Win 7-30-19

Post by apeltauer » Wed Aug 14, 2019 12:54 pm

Another try would be to set a environment variable to point to your lib pack. The variable is called "FREECAD_LIBPACK_DIR" --> point to your lib pack. Works for me...

You can also start a command line and set it temporary and then start your cmake gui:

Code: Select all

set FREECAD_LIBPACK_DIR=PathToMyLibPack
User avatar
sgrogan
Posts: 5800
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile on Win 7-30-19

Post by sgrogan » Wed Aug 14, 2019 9:05 pm

uwestoehr wrote:
Wed Aug 14, 2019 11:10 am
Besides this, in my previous post I found out that the lib pack 12.1.3 misses the h5debug.exe. So this must be corrected in the 12.1.3 pack in every case.
I will fix this, I have the file locally don't know how this isn't included in the .7zip.

I have discovered that the behavior is different using VS2017 vs. VS2015 as the generator. I have problems finding boost with VS2015.
I will investigate further.

EDIT:
And indeed, there is no file Shiboken2Config-python2.7.cmake in the libpacks.
This happens because the BUILD_QT5 flag isn't set.

After brute forcing the boost lib paths and setting the BUILD_QT5 flag, I start to get boost-python errors. These paths could also be brute forced, but instead I set the FREECAD_USE_PYBIND11 flag (PYBIND11 is a header only alternative to boost-python)
After this I can configure and generate successfully.

Sorry for not testing VS2015 earlier, I'm surprised that it's different at the CMake phase.
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Wed Aug 14, 2019 9:51 pm

sgrogan wrote:
Wed Aug 14, 2019 9:05 pm
I will fix this, I have the file locally don't know how this isn't included in the .7zip.
Many thanks for having a look and fixing this.

sgrogan wrote:
Wed Aug 14, 2019 9:05 pm
And indeed, there is no file Shiboken2Config-python2.7.cmake in the libpacks.
This happens because the BUILD_QT5 flag isn't set.
I already set this flag and got and still get the Shiboken2Config error.

sgrogan wrote:
Wed Aug 14, 2019 9:05 pm
After brute forcing the boost lib paths and setting the BUILD_QT5 flag, I start to get boost-python errors. These paths could also be brute forced, but instead I set the FREECAD_USE_PYBIND11 flag
Then I get this error:

Code: Select all

CMake Error at D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/share/cmake/pybind11/FindPythonLibsNew.cmake:122 (message):
  Python config failure: Python is 32-bit, chosen compiler is 64-bit
Call Stack (most recent call first):
  D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/share/cmake/pybind11/pybind11Tools.cmake:16 (find_package)
  D:/FreeCAD-build/FreeCADLibs_12.1.3_x64_VC15/share/cmake/pybind11/pybind11Config.cmake:100 (include)
  CMakeLists.txt:642 (find_package)
sgrogan wrote:
Wed Aug 14, 2019 9:05 pm
Sorry for not testing VS2015 earlier, I'm surprised that it's different at the CMake phase.
OK. Please tell me when the fixed libpack is online.
Meanwhile I will now install VS2017 and report if i can compile with it.
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Wed Aug 14, 2019 10:17 pm

uwestoehr wrote:
Wed Aug 14, 2019 9:51 pm
Meanwhile I will now install VS2017 and report if I can compile with it.
Wow! With MSVC 2017 the CMake configurations works out of the box (CMake 3.14.1). Only the option BUILD_QT5 to create a Qt5 build is missing. Can this be activated by default for the next libpack version?
User avatar
sgrogan
Posts: 5800
Joined: Wed Oct 22, 2014 5:02 pm

Re: Compile on Win 7-30-19

Post by sgrogan » Wed Aug 14, 2019 10:20 pm

uwestoehr wrote:
Wed Aug 14, 2019 10:17 pm
Wow! With MSVC 2017 the CMake configurations works out of the box (CMake 3.14.1). Only the option BUILD_QT5 to create a Qt5 build is missing. Can this be activated by default for the next libpack version?
It's supposed to be detected, it sometimes doesn't work if setting the libpack in CMake. It seems to work when using an env variable.
User avatar
uwestoehr
Posts: 1425
Joined: Sun Jan 27, 2019 3:21 am

Re: Compile on Win 7-30-19

Post by uwestoehr » Wed Aug 14, 2019 11:26 pm

I could compile most of the projects with VS2017, but these 2 project failiures break the overall compilation:

FreeCADGui
https://forum.freecadweb.org/viewtopic.php?f=4&t=38565
and
AddonManager
https://forum.freecadweb.org/viewtopic.php?f=4&t=38566

I guess this is independent on the LibPack but don#t know this for sure.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests