2013-02-11 3 views
2

Windows 7에서 capybara-webkit을 사용하려고하는데 문제가 있습니다. 나는 지침을 따르려고 노력하고있다. here 그러나 문제가있다. 특히 저는 소스에서 빌드하는 데 문제가 있습니다. 다음은 건물로부터의 아주 큰 출력물의 작은 추출물입니다.Windows 7에서 capybara-webkit 빌드

이 첫 번째 출력은 오류가 발생한 곳입니다.

g++ -c -pipe -g -frtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -D QT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I'c:/Qt/4.8.4/include/QtCore' -I'c:/Qt/4.8.4/include/QtNetwork' -I'c:/Qt/4.8.4/include/QtGui' -I'c:/Qt/4.8.4/include/QtWebKit' -I'c:/Qt/4.8.4/include' -I'c:/Qt/4.8.4/include/ActiveQt' -I'debug' -I'c:/Qt/4.8.4/mkspecs/win32-g++' -o debug/qrc_webkit_server.o debug/qrc_webkit_server.cpp 
g++ -Wl,-subsystem,console -mthreads -o debug/webkit_server.exe object_script.webkit_server.Debug -L'c:/Qt/4.8.4/lib' -lQtWebKitd4 -lQtGuid4 -lQtNetworkd4 -lQtCored4 
./debug/Version.o: In function `ZN7Version5startEv': 
c:\MyRailsProject\capybara-webkit\src/Version.cpp:11: undefined reference to `_imp___Z14qWebKitVersionv' 
./debug/Version.o: In function `ZN7QStringpLERKS_': 
c:/Qt/4.8.4/include/QtCore/../../src/corelib/tools/qstring.h:274: undefined reference to `_imp___ZN7QString6appendERKS_' 
./debug/Version.o: In function `QString': 
c:/Qt/4.8.4/include/QtCore/../../src/corelib/tools/qstring.h:419: undefined reference to `_imp___ZN7QString16fromAscii_helperEPKci' 

이것은 매우 긴 출력 체인의 맨 끝에서입니다

collect2: ld returned 1 exit status 
make[2]: *** [debug/webkit_server.exe] Error 1 
make[2]: Leaving directory `/c/MyRailsProject/capybara-webkit/src' 
make[1]: *** [debug] Error 2 
make[1]: Leaving directory `/c/MyRailsProject/capybara-webkit/src' 
make: *** [sub-src-webkit_server-pro-make_default-ordered] Error 2 
Command 'make' failed 

사람이 내가 잘못하고 어떻게 제대로 삐 - 웹킷을 컴파일하는 무슨을 알고 있나요?

답변

2

QT의 올바른 버전을 얻음으로써 실제로이를 해결했습니다. 원래 Visual Studio 2008 버전을 다운로드했지만 MingGW 버전으로 변경하면 모든 것이 예상대로 작동합니다.