5
5

More than 5 years have passed since last update.

Raspberry PiでopenFrameworksを動かす方法

Posted at

インターネット上に転がっている記事は少し古いのか
そのままでは動作しなかったため、動くまでの方法をまとめ

Raspbian を SDカード に書き込んで起動

今回は、Raspbian Stretch Lite(2018-11-13)を使いました。
Raspberry Piは2を使用しています。

とりあえず apt-get をアップデート

$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo dpkg --configure -a

git をインストール

$ sudo apt-get install git -y

openFrameworks(0.10.1)をgitでダウンロード

$ cd ~/
$ git clone --depth=1 https://github.com/openFrameworks/openFrameworks.git

openFrameworksをインストール

$ cd ~/openFrameworks/scripts/linux/debian
$ sudo ./install_dependencies.sh
$ yes | sudo ./install_dependencies.sh
$ yes | sudo ./install_codecs.sh

$ cd ~/openFrameworks/scripts/linux/
$ yes | sudo ./download_libs.sh

$ make Release -C ~/openFrameworks/libs/openFrameworksCompiled/project

ここまで来たら準備完了
shell scriptの実行でいろいろ聞かれるためyesをパイプで渡します。
make Releaseで30分くらいかかりました・・・

サンプルを動かしてみる

$ cd ~/openFrameworks/examples/graphics/polygonExample/
$ cp ~/openFrameworks/scripts/templates/linuxarmv6l/Makefile ./
$ make
$ make run

makeも時間かかる・・・

5
5
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
5