BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 领域
- build-system
调研方向
使用所述的 Boost 和 Python 版本运行随附的 CMakeLists.txt 示例,然后检查失败的 include() 调用附近的 boost_python-config.cmake 和 BoostConfig.cmake。将生成的配置路径与 issue 中报告的 BoostDetectToolset-1.90.0.cmake 位置进行比较;当 find_package(Boost REQUIRED COMPONENTS python) 成功完成时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I first installed Python 3.14, Boost 1.90.0 and Boost.Python with Brew on my macOS Sonoma 14.4 and built a minimum working example with CMake, but it didn't work.
When I used
find_package(Boost REQUIRED COMPONENTS python)
to find Boost and ran with command
cmake .. -DCMAKE_PREFIX_PATH='/usr/local/opt/boost' -DBoost_DEBUG=1
the following error occured:
CMake Error at /usr/local/lib/cmake/boost_python-1.90.0/boost_python-config.cmake:29 (include):
include could not find requested file:
/usr/local/lib/cmake/boost_python-1.90.0/../BoostDetectToolset-1.90.0.cmake
Call Stack (most recent call first):
/usr/local/opt/boost/lib/cmake/Boost-1.90.0/BoostConfig.cmake:141 (find_package)
/usr/local/opt/boost/lib/cmake/Boost-1.90.0/BoostConfig.cmake:262 (boost_find_component)
CMakeLists.txt:10 (find_package)
After checking the file system, no file named BoostDetectToolset-1.90.0.cmake was found in either /usr/local/lib/cmake/boost_python-1.90.0/.., /usr/local/opt/boost-python3/lib/cmake, or /usr/local/Cellar/boost-python3/1.90.0/lib/cmake. The only BoostDetectToolset-1.90.0.cmake file was in /usr/local/Cellar/boost/1.90.0_1/lib/cmake.
Because there is a
include(${CMAKE_CURRENT_LIST_DIR}/../BoostDetectToolset-1.90.0.cmake)
in the file /usr/local/lib/cmake/boost_python-1.90.0/boost_python-config.cmake which was auto-generated by Boost, and CMAKE_CURRENT_LIST_DIR here refers to /usr/local/lib/cmake/boost_python-config.cmake, I suppose there must be something wrong with the generator of the file.
The following are my minimum working example:
CMakeLists.txt
module.cpp
Do you have any suggestions? Thanks in advance.
- 主要语言
- C++
- 星标
- 540
- 派生
- 224
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/python 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 84/100
-
Windows CI does not fail if one or more tests fail可能已有人在做 @stephengtuggy 于 148 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 64/100
-
Windows CI: vcpkg dependency caching not working可能已有人在做 @stephengtuggy 于 148 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 62/100
相似的 Issue
-
bot-triaged module: correctness (silent) module: fft triage review
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
patrickjquinn/Marathon-Shell#84 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
sav-oss-org/ptusa_main#1610 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
open-astro/AlpacaBridge#2606 · 1 条评论 ·
维护者通常 1 天内回复
-
Refactor force_torque_system integration test to use EcmScope可能已有人在做 @patelshivani2283-lab 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复