Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 在capybara webkit上使用qt 4.8.5时出现编译错误_Windows_Qt_Capybara Webkit - Fatal编程技术网

Windows 在capybara webkit上使用qt 4.8.5时出现编译错误

Windows 在capybara webkit上使用qt 4.8.5时出现编译错误,windows,qt,capybara-webkit,Windows,Qt,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-ming

我已按照上的说明在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+\=测试-o Makefile.webkit\u服务器 警告:内部:1:不推荐使用未缩放的反斜杠。 cd src/&&make-f Makefile.webkit_服务器 make[1]:进入目录/c/development/Ruby193/capybara webkit/src' make-f Makefile.webkit_server.Debug make[2]:进入目录/c/development/Ruby193/capybara webkit/src' g++-static libgcc-static libstdc++-Wl,-子系统,控制台-mthreads-o调试/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:在函数zn7qstringPlerks_u3;中: c:\development\Ruby193\capybara webkit\src/../../../../../../../Qt/Qt-4.8.5-x64-mingw/inc 佩德克斯'

以以下行结束:

./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x20:对QObject::ev的未定义引用 entFilterQObject*,QEvent*' ./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x24:对QObject::ti的未定义引用 merEventQTimerEvent*' ./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x28:对QObject::ch的未定义引用 ildEventQChildEvent*' ./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x2c:对QObject的未定义引用::cu stomEventQEvent*' ./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x30:对QObject::co的未定义引用 NNETNOTIFYCHAR const*' ./build/moc_RequestHandler.o:moc_RequestHandler.cpp:.rdata$_ZTV14RequestHandler[vtable for RequestHandler]+0x34:对QObject::di的未定义引用 sconnectNotifychar常量*' ./build/moc_RequestHandler.o:在函数~RequestHandler'中: c:\development\Ruby193\capybara webkit\src/build/。/RequestHandler.h:11:未定义对\u imp\u\u ZN7QObjectD2Ev'的引用 ./build/qrc_webkit_server.o:在函数Z28qInitResources_webkit_serverv'中: c:\development\Ruby193\capybara webkit\src/debug/qrc_webkit_server.cpp:479:未定义对\u imp_uuuuuuuuuuz21qregisterResourceDataIPKHS0\u S0的引用 ./build/qrc_webkit_server.o:在函数Z31qCleanupResources_webkit_serverv'中: c:\development\Ruby193\capybara webkit\src/debug/qrc_webkit_server.cpp:488:未定义对\u imp_uuuuuuuuuuuuuuuz23qunregisteresourcedaipkhs0\u S0的引用' collect2:ld返回了1个退出状态 生成[2]:*[debug/webkit_server.exe]错误1 make[2]:离开目录/c/development/Ruby193/capybara webkit/src' 生成[1]:***[debug]错误2 make[1]:离开目录/c/development/Ruby193/capybara webkit/src' make:[sub-src-webkit\u server-pro-make\u default-ordered]错误2
命令“make”失败

问题似乎是添加的标志,它是执行此生成的说明的一部分。问题似乎是添加的标志,它是执行此生成的说明的一部分---无法识别的选项“-static libstdc++”我一直在搜索此选项,但我还没有找到解决问题的办法。卸下开关不起作用,并且似乎不会改变错误消息,但抱怨无法识别选项的线路消失了。这方面运气好吗?我也面临同样的问题