Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?
@narikei

Raspberry PiでopenFrameworksを動かす方法

More than 1 year has passed since last update.

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

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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
narikei
なんでも屋さん

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
5
Help us understand the problem. What is going on with this article?