Kennedy Caisley
09/16/2022, 2:50 PMbag3 develop branch on two separate machines, one with CentOS 7.9 and the other with Ubuntu 20.04. On each, I built a fresh python venv, and tried compiling the bag and pybag modules. In each case, the bag modules built properly, but the sub-module pybag is problematic. I've tried to read the CMakeLists.txt and follow the error build.log, to find clues about what packages might be missing or variables not configured, but no luck so far. My machines have the following:
CentOS 7.9
• Python 3.9.14 (built from source)
• CMake 3.17.5
• fmt 8.22
• Boost 1.53.0
• gcc 7.3.1
Ubuntu 20.04
• Python 3.8.10
• CMake 3.16.3
• fmt 8.30
• Boost 1.71.0
• gcc 9.4.0
Running python -m pip install . , I'm seeing build logs that contain the error below.
in ./build.log
....
CMake Error at cbag/CMakeLists.txt:94 (find_package):
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
....
I think I need to point CMake toward my fmt and spdlog installs.