User Tools

Site Tools


python:wrapper

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python:wrapper [2022/06/25 15:44] – [Passerelle C++/Python] francoispython:wrapper [2022/06/28 08:38] (current) luke
Line 23: Line 23:
  
 <WRAP center round download 60%> <WRAP center round download 60%>
-Ensemble des sources {{ :python:boostpythontest.tar |boostpythontest.tar}} (5 fichiers)+Ensemble des sources {{ :python:boostpythontest.tgz |boostpythontest.tgz}} (5 fichiers)
 </WRAP> </WRAP>
  
Line 202: Line 202:
 set (CXX_STANDARD_REQUIRED ON) set (CXX_STANDARD_REQUIRED ON)
 </code> </code>
 +
 +<WRAP center round important 60%>
 Il est important de produire une bibliothèque dynamique (''SHARED'') pour qu'elle soit chargée à la volée dans l'environnement Python. Il est important de produire une bibliothèque dynamique (''SHARED'') pour qu'elle soit chargée à la volée dans l'environnement Python.
 +</WRAP>
 <code cmake> <code cmake>
 set (BUILD_SHARED_LIBS ON) set (BUILD_SHARED_LIBS ON)
Line 241: Line 244:
   ${Boost_LIBRARIES}   ${Boost_LIBRARIES}
   )   )
 +</code>
 +
 +Installation du package ''libboost-python-dev''.
 +<code bash>
 +sudo apt-get install -y libboost-python-dev
 </code> </code>
  
python/wrapper.1656171883.txt.gz · Last modified: 2022/06/25 15:44 by francois