LibPack incomplete? or what am I missing?

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
PapaAtHome
Posts: 55
Joined: Mon Dec 31, 2018 6:45 pm

Re: LibPack incomplete? or what am I missing?

Post by PapaAtHome »

ulrich1a wrote: Thu Jan 02, 2020 9:49 pm I checked one of the latest commit in that branch: Russ4262/FreeCAD/tree/path_3d_pocket_upgrade
(https://github.com/sliptonic/FreeCAD/tr ... c/Mod/Path)
and it is already in FreeCAD master 0.19_pre. So no need to compile that branch yourself.
That will be a way around my problems then. Thanks for noticing this. :)

Kind regards.
Kind regards, Andre.
User avatar
PapaAtHome
Posts: 55
Joined: Mon Dec 31, 2018 6:45 pm

Re: LibPack incomplete? or what am I missing?

Post by PapaAtHome »

Update:
It puzzled me that CMake was still looking for a directory in FreeCADlibs that does not exist.
While checking all details I found that I was still building against v0.19 sources. :oops:
Corrected that with a git switch to tags/FreeCAD-0-18 (and double checked it).
And emptied the .../Build directory.

The package is still not accepted by CMake.

From the instructions:
LibPack
At first you need to setup a build folder:
1. Create a new folder where the compiled FreeCAD should be. It is highly recommended that this folder is not inside the source code folder of FreeCAD.
And from CMakeList.txt, r180

set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")


To me the instructions are conflicting with the hard coded path in CMakeList.txt (for v0.18), it could be that the instructions have changed and are now specific for v0.19.

Changed line 180 in the following:

