BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Ambito
- build-system
Direzione di ricerca
Esegui l’esempio CMakeLists.txt allegato con le versioni di Boost e Python indicate, quindi esamina boost_python-config.cmake e BoostConfig.cmake in corrispondenza della chiamata include() che fallisce. Confronta i percorsi di configurazione generati con le posizioni di BoostDetectToolset-1.90.0.cmake riportate nella issue; il lavoro è completato quando find_package(Boost REQUIRED COMPONENTS python) viene completato correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C++
- Stelle
- 537
- Fork
- 223
- Merge medio
- 11h 22m
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di boostorg/python
-
numpy::from_data calls vector::front and crashes (or has UB) when called with a scalar object Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
Tutte le issue di boostorg/python
Issue simili
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
QuantStack/git2cpp#187 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/winget-cli#6547 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AXERA-TECH/ax-llm#77 ·