C 라이브러리 (libspotify)에 대한 바인딩을 사용하여 Python 패키지 (pyspotify)를 빌드하려고합니다.Windows (VC90)에서 C 바인딩을 사용하여 Python 패키지를 빌드하면 LNK1181 치명적인 오류가 발생합니다.
저는 Python 2.7.5를 사용하고 있으며 일부 필수 명령 줄 도구에 VS2008 Express를 설치했습니다. 나는 (관리자 권한) 명령 프롬프트에서 python setup.py build
를 호출 할 때
나는 다음과 같은 출력 얻을 : 다음
running build
running build_py
running build_ext
building 'spotify._spotify' extension
와 ~이 18 패키지의 각이 .c 파일에 대한 하나
그리고 다음 showstopper
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -Isrc -Ic:\Python\Python27\include -Ic:\Python\Python27\PC
/Tcsrc\module.c /Fobuild\temp.win32-2.7\Release\src\module.obj
module.c
는 :
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:c:\Python\Python27\libs /LIBPATH:c:\Python\Python27\PCb
uild spotify.lib /EXPORT:init_spotify build\temp.win32-2.7\Release\src\module.ob
j build\temp.win32-2.7\Release\src\session.obj build\temp.win32-2.7\Release\src\
link.obj build\temp.win32-2.7\Release\src\track.obj build\temp.win32-2.7\Release
\src\album.obj build\temp.win32-2.7\Release\src\albumbrowser.obj build\temp.win3
2-2.7\Release\src\artist.obj build\temp.win32-2.7\Release\src\artistbrowser.obj
build\temp.win32-2.7\Release\src\search.obj build\temp.win32-2.7\Release\src\pla
ylist.obj build\temp.win32-2.7\Release\src\playlistcontainer.obj build\temp.win3
2-2.7\Release\src\playlistfolder.obj build\temp.win32-2.7\Release\src\image.obj
build\temp.win32-2.7\Release\src\user.obj build\temp.win32-2.7\Release\src\pyspo
tify.obj build\temp.win32-2.7\Release\src\toplistbrowser.obj /OUT:build\lib.win3
2-2.7\spotify\_spotify.pyd /IMPLIB:build\temp.win32-2.7\Release\src\_spotify.lib
/MANIFESTFILE:build\temp.win32-2.7\Release\src\_spotify.pyd.manifest
LINK : fatal error LNK1181: cannot open input file 'spotify.lib'
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.
exe"' failed with exit status 1181
그리고 검색하는 것을 시도했다 이 LNK1181 오류,하지만 모든 대답을 문자열 주위에 따옴표 또는이 경우에는 제어 할 수있는 VS 일부 설정을 기억하는 것으로 보인다.
"LINK : 치명적인 오류 LNK1181 : 입력 파일 'spotify.lib'을 열 수 없습니다." –
'LIB' 경로에'spotify.lib'이 있습니까? – RichieHindle
spotify.lib가 있어야하는 곳을 알지 못하므로 안됩니다. 그렇게 생각하지 않습니다. VS 생성 파일입니까? –