Skip to content

Attempting to fix build error due to hardcoded boost version#471

Open
lassoan wants to merge 6 commits into
vmtk:masterfrom
lassoan:fix-appveyor-build
Open

Attempting to fix build error due to hardcoded boost version#471
lassoan wants to merge 6 commits into
vmtk:masterfrom
lassoan:fix-appveyor-build

Conversation

@lassoan

@lassoan lassoan commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

AppVeyor reported this build error:

CMake Error at /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost: Found unsuitable version "1.74.0", but required is
  exact version "1.78.0" (found
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/include, )
Call Stack (most recent call first):
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindBoost.cmake:2393 (find_package_handle_standard_args)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:350 (find_package)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/cmake/vtk-9.1/vtk-config.cmake:150 (include)
  CMakeLists.txt:78 (find_package)
-- Configuring incomplete, errors occurred!
-- Cache values

This commit removes the specific boost version, to see if it can resolve the build error.

@lassoan lassoan self-assigned this Aug 6, 2024
@lassoan lassoan force-pushed the fix-appveyor-build branch from 79dadea to 494bb89 Compare August 6, 2024 20:21
AppVeyor reported this build error:

```
CMake Error at /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost: Found unsuitable version "1.74.0", but required is
  exact version "1.78.0" (found
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/include, )
Call Stack (most recent call first):
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_build_env/share/cmake-3.29/Modules/FindBoost.cmake:2393 (find_package_handle_standard_args)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/cmake/vtk-9.1/VTK-vtk-module-find-packages.cmake:350 (find_package)
  /home/appveyor/miniconda/conda-bld/vmtk_1719629534026/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/cmake/vtk-9.1/vtk-config.cmake:150 (include)
  CMakeLists.txt:78 (find_package)
-- Configuring incomplete, errors occurred!
-- Cache values
```

Boost 1.78 is needed.
@lassoan lassoan force-pushed the fix-appveyor-build branch from 494bb89 to 4a06b24 Compare August 6, 2024 21:58
@lassoan

lassoan commented Aug 8, 2024

Copy link
Copy Markdown
Contributor Author

Setting the requested boost version fixed the boost issue, but then CMake complained that it could not find PythonLibs:

CMake Error at build/CMake/vtkWrapPython.cmake:187 (find_package):
  By not providing "FindPythonLibs.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "PythonLibs", but CMake did not find one.
  Could not find a package configuration file provided by "PythonLibs" with
  any of the following names:
    PythonLibsConfig.cmake
    pythonlibs-config.cmake
  Add the installation prefix of "PythonLibs" to CMAKE_PREFIX_PATH or set
  "PythonLibs_DIR" to a directory containing one of the above files.  If
  "PythonLibs" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  build/CMake/vtkMacroKitPythonWrap.cmake:165 (include)
  CMake/vmtkFunctions.cmake:103 (vtkMacroKitPythonWrap)
  vtkVmtk/Utilities/vtkvmtkITK/CMakeLists.txt:40 (vmtk_build_library)
-- Configuring incomplete, errors occurred!

I've tried to set some CMake variables but find_package(PythonLibs ${_QUIET_LIBRARY}) still fails. @ramtingh can you have a look? This used to work, probably it broke due to some updates in dependencies.

@ramtingh

ramtingh commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

Sure
I imagine its mostly a configuration problem with appveyor and the recipe since it otherwise works fine for the conda-forge builds, unfortunately conda is rather finicky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants