c_cpp:boost:boost_python

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
c_cpp:boost:boost_python [2020/09/10 13:58] – [参考文献] ともやんc_cpp:boost:boost_python [2021/07/05 01:59] (現在) ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre, #mincode pre { 
-      overflow: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre, #mincode_long pre  { 
-      height: 250px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #mintbl table { 
-      font-size: 12px; 
-    } 
-    .dokuwiki .plugin_wrap table { 
-      width: auto; 
-    } 
-    #logo { 
-      background-color: white; 
-      padding: 10px; 
-      width: fit-content; 
-    } 
-    #logo p { 
-      margin: 0; 
-    } 
-  </style> 
-</html> 
 ====== Boost.Python - Boost Python Library ====== ====== Boost.Python - Boost Python Library ======
 本家: [[https://www.boost.org/doc/libs/release/libs/python/|Boost.Python - Boost Library Documentation]]\\ 本家: [[https://www.boost.org/doc/libs/release/libs/python/|Boost.Python - Boost Library Documentation]]\\
行 44: 行 16:
 {{c_cpp:visualstudio2019_boost.python_001.png?600|Visual Studio 2019 Boost.Python 001}}\\ {{c_cpp:visualstudio2019_boost.python_001.png?600|Visual Studio 2019 Boost.Python 001}}\\
  
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 言語: Python 言語: Python
行 55: 行 27:
  
 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\ 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 プロジェクト名: PyHelloBoostPython プロジェクト名: PyHelloBoostPython
行 97: 行 69:
  
 **PyHelloBoostPython** プロジェクトの **PyHelloBoostPython.py** ファイルに以下のコードを貼り付ける。\\ **PyHelloBoostPython** プロジェクトの **PyHelloBoostPython.py** ファイルに以下のコードを貼り付ける。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code python PyHelloBoostPython.py> <code python PyHelloBoostPython.py>
 #!/usr/bin/env python #!/usr/bin/env python
行 158: 行 130:
 {{c_cpp:visualstudio2019_boost.python_005.png?600|Visual Studio 2019 Boost.Python 005}}\\ {{c_cpp:visualstudio2019_boost.python_005.png?600|Visual Studio 2019 Boost.Python 005}}\\
  
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 言語: C++ 言語: C++
行 169: 行 141:
  
 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\ 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 プロジェクト名: superfastcode_cpython プロジェクト名: superfastcode_cpython
行 179: 行 151:
 **superfastcode_cpython** プロジェクトを右クリックして、**[追加] - [新しい項目...]** をクリックする。\\ **superfastcode_cpython** プロジェクトを右クリックして、**[追加] - [新しい項目...]** をクリックする。\\
 以下の内容で新しい項目を追加する。\\ 以下の内容で新しい項目を追加する。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 種類: C++ ファイル (.cpp) 種類: C++ ファイル (.cpp)
行 195: 行 167:
 これにより、**Debug、Release、Win32、x64** のすべての組み合わせについての設定を変更する。\\ これにより、**Debug、Release、Win32、x64** のすべての組み合わせについての設定を変更する。\\
 **CPython プロジェクト** (Python 用 C++ 拡張機能) のビルドに必要な設定の概要は以下の通りである。\\ **CPython プロジェクト** (Python 用 C++ 拡張機能) のビルドに必要な設定の概要は以下の通りである。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 [構成プロパティ] - [全般] - [構成の種類]: ダイナミック ライブラリ (.dll) [構成プロパティ] - [全般] - [構成の種類]: ダイナミック ライブラリ (.dll)
行 228: 行 200:
  
 **superfastcode_cpython** プロジェクトの **cpython_module.cpp** ファイルに以下の内容を貼り付ける。\\ **superfastcode_cpython** プロジェクトの **cpython_module.cpp** ファイルに以下の内容を貼り付ける。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code cpp cpython_module.cpp> <code cpp cpython_module.cpp>
 #include <Windows.h> #include <Windows.h>
行 281: 行 253:
 {{c_cpp:visualstudio2019_boost.python_005.png?600|Visual Studio 2019 Boost.Python 005}}\\ {{c_cpp:visualstudio2019_boost.python_005.png?600|Visual Studio 2019 Boost.Python 005}}\\
  
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 言語: C++ 言語: C++
行 292: 行 264:
  
 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\ 以下の内容で新しいプロジェクトを構成して **[作成]** をクリックする。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 プロジェクト名: superfastcode_boost プロジェクト名: superfastcode_boost
行 302: 行 274:
 **superfastcode_boost** プロジェクトを右クリックして、**[追加] - [新しい項目...]** をクリックする。\\ **superfastcode_boost** プロジェクトを右クリックして、**[追加] - [新しい項目...]** をクリックする。\\
 以下の内容で新しい項目を追加する。\\ 以下の内容で新しい項目を追加する。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 種類: C++ ファイル (.cpp) 種類: C++ ファイル (.cpp)
行 315: 行 287:
 これにより、**Debug、Release、Win32、x64** のすべての組み合わせについての設定を変更する。\\ これにより、**Debug、Release、Win32、x64** のすべての組み合わせについての設定を変更する。\\
 **Boost.Python プロジェクト** (Python 用 C++ 拡張機能) のビルドに必要な設定の概要は以下の通りである。\\ **Boost.Python プロジェクト** (Python 用 C++ 拡張機能) のビルドに必要な設定の概要は以下の通りである。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code> <code>
 [構成プロパティ] - [全般] - [構成の種類]: ダイナミック ライブラリ (.dll) [構成プロパティ] - [全般] - [構成の種類]: ダイナミック ライブラリ (.dll)
行 348: 行 320:
  
 **superfastcode_boost** プロジェクトの **boost_module.cpp** ファイルに以下の内容を貼り付ける。\\ **superfastcode_boost** プロジェクトの **boost_module.cpp** ファイルに以下の内容を貼り付ける。\\
-<WRAP prewrap 100% #mincode>+<WRAP prewrap 100% mincode>
 <code cpp boost_module.cpp> <code cpp boost_module.cpp>
 #include <Windows.h> #include <Windows.h>
行 381: 行 353:
  
 **アクティブ ソリューション構成: Debug** に変更して、以下のプロジェクトが **Release ビルド**、**x64 プラットフォーム** でビルドされるように設定する。(標準では Python の **python38.lib (Release 版)** のみのため)\\ **アクティブ ソリューション構成: Debug** に変更して、以下のプロジェクトが **Release ビルド**、**x64 プラットフォーム** でビルドされるように設定する。(標準では Python の **python38.lib (Release 版)** のみのため)\\
-<WRAP prewrap 100% #mintbl>+<WRAP prewrap 100% mintbl>
 ^  プロジェクト  ^  構成  ^  プラットフォーム  ^  ビルド  ^ ^  プロジェクト  ^  構成  ^  プラットフォーム  ^  ビルド  ^
 |superfastcode_boost  |Release  |x64  |  [v]  | |superfastcode_boost  |Release  |x64  |  [v]  |
行 390: 行 362:
  
 **アクティブ ソリューション構成: Release** に変更して、以下のプロジェクトが **Release ビルド**、**x64 プラットフォーム** でビルドされるように設定する。(標準では Python の **python38.lib (Release 版)** のみのため)\\ **アクティブ ソリューション構成: Release** に変更して、以下のプロジェクトが **Release ビルド**、**x64 プラットフォーム** でビルドされるように設定する。(標準では Python の **python38.lib (Release 版)** のみのため)\\
-<WRAP prewrap 100% #mintbl>+<WRAP prewrap 100% mintbl>
 ^  プロジェクト  ^  構成  ^  プラットフォーム  ^  ビルド  ^ ^  プロジェクト  ^  構成  ^  プラットフォーム  ^  ビルド  ^
 |superfastcode_boost  |Release  |x64  |  [v]  | |superfastcode_boost  |Release  |x64  |  [v]  |
行 433: 行 405:
  
 [[http://alpha.osdn.jp/devel/boost.python_ja.pdf|Boost.Python - Alpha]]\\ [[http://alpha.osdn.jp/devel/boost.python_ja.pdf|Boost.Python - Alpha]]\\
 +[[https://qiita.com/maiueo/items/b2093ba78cde988bb111|ctypesの変数についてのメモ - Qiita]]\\
 +[[https://docs.python.org/ja/3/library/ctypes.html|ctypes --- Pythonのための外部関数ライブラリ — Python 3.8.6rc1 ドキュメント]]\\
 +[[https://stackoverflow.com/questions/16105539/boost-python-custom-converter|c++ - Boost.Python custom converter - Stack Overflow]]\\
  
  • c_cpp/boost/boost_python.1599713914.txt.gz
  • 最終更新: 2020/09/10 13:58
  • by ともやん