Confusion over boost::python installation and example/tutorial instructions
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Área
- build-system, documentation
Línea de trabajo
Comienza con las páginas Unix installation y Hello tutorial enlazadas en el issue; después inspecciona el comando de ejemplo en libs/python/example/tutorial y los archivos instalados bajo ~/boost_libs/lib y /usr/local/lib. Compara la biblioteca solicitada por el ejemplo con los nombres de biblioteca de Boost.Python 3.9 que se muestran; se considera terminado cuando el ejemplo del tutorial se compila correctamente en la configuración de Raspbian indicada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C++
- Estrellas
- 540
- Forks
- 224
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de boostorg/python
-
numpy::from_data calls vector::front and crashes (or has UB) when called with a scalar objectAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
-
Windows CI does not fail if one or more tests failPosiblemente ocupada @stephengtuggy la tomó hace 148 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmakeAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
-
Windows CI: vcpkg dependency caching not workingPosiblemente ocupada @stephengtuggy la tomó hace 148 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Todos los issues de boostorg/python
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
bot-triaged module: correctness (silent) module: fft triage review
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
patrickjquinn/Marathon-Shell#84 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
sav-oss-org/ptusa_main#1610 ·
Los mantenedores suelen responder en 1 día