CMake: "Could NOT find Boost (missing: filesystem, ...)"

Having trouble installing or compiling FreeCAD? Get help here.
umill
Posts: 12
Joined: Tue Feb 11, 2020 4:32 pm

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by umill » Thu Sep 10, 2020 9:33 pm

Hello,

I am also facing this issue with the error:

Code: Select all

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.14393.
Compiler: MSVC, version: 19.16.27043.0
prefix: C:/Program Files (x86)/FreeCAD
bindir: bin
datadir: data
docdir: doc
includedir: include
libdir: lib
cmake: 3.16.0-rc2
PyCXX found:
  Headers:  C:/Users/T5810/Documents/GitHub/FreeCAD/src
  Sources:  C:/Users/T5810/Documents/GitHub/FreeCAD/src/CXX
  Version:  6.2.8
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
=====================================================
Doxygen not found, will not build documentation.     
=====================================================

CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Boost (missing: filesystem program_options regex system
  thread) (found suitable version "1.67.0", minimum required is "1.48")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.16/Modules/FindBoost.cmake:2162 (find_package_handle_standard_args)
  cMake/FreeCAD_Helpers/SetupBoost.cmake:7 (find_package)
  CMakeLists.txt:48 (SetupBoost)


Configuring incomplete, errors occurred!
See also "C:/Users/T5810/Documents/GitHub-builds/FreeCAD/CMakeFiles/CMakeOutput.log".
See also "C:/Users/T5810/Documents/GitHub-builds/FreeCAD/CMakeFiles/CMakeError.log".
Is boost provided with libpack? I am not very familiar with CMake and would appreciate if anyone could guide on how to specify the Boost environment variables manually.
I enabled the Advanced option in CMake to make the the Boost related variables visible, but am having trouble finding the right paths for each of them.
User avatar
sgrogan
Posts: 6087
Joined: Wed Oct 22, 2014 5:02 pm

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by sgrogan » Thu Sep 10, 2020 10:11 pm

umill wrote:
Thu Sep 10, 2020 9:33 pm
Is boost provided with libpack?
Yes, mine looks like this
Capture.PNG
Capture.PNG (63.2 KiB) Viewed 174 times
"fight the good fight"
umill
Posts: 12
Joined: Tue Feb 11, 2020 4:32 pm

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by umill » Thu Sep 10, 2020 10:45 pm

Thank you sgrogan.

So I set the appropriate boost variables manually, and when I hit configure now I am getting an error about VTK from SetupSalomeSMESH.
It seems that cmake is finding the appropriate directories but something is going wrong with the version being passed.

Setting VTK_DIR manually to FreeCADLibs_12.1.4_x64_VC15/lib/cmake/vtk-8.2 did not help with this issue.
Any suggestions for this would be appreciated.

Code: Select all

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.14393.
Compiler: MSVC, version: 19.16.27043.0
prefix: C:/Program Files (x86)/FreeCAD
bindir: bin
datadir: data
docdir: doc
includedir: include
libdir: lib
cmake: 3.16.0-rc2
PyCXX found:
  Headers:  C:/Users/T5810/Documents/GitHub/FreeCAD/src
  Sources:  C:/Users/T5810/Documents/GitHub/FreeCAD/src/CXX
  Version:  6.2.8
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
=====================================================
Doxygen not found, will not build documentation.     
=====================================================

Found Xerces-C: debug;C:/Users/T5810/Documents/GitHub-builds/FreeCAD/FreeCADLibs_12.1.4_x64_VC15/lib/xerces-c_3D.lib;optimized;C:/Users/T5810/Documents/GitHub-builds/FreeCAD/FreeCADLibs_12.1.4_x64_VC15/lib/xerces-c_3.lib
PyCXX found:
  Headers:  C:/Users/T5810/Documents/GitHub/FreeCAD/src
  Sources:  C:/Users/T5810/Documents/GitHub/FreeCAD/src/CXX
  Version:  6.2.8
-- Found OCE/OpenCASCADE version: 7.3.0
-- OCE/OpenCASCADE include directory: C:/Users/T5810/Documents/GitHub-builds/FreeCAD/FreeCADLibs_12.1.4_x64_VC15/inc
-- OCE/OpenCASCADE shared libraries directory: C:/Users/T5810/Documents/GitHub-builds/FreeCAD/FreeCADLibs_12.1.4_x64_VC15/lib
CMake Error at cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:29 (find_package):
  Could not find a configuration file for package "VTK" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    C:/Users/T5810/Documents/GitHub-builds/FreeCAD/FreeCADLibs_12.1.4_x64_VC15/lib/cmake/vtk-8.2/VTKConfig.cmake, version: 8.2.0 (64bit)

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


Configuring incomplete, errors occurred!
See also "C:/Users/T5810/Documents/GitHub-builds/FreeCAD/CMakeFiles/CMakeOutput.log".
See also "C:/Users/T5810/Documents/GitHub-builds/FreeCAD/CMakeFiles/CMakeError.log".
vocx
Posts: 5206
Joined: Thu Oct 18, 2018 9:18 pm

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by vocx » Thu Sep 10, 2020 11:45 pm

umill wrote:
Thu Sep 10, 2020 9:33 pm
Is boost provided with libpack? I am not very familiar with CMake ...
Did you follow Compile on Windows correctly?

In various threads in the forum the problem seems to be that users don't follow these instructions exactly.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
umill
Posts: 12
Joined: Tue Feb 11, 2020 4:32 pm

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by umill » Sat Sep 12, 2020 1:19 am

Changing the generator from Visual Studio 15 2017 to Visual Studio 15 2017 Win64 seems to have resolved the problem.

After File > Delete cache in CMake
When I ran Configure I was presented with the dialog where I could make the switch.
Also I ran into the Python version error from which the Compile on Windows document has the workaround.
User avatar
uwestoehr
Posts: 1777
Joined: Sun Jan 27, 2019 3:21 am

Re: CMake: "Could NOT find Boost (missing: filesystem, ...)"

Post by uwestoehr » Sat Sep 12, 2020 9:08 am

umill wrote:
Sat Sep 12, 2020 1:19 am
Changing the generator from Visual Studio 15 2017 to Visual Studio 15 2017 Win64 seems to have resolved the problem.
Also I ran into the Python version error from which the Compile on Windows document has the workaround.
Good to hear that the Wiki page helped you. I try to keep it up to date and describe every possible issue. Thus if you have problems compiling, please report at what step from the Wiki page you are stuck.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests