LoginSignup
5
4

More than 5 years have passed since last update.

openFrameworksをPythonから動かす

Last updated at Posted at 2016-03-22

まだ動かせてないです!!参考までに.

Ubuntu14.04を利用

openFrameworksとは

クリエイティブコーディング向き
processing的なことをC++で出来るようにするライブラリ

openFrameworksのセットアップ

ダウンロード

Ubuntu版を想定
安定版でofxPythonと整合性の取れる0.9.0をダウンロード
http://openframeworks.cc/ja/download/older/

コンパイル

cd OF/scripts/linux/ubuntu
sudo ./install_dependencies.sh
sudo ./install_codecs.sh
cd OF/scripts/linux
./compileOF.sh -j3

exampleの実行

cd OF/examples/graphics/polygonExample
make
make Run

ofxPythonのセットアップ

ダウンロード

cd OF/addons
git clone https://github.com/chaosct/ofxPython --recursive

コンパイル

swigは3.0を落としてソースからインストールすると動いた。
apt-getで入る2.~ではエラーが出て失敗する。
generatebindings.sh内のファイルパス"~CallBack""~Callback"に修正する(Ubuntuでの動作テスがはされていない?)

cd OF/addons/ofxPython
./generatebindings.sh

exampleの実行

cd OF/addons/

動かない。
どうやら上のステップをこなした後にC++をコンパイルして実行ファイルを生成しなければならないようだが、サンプルはVSのものしか無い。
このバインドはpythonインタプリタを直接呼び出すのではなく、pythonで書いたコードをC++から読み込んでコンパイルするものかもしれない。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4