LoginSignup
0
1

More than 3 years have passed since last update.

openFrameworks(0.10.1)をgithubからインストール

Posted at

はじめに

openFrameworksgithubから取ってきてからexampleにあるプロジェクトを実行するまでにしたこと
インストールの手順はレポジトリに書いてあることを0.10.1用に変えてMacとWindowsにインストールするだけ

実行環境

Mac: Xcode 10.2.1
Widnows: Visual Studio 2017

共通部分1

まずopenFrameworksをgithubからclone
MacはTerminal, windowsはGit Bashで実行

git clone https://github.com/openframeworks/openFrameworks.git
git checkout refs/tags/0.10.1
git submodule update --init --recursive

http://ci.openframeworks.cc/libs から任意のバージョン(今回は0.10.1)のMacならosx, Windowsならvs2017をダウンロードしてscripts/osx(vs)に置く

Mac編

libのダウンロードのところだけコメントアウトして実行

scripts/dev/download_libs.sh
<< COMMENTOUT
for PKG in $PKGS; do
    download $PKG
done
COMMENTOUT
cd scripts/osx
bash download_libs.sh

Windows編

powershellの初期状態ではpowershellスクリプトを実行出来ないのでポリシー変更

# powershell(管理者権限で実行)
Set-ExecutionPolicy RemoteSigned

libのダウンロードのところだけコメントアウトして実行

scripts/vs/download_libs.ps1
<#
If(Test-Path "$pkg") {
    echo "Deleting old package"
    Remove-Item $pkg
}

echo "Downloading $url to $scriptPath\$pkg"
$client.DownloadFile($url, "$scriptPath\$pkg")
#>
cd scripts/vs
powershell download_libs.ps1

共通部分2

openFrameworksのdownloadからprojectGeneratorを持ってきて実行(projectGeneratorのビルドが上手く行かなかったので)
projectGenerator.app(.exe)を実行し,以下の手順を実行

1. openFrameworks pathを設定
2. Advanced optionsをチェックするとupdate multiple
3. Update path:examplesを指定し,update multipleボタンを押すと生成
4. .xcodeproj(.sln)からプロジェクトを開き,実行
0
1
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
0
1