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++
- 星號
- 537
- 分支
- 223
- 平均合併
- 19 小時 33 分鐘
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
boostorg/python 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 64/100
-
難度 4/5 3-5 天 新手友好度 25/100
-
難度 3/5 1-2 天 新手友好度 62/100
相似的 Issue
-
upstream update
難度 2/5 1-3 小時 新手友好度 75/100
conan-io/conan-center-index#31098 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 2 天內回覆
-
bug chart-audit
難度 1/5 1 小時以內 新手友好度 92/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
godotengine/godot#124120 ·
維護者通常 1 天內回覆