Confusion over boost::python installation and example/tutorial instructions
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- build-system, documentation
Piste de recherche
Commencez par les pages Unix installation et Hello tutorial liées dans l’issue, puis examinez la commande d’exemple dans libs/python/example/tutorial ainsi que les fichiers installés sous ~/boost_libs/lib et /usr/local/lib. Comparez la bibliothèque demandée par l’exemple avec les noms de bibliothèques Boost.Python 3.9 affichés ; le travail est considéré comme terminé lorsque l’exemple du tutoriel se compile correctement sur la configuration Raspbian signalée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hello,
I'm attempting to install boost::python on a Raspbian bullseye (32 bit) system. First, I followed the instructions at https://www.boost.org/doc/libs/1_81_0/more/getting_started/unix-variants.html to build bjam (b2) and install the boost::python libraries and headers...
jay@raspberrypi:~/boost_1_81_0 $ ./bootstrap.sh --with-libraries=python --prefix=/home/jay/boost_libs
...
jay@raspberrypi:~/boost_1_81_0 $ ./b2 install
It completed without error.
Then, I followed the instructions at https://www.boost.org/doc/libs/1_81_0/libs/python/doc/html/tutorial/tutorial/hello.html to build the example...
jay@raspberrypi:~/boost_1_81_0/libs/python/example/tutorial $ ~/boost_1_81_0/b2
...found 11 targets...
...updating 3 targets...
gcc.link.dll hello_ext.so
/usr/bin/ld: cannot find -lboost_python
collect2: error: ld returned 1 exit status
"g++" -o "hello_ext.so" -Wl,-h -Wl,hello_ext.so -shared -Wl,--start-group "hello.o" -Wl,-Bstatic -Wl,-Bdynamic -lboost_python -ldl -lpthread -lutil -Wl,--end-group -fPIC -g
...failed gcc.link.dll hello_ext.so...
...skipped <p.>hello for lack of <p.>hello_ext.so...
...failed updating 1 target...
...skipped 2 targets...
It seems that b2 isn't correctly locating the boost_python library. I've also tried installing the boost libraries and headers to the system (/usr/local/) and it made no difference.
I can see the libraries in the filesystem:
jay@raspberrypi:~ $ ls ~/boost_libs/lib/
cmake libboost_numpy39.a libboost_numpy39.so libboost_numpy39.so.1.81.0 libboost_python39.a libboost_python39.so libboost_python39.so.1.81.0
jay@raspberrypi:~ $ ls /usr/local/lib/
cmake libboost_numpy39.a libboost_numpy39.so libboost_numpy39.so.1.81.0 libboost_python39.a libboost_python39.so libboost_python39.so.1.81.0 python3.9
Please can you help me determine what's missing?
-Thanks,
-Jay
- Langage dominant
- C++
- Étoiles
- 537
- Forks
- 223
- Merge moyen
- 11 h 22 min
- PR mergées (30 j)
- 2
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de boostorg/python
-
numpy::from_data calls vector::front and crashes (or has UB) when called with a scalar object Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
-
BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Toutes les issues de boostorg/python
Issues similaires
-
enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
QuantStack/git2cpp#187 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
microsoft/winget-cli#6547 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
AXERA-TECH/ax-llm#77 ·