Xcodeで、Libsndfile

私は、libsndfileをインストールするのに、Macportを使いました。

% sudo port install libsndfile
 
% sudo find /opt/local -name "sndfile.h*" -ls
9309001       56 -rw-r--r--    1 root             admin               28172 Jan 11 12:58 /opt/local/include/sndfile.h
9309002       32 -rw-r--r--    1 root             admin               12615 Jan 11 12:58 /opt/local/include/sndfile.hh
 
% sudo find /opt/local -name "libsndfile.a" -ls
9308997     1192 -rw-r--r--    1 root             admin              609416 Jan 11 12:58 /opt/local/lib/libsndfile.a
 
% sudo SetFile -a v /opt
% sudo SetFile -a v ~/Library

最後の2行は必要です、何故ならば、Finderはデフォールトでは、これらのディレクトリを表示しないからです。(OS Xを好まない、また別の理由ができましたか?)

あなたは、これらのファイルをあなたのプロジェクトにメニュー、File->Add Files to “your project”によって追加することができます。

そして、プロジェクトをビルドしてランしますが、生成された波形ファイルはどこにあるのでしょう?

% find . -name "SinWave.wav" -ls
9311043     1384 -rw-r--r--    1 user1            staff              705644 Jan 11 14:03 ./Library/Developer/Xcode/DerivedData/MyTestLibsndfile-epxzehlkgnfccyghceojpoehfjvu/Build/Products/Debug/SinWave.wav

非常にファンタスティックではありませんか。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.