我已按照https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit上的说明在Windows 7上进行安装。我已卸载Qt并重新安装并尝试多次执行此操作,但我无法使其正常工作。
我在qmake.conf中添加了一行
QMAKE_LFLAGS = -static-libgcc -static-libstdc ++
QMAKE_RCC方向的另一条线已经存在。
当我在指示中执行此命令时...
C:\ development \ Ruby193 \ capybara-webkit> bundle exec rake build
我收到错误 - 从以下开始:
c:/Qt/qt-4.8.5-x64-mingw/bin/qmake.exe -spec ../../../Qt/qt-4.8.5-x64-mingw/mksp
警告:(内部):1:不推荐使用未转义的反斜杠。
cd src /&& c:/Qt/qt-4.8.5-x64-mingw/bin/qmake.exe c:/ development / Ruby193 / capybar
/ mkspecs / win32-g ++ CONFIG + \ = test -o Makefile.webkit_server
警告:(内部):1:不推荐使用未转义的反斜杠。
cd src /&& make -f Makefile.webkit_server
make [1]:输入目录/c/development/Ruby193/capybara-webkit/src'
make -f Makefile.webkit_server.Debug
make[2]: Entering directory
/ c / development / Ruby193 / capybara-webkit / src'
g ++ -static-libgcc -static-libstdc ++ -Wl,-subsystem,console -mthreads -o debug / w
x64-mingw / lib'-lQtWebKitd4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
g ++。exe:无法识别的选项'-static-libstdc ++'
./build/BlockUrl.o:在函数ZNK5QListI7QStringEixEi':
c:\development\Ruby193\capybara-webkit\src/../../../../Qt/qt-4.8.5-x64-mingw/inc
PKcS0_S0_i'
./build/SetUnknownUrlMode.o: In function
ZN7QStringpLERKS_'中:
C:\研发\ Ruby193 \豚-的WebKit的\ src /../../../../ QT / QT-4.8.5-64-的MinGW / INC
ppendERKS _'
...
以下列行结束:
./ build / moc_RequestHandler.o:moc_RequestHandler.cpp :(。rdata $ _ZTV14RequestHandler [vtable for RequestHandler] + 0x20):未定义引用QObject::ev
entFilter(QObject*, QEvent*)'
./build/moc_RequestHandler.o:moc_RequestHandler.cpp:(.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x24): undefined reference to
QObject :: ti
merEvent(QTimerEvent *)”
./build/moc_RequestHandler.o:moc_RequestHandler.cpp:(.rdata$_ZTV14RequestHandler [VStable for RequestHandler] + 0x28):未定义引用QObject::ch
ildEvent(QChildEvent*)'
./build/moc_RequestHandler.o:moc_RequestHandler.cpp:(.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x2c): undefined reference to
QObject :: cu
stomEvent(QEvent的*)”
./build/moc_RequestHandler.o:moc_RequestHandler.cpp:(.rdata$_ZTV14RequestHandler[vtable for RequestHandler] + 0x30):未定义引用QObject::co
nnectNotify(char const*)'
./build/moc_RequestHandler.o:moc_RequestHandler.cpp:(.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x34): undefined reference to
QObject :: di
sconnectNotify(char const *)'
./build/moc_RequestHandler.o:在函数~RequestHandler':
c:\development\Ruby193\capybara-webkit\src/build/../RequestHandler.h:11: undefined reference to
_ imp___ZN7QObjectD2Ev'中
./build/qrc_webkit_server.o:在函数Z28qInitResources_webkit_serverv':
c:\development\Ruby193\capybara-webkit\src/debug/qrc_webkit_server.cpp:479: undefined reference to
_ imp___Z21qRegisterResourceDataiPKhS0_S0_'中
./build/qrc_webkit_server.o:在函数Z31qCleanupResources_webkit_serverv':
c:\development\Ruby193\capybara-webkit\src/debug/qrc_webkit_server.cpp:488: undefined reference to
_ imp___Z23qUnregisterResourceDataiPKhS0_S0_'中
collect2:ld返回1退出状态
make [2]: * [debug / webkit_server.exe]错误1
make [2]:离开目录/c/development/Ruby193/capybara-webkit/src'
make[1]: *** [debug] Error 2
make[1]: Leaving directory
/ c / development / Ruby193 / capybara-webkit / src'
make:* [sub-src-webkit_server-pro-make_default-ordered]错误2
命令'make'失败