30
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ofxちょっとめんどくさいAddons

Last updated at Posted at 2016-02-16

先人達のおかげで手軽にインストールできるのが魅力な openFrameworks の Addons ですが、OFXcodeMenu や Project Generator だけでインストールが完了しないちょっとめんどくさい Addons の設定方法をまとめていこうと思います。

ofxOSC

openFrameworks に同梱されてくる Addon。
Build Settings > Header Search Path に以下を追加。

../../../addons/ofxOsc/libs
../../../addons/ofxOsc/libs/oscpack
../../../addons/ofxOsc/libs/oscpack/src
../../../addons/ofxOsc/libs/oscpack/src/ip
../../../addons/ofxOsc/libs/oscpack/src/ip/posix
../../../addons/ofxOsc/libs/oscpack/src/ip/win32
../../../addons/ofxOsc/libs/oscpack/src/osc
../../../addons/ofxOsc/src

ofxSyphon

astellato/ofxSyphon: An OF add-on for using the Syphon framework.
Build Settings > Framework Search Path に以下を追加。

../../../addons/ofxSyphon/libs/Syphon/lib/osx

ofxSyphonの導入で | tatami-code
blog.rettuce.com » ofxSyphon追加時に.frameworkをコピーしてつかう。

【追記】
Project Generator で ofxSyphon 入れたらこれやらずともできた(oF9.0 / Xcode 7.01 / OS10.10.5)。

ofxEdsdk

kylemcdonald/ofxEdsdk: Interfacing with Canon cameras from openFrameworks for OSX. An alternative to ofxCanon and CanonCameraWrapper.
Build Settings > Framework Search Path に以下を追加。

../../../addons/ofxEdsdk/src/EDSDK/Framework

ofxMultiKinectV2

hanasaan/ofxMultiKinectV2: Connecting multiple Kinect For Windows V2 sensors to one Mac
1.png

付属のサンプルを myApps にコピーした状態。libturbojpeg.dylibusb-1.0.0-superspeed.a のリンクが外れてしまっている(グレーになっている)。

2.png

github の README にあるように、usb-1.0.0-superspeed.aofxMultiKinectV2/libs/libusb/lib/osx から、
libturbojpeg.dylibofxTurboJpeg/libs/turbo-jpeg/lib/osx からそれぞれ Finder から Build Phases > Linked Frameworks and Libraries にドラッグ&ドロップで追加。

3.png

error: /Users/***/of_v0.9.0_osx_release/apps/ofxTurboJpeg/libs/turbo-jpeg/lib/osx/libturbojpeg.dylib: No such file or directory

この時点でこんな↑エラーが出る。Build Phases > Copy Fileslibturbojpeg.dylib もリンクが外れてしまっているので左のメニューから追加。

4.png

libturbojpeg.dylibusb-1.0.0-superspeed.a がプロジェクト直下にあるので、サンプルに倣って frameworks にまとめるとかっこいい気がする。

5.png

これでビルドできた(oF9.0 / Xcode 7.01 / OS10.10.5)。

思い出したらまた追加していきます。コマンドで出来る方法とかあったら知りたい…。

30
29
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
30
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?