Embedding Python Interpreter
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
|
Help
]
Start:
[[Tutorial]]
Up:[[Tutorial]] Next: [[The first applicati...
#contents
*Background [#wa9ce970]
Sigverse has been created for Human robot interaction. De...
Thus, I want to embed python to solve all sorts of proble...
There are two basic models for combining C++ and Python:
-extending, in which the end-user launches the Python int...
-embedding, in which the end-user launches a program writ...
This work focuses on embedding, thus our program ( called...
Here were my initial requirements:
* instantiate Python objects and interact with them in...
* pass data into Python functions
* extract data from Python functions and objects
* handle errors from with the Python code
At it’s core, embedding Python is very simple, and requir...
-The Python/C API.
-Boost::python: It provides class wrappers and polymorphi...
* Using Boost.Python [#o63dca14]
This section explains how to install Boost.Python [#re251...
※ This sample is tested using Ubuntu 12.04 installed usin...
** Install Boost.Python [#q579c66f]
The most reliable way to get a copy of Boost is to downlo...
SourceForge from the link given on this page http://www.b...
Please visit Section '3.1 Basic Procedure on this page' a...
The following are the steps for installation:
1. Download boost_1_54_0.tar.bz2. [latest on 28.08.2013]
2. In the directory where you want to put the Boost insta...
$tar --bzip2 -xf /path/to/boost_1_54_0.tar.bz2
3. Then, do this from the boost download directory:
$ ./bootstrap.sh --prefix=$HOME/pool --libdir=$HO...
$ ./bjam variant=release link=shared install
On recent versions, the second line should read
$./b2
$./b2 install
A few notes:
- You may omit --with-libraries=... if you want to build ...
-You may adapt the file and directory names to suit your ...
Also, do the following to install the Boost libraries fro...
$ sudo apt-get install libboost-all-dev
$ sudo apt-get upgrade
#highlight(end)
Up:[[Tutorial]] Next: [[The first applicati...
#counter
End:
[[Tutorial]]
Up:[[Tutorial]] Next: [[The first applicati...
#contents
*Background [#wa9ce970]
Sigverse has been created for Human robot interaction. De...
Thus, I want to embed python to solve all sorts of proble...
There are two basic models for combining C++ and Python:
-extending, in which the end-user launches the Python int...
-embedding, in which the end-user launches a program writ...
This work focuses on embedding, thus our program ( called...
Here were my initial requirements:
* instantiate Python objects and interact with them in...
* pass data into Python functions
* extract data from Python functions and objects
* handle errors from with the Python code
At it’s core, embedding Python is very simple, and requir...
-The Python/C API.
-Boost::python: It provides class wrappers and polymorphi...
* Using Boost.Python [#o63dca14]
This section explains how to install Boost.Python [#re251...
※ This sample is tested using Ubuntu 12.04 installed usin...
** Install Boost.Python [#q579c66f]
The most reliable way to get a copy of Boost is to downlo...
SourceForge from the link given on this page http://www.b...
Please visit Section '3.1 Basic Procedure on this page' a...
The following are the steps for installation:
1. Download boost_1_54_0.tar.bz2. [latest on 28.08.2013]
2. In the directory where you want to put the Boost insta...
$tar --bzip2 -xf /path/to/boost_1_54_0.tar.bz2
3. Then, do this from the boost download directory:
$ ./bootstrap.sh --prefix=$HOME/pool --libdir=$HO...
$ ./bjam variant=release link=shared install
On recent versions, the second line should read
$./b2
$./b2 install
A few notes:
- You may omit --with-libraries=... if you want to build ...
-You may adapt the file and directory names to suit your ...
Also, do the following to install the Boost libraries fro...
$ sudo apt-get install libboost-all-dev
$ sudo apt-get upgrade
#highlight(end)
Up:[[Tutorial]] Next: [[The first applicati...
#counter
Page: