Here it is:
Compile on Win 7-30-19
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Compile on Win 7-30-19
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.
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)
Re: Compile on Win 7-30-19
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?
Could you also test if it works if go back to the older lib pack 12.1.2?
Re: Compile on Win 7-30-19
Thanks for having a look.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?
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.
Re: Compile on Win 7-30-19
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:
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
Re: Compile on Win 7-30-19
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:
This happens because the BUILD_QT5 flag isn't set.And indeed, there is no file Shiboken2Config-python2.7.cmake in the libpacks.
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.
"fight the good fight"
Re: Compile on Win 7-30-19
Many thanks for having a look and fixing this.
I already set this flag and got and still get the Shiboken2Config error.
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)
OK. Please tell me when the fixed libpack is online.
Meanwhile I will now install VS2017 and report if i can compile with it.
Re: Compile on Win 7-30-19
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?
Re: Compile on Win 7-30-19
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.
"fight the good fight"
Re: Compile on Win 7-30-19
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.
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.