2013-02-11 74 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 

有誰知道我在做什麼錯誤,以及如何正確編譯水豚,WebKit的?

回答

2

我實際上通過獲取正確版本的QT來解決這個問題。我原先下載了Visual Studios 2008版本,但在更改爲MingGW版本後,所有內容均按預期工作。

相關問題