if (DEFINED ENV{FREECAD_LIBPACK_DIR})
set(FREECAD_LIBPACK_DIR $ENV{FREECAD_LIBPACK_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
else()
set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
endif()
MESSAGE("==================================================\n"
"Looking for FREECAD_LIBPACK_DIR at '${FREECAD_LIBPACK_DIR}'.\n"
"==================================================\n")


Now CMake finds and uses the LibPack but has troubles finding all of the Boost package.

CMake now gives the following results:
...
Compiler: MSVC, version: 19.0.24215.1
prefix: C:/Program Files (x86)/FreeCAD_trunk
datadir: data
docdir: doc
includedir: include
libdir: lib
cmake: 3.14.7
==================================================
Looking for FREECAD_LIBPACK_DIR at 'H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12'.
==================================================

PyCXX found:
Headers: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCAD-0-18/src
Sources: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCAD-0-18/src/CXX
Version: 6.2.8
Found SWIG: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12/bin/swig/swig.exe (found version "1.3.40")
Found PythonInterp: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12/bin/python.exe (found version "2.7.14")
Found PythonLibs: optimized;H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12/lib/python27.lib;debug;H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12/lib/python27_d.lib (found suitable exact version "2.7.14")
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/FindBoost.cmake:2165 (message):
Unable to find the requested Boost libraries.

Boost version: 1.55.0

Boost include path:
H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12/include

Could not find the following Boost libraries:
boost_filesystem
boost_program_options
boost_regex
boost_system
boost_thread

Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
CMakeLists.txt:599 (find_package)

CMake Error at CMakeLists.txt:615 (MESSAGE):
=============================================
Required components:
filesystem;program_options;regex;system;thread

Not found, install the components:
filesystem;program_options;regex;system;thread
=============================================

Configuring incomplete, errors occurred!


(added.)
Note: I'm also building v0.19, witch exact the same results. :shock:
...
Found libpack env variable: H:/andre/ontwikkeling/FreeCAD/v0.19/FreeCADLibs_12.1.2_x64_VC15
...
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/FindBoost.cmake:2165 (message):
Unable to find the requested Boost libraries.

Boost version: 1.67.0

Boost include path:
H:/andre/ontwikkeling/FreeCAD/v0.19/FreeCADLibs_12.1.2_x64_VC15/include

Could not find the following Boost libraries:

boost_filesystem
boost_program_options
boost_regex
boost_system
boost_thread

Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Call Stack (most recent call first):
cMake/FreeCAD_Helpers/SetupBoost.cmake:7 (find_package)
CMakeLists.txt:53 (SetupBoost)

CMake Error at cMake/FreeCAD_Helpers/SetupBoost.cmake:23 (message):
=============================================
Required components:
filesystem;program_options;regex;system;thread

Not found, install the components:
filesystem;program_options;regex;system;thread
=============================================

Call Stack (most recent call first):
CMakeLists.txt:53 (SetupBoost)

Configuring incomplete, errors occurred!


Any advise is welcome.

Kind regards,
Kind regards, Andre.
User avatar
PapaAtHome
Posts: 55
Joined: Mon Dec 31, 2018 6:45 pm

Re: LibPack incomplete? or what am I missing?

Post by PapaAtHome »

PapaAtHome wrote: Sat Jan 04, 2020 8:36 am
ulrich1a wrote: Thu Jan 02, 2020 9:49 pm I checked one of the latest commit in that branch: Russ4262/FreeCAD/tree/path_3d_pocket_upgrade
(https://github.com/sliptonic/FreeCAD/tr ... c/Mod/Path)
and it is already in FreeCAD master 0.19_pre. So no need to compile that branch yourself.
That will be a way around my problems then. Thanks for noticing this. :)
Just to inform:
Downloaded the latest build of v0.19, 'FreeCAD_0.19.19127_x64_LP_12.1.2_PY3QT5-WinVS2015' but the vcarve option is not available or activated.
The 'teaser' at https://www.youtube.com/watch?v=mC21T943auk from Sliptonic does not contain enough info on how to continue.
I will do some more 'look around' for the details.

kind regards.
Kind regards, Andre.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: LibPack incomplete? or what am I missing?

Post by sgrogan »

PapaAtHome wrote: Sat Jan 04, 2020 7:50 pm Downloaded the latest build of v0.19, 'FreeCAD_0.19.19127_x64_LP_12.1.2_PY3QT5-WinVS2015' but the vcarve option is not available or activated.
The 'teaser' at https://www.youtube.com/watch?v=mC21T943auk from Sliptonic does not contain enough info on how to continue.
I will do some more 'look around' for the details.
It may be that the optional 3rd party ocl.pyd module is necessary, maybe one of the Path guru's knows?
This module is not bundled in your version.
I added it to the Win bundles and it should be available in the LP_12.1.2 build for 0.19.19151 and above.
I will work on adding it to the Win conda based bundles.
"fight the good fight"
yhw-miracle
Posts: 13
Joined: Sat Jan 04, 2020 5:01 am

Re: LibPack incomplete? or what am I missing?

Post by yhw-miracle »

PapaAtHome wrote: Wed Jan 01, 2020 1:06 pm Hi to all,

First, best wishes for 2020 from me.

I'm using FreeCAD (0.17 and 0.18) for 12 months now and would like to compile it myself. Reason, I want to see what Sliptonic is doing with VCarving (one of his features in 0.19_pre)

In short:
When I try to build FreeCAD CMake cannot find all required files in LibPack.
from: "$(root)\FreeCAD\cMake\FreeCAD_Helpers\InitializeFreeCADBuildOptions.cmake":r48
> if (EXISTS ${FREECAD_LIBPACK_DIR}/plugins/imageformats/qsvg.dll)
Directories in LibPack do not include a "...\FreeCADLibs_11.11_x64_VC12\plugins\"

Some details:
I followed the instructions from "https://www.freecadweb.org/wiki/Compile_on_Windows" to the letter.
Details of packages on the machine I want to use to build FreeCAD:
- git version 2.16.1.windows.4
- TortoiseGit 2.9.0.0
- cmake-3.14.7-win64-x64
- FreeCADLibs_11.11_x64_VC12.7z
- python-3.7.6-amd64
- nsis-3.05-setup
- Visual Studio 2015 community edition (already in use for some time)

I created a root directory where I want to build, I'm referring to it as 'root' for simplicity.
Git clone https://github.com/FreeCAD/FreeCAD.git -> $(root)/FreeCAD
z7zip unzipped FreeCADLibs_11.11_x64_VC12.7z -> $(root)/FreeCADLibs_11.11_x64_VC12
set FREECAD_LIBPACK_DIR=$(root)/FreeCADLibs_11.11_x64_VC12
build results should go to $(root)/build

CMake:
source=$(root)/FreeCAD
build=$(root)/Build
generator: Visual Studio 14 2015
platform: x64
toolset: (default, empty)
(x) use default native compilers

Cmake error messages:
...
Found libpack env variable: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12
Libpack NOT found.
...
CMake Error at cMake/FreeCAD_Helpers/SetupPCL.cmake:11 (find_package):
By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
...

Problems.
1 - Libpack status?
2 - PCL? (as result of problem 1?)

@1:
from: "$(root)\FreeCAD\cMake\FreeCAD_Helpers\InitializeFreeCADBuildOptions.cmake":r48
> if (EXISTS ${FREECAD_LIBPACK_DIR}/plugins/imageformats/qsvg.dll)
Directories in "$(root)\FreeCADLibs_11.11_x64_VC12"
bin\
cmake\
include\
lib\
share\
src\
tools\

some more details from the CMake log:
..
Compiler: MSVC, version: 19.0.24215.1
prefix: C:/Program Files (x86)/FreeCAD
bindir: bin
datadir: data
docdir: doc
includedir: include
libdir: lib
cmake: 3.14.7
Found libpack env variable: H:/andre/ontwikkeling/FreeCAD/v0.18_64/FreeCADLibs_11.11_x64_VC12
Libpack NOT found.
If you intend to use a Windows libpack, set the FREECAD_LIBPACK_DIR to the libpack directory.
Visit: https://github.com/apeltauer/FreeCAD/releases/ for Windows libpack downloads.
PyCXX found:
...

No directory "$(root)\FreeCADLibs_11.11_x64_VC12\plugins\" available!

There are no instructions to 'compile' FreeCADLibs first so I must assume that I make a mistake or have another false assumtion.
For now I'm stuck.

Can somebody advise me on how to install/use LibPack?

Kind regards,
Andre.

hello, PapaAtHome! I can ask you questions about compiling freecad0.18.4, support python3, use conda. Can you compile freecad0.18 with python3 and conda?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: LibPack incomplete? or what am I missing?

Post by Kunda1 »

yhw-miracle wrote: Tue Jan 07, 2020 12:57 amhello
Please do not quote the whole reply of the user you're addressing. Instead just quote the specific portion of the person's reply that you're addressing. Thanks
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply