公式のセットアップガイド の手順で試してみましたが、うまくいきますね。私の環境では、サンプルプログラムが問題なく起動できました。
openFrameworks v0.9.3 (of_v0.9.3_osx_release)
Xcode 7.2.1 (7C1002)
OS X El Capitan (10.11.3)
nonoka さんは OS X の、どのバージョンを使ってますか?(El Capitan? それとも Yosemite?)
limit は C++ 標準ライブラリの <limits> で定義されているようですので、もしかすると、nonoka さんの環境では、command line tools のセットアップがうまくいってないのかもしれません。
2016年3月23日 9:40PM JST 追記
Xcode 7.3 + OS X El Capitan にしても、ダメでしたか。
Xcode の Locations については、私も同じように Command Line Tools: Xcode 7.2.1 (7C1002)
と表示されています。ちなみに、インストールは、ターミナルから xcode-select
と入力することで行いました。
状況としては C++ 標準ライブラリの <limits> が見つからないようなので、clang/LLVM コンパイラーの設定を確認してみましょう。ターミナルから echo | clang -v -E -x c++ -
と入力してください。
私の環境では、以下のように表示されました。
mini:~ tatsuya$ echo | clang -v -E -x c++ -
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 253.9 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2 -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /Users/tatsuya -ferror-limit 19 -fmessage-length 145 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o - -x c++ -
clang -cc1 version 7.0.2 based upon LLVM 3.7.0svn default target x86_64-apple-darwin15.4.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 332 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
#include <...> search starts here:
の後に、ディレクトリのパスが表示されますので、以下の2点を確認してください。
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
が表示されていること。
ターミナルで ls -l /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
と入力した時に、以下のように limits
を含む、一連のファイルが表示されること。
mini:~ tatsuya$ ls -l /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/
total 920
-rw-r--r-- 2 root wheel 52514 Sep 5 2015 __bit_reference
-rw-r--r-- 1 root wheel 18808 Sep 5 2015 __config
...(中略)...
-rw-r--r-- 2 root wheel 40484 Sep 5 2015 limits
...(中略)...
-rw-r--r-- 1 root wheel 109777 Sep 5 2015 vector
mini:~ tatsuya$
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/23 09:20
2016/03/23 13:01