2012-08-11 5 views
3

Mac OSX Lion에 libspotify를 설치하려고합니다. 나는 파이썬 스크립트에서 spotify api를 사용하고 싶다. 내가 pyspotify를 설치하려고 할 때, 그것은 말한다 :Mac OSX Lion에 libspotify를 어떻게 설치합니까?

running install 
running bdist_egg 
running egg_info 
writing pyspotify.egg-info/PKG-INFO 
writing top-level names to pyspotify.egg-info/top_level.txt 
writing dependency_links to pyspotify.egg-info/dependency_links.txt 
reading manifest file 'pyspotify.egg-info/SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
writing manifest file 'pyspotify.egg-info/SOURCES.txt' 
installing library code to build/bdist.macosx-10.8-intel/egg 
running install_lib 
running build_py 
running build_ext 
building 'spotify._spotify' extension 
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -Isrc -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/module.c -o build/temp.macosx-10.8-intel-2.7/src/module.o 
clang: warning: argument unused during compilation: '-mno-fused-madd' 
src/module.c:20:10: fatal error: 'spotify/api.h' file not found 
#include "spotify/api.h" 
     ^
1 error generated. 
error: command 'clang' failed with exit status 1 

내가 양조를 사용하여 libspotify 설치하려고 ...

brew install libspotify 

답변

3

을 당신이 말한대로, 양조로를 설치하거나 단지 libspotify 복사 중 하나.

#include <libspotify/api.h> 
: 프레임 워크 라이브러리 /에/당신이 좋아하는 lib 디렉토리를 포함 할 수 있어야 이제

프레임 워크

관련 문제