qt webkit 4.7.1 编译问题
2011-09-07 13:08
274 查看
1015补充:ubuntu 10下, qt474也存在同样问题。
centos下编译qtwebkit。
选用qt-everywhere-opensource-src-4.7.1包。下载地址:ftp://ftp.trolltech.com/qt/source/
编译命令:
./configure --prefix=/usr/local/qt47 -release -opensource -shared -webkit -largefile -qt-sql-mysql -no-multimedia -no-qt3support -no-gtkstyle -no-opengl -no-xvideo -nomake examples -nomake demos -nomake docs
./configure --prefix=/opt/qtsdk474 -debug-and-release -opensource -shared -webkit -largefile -qt-sql-mysql -no-qt3support -no-gtkstyle -I/opt/local/include/mysql5/mysql -L/opt/local/lib/mysql5/mysql
报错:
../WebKit/qt/Api/qwebpage.cpp:1571: error: class WebCore::EventHandler has no member named handleTouchEvent
定位到 对应文件,修改为:
即 加上 判断: if ENABLE(TOUCH_EVENTS)
对应的Diff 看这里:
DIFF
webkit bugzilla 的解释为:
The call to ignore() is mandatory because touch event are accepted by default.
centos下编译qtwebkit。
选用qt-everywhere-opensource-src-4.7.1包。下载地址:ftp://ftp.trolltech.com/qt/source/
编译命令:
./configure --prefix=/usr/local/qt47 -release -opensource -shared -webkit -largefile -qt-sql-mysql -no-multimedia -no-qt3support -no-gtkstyle -no-opengl -no-xvideo -nomake examples -nomake demos -nomake docs
./configure --prefix=/opt/qtsdk474 -debug-and-release -opensource -shared -webkit -largefile -qt-sql-mysql -no-qt3support -no-gtkstyle -I/opt/local/include/mysql5/mysql -L/opt/local/lib/mysql5/mysql
报错:
../WebKit/qt/Api/qwebpage.cpp:1571: error: class WebCore::EventHandler has no member named handleTouchEvent
定位到 对应文件,修改为:
1564 #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) 1565 void QWebPagePrivate::touchEvent(QTouchEvent* event) 1566 { 1567 //add by alex 1568 #if ENABLE(TOUCH_EVENTS) 1569 //end add. 1570 WebCore::Frame* frame = QWebFramePrivate::core(mainFrame); 1571 if (!frame->view()) 1572 return; 1573 1574 bool accepted = frame->eventHandler()->handleTouchEvent(PlatformTouchEvent(event)); 1575 event->setAccepted(accepted); 1576 //add by alex 1577 #else 1578 event->ignore(); 1579 return; 1580 #endif 1581 //end add. 1582 } 1583 #endif
即 加上 判断: if ENABLE(TOUCH_EVENTS)
对应的Diff 看这里:
DIFF
webkit bugzilla 的解释为:
The call to ignore() is mandatory because touch event are accepted by default.
相关文章推荐
- 使用QtWebKit加载网页,编译时遇到的问题
- QT4.7.1版本 mysql驱动插件 编译的问题
- Qt 编译过程,出现的问题和解决方…
- Qt 4.7.4 QtCreator在编译时卡在jom.exe的问题
- Qt-Arm编译问题
- Qt4.7 升级至 Qt5.3遇到的项目编译不过问题
- ubuntu 编译vlc源码中自带的Qtplayer编译问题
- mingw编译qt 4.4.x的问题
- windows下Qt调用ffmpeg库编译问题
- QT与C程序编译问题extern C
- 一个很难很难解决的问题:在linux下编译arm嵌入式的qt时加入opengl es1 选项就会编译不过
- QT编译遇到的小问题
- QT编辑编译问题备忘
- Qt编译时遇到“未声明的标识符”问题
- QT5.4.2静态编译(包含QtWebKit)及配置方法
- 自己编译QT时遇到的中文显示问题整理
- QT5.7.0交叉编译与移植遇到的问题以及解决办法
- osg,qt编译的一些问题
- Qt5.5+VS2013编译的程序在xp下兼容问题解决方法
- tq2440实验手册qt编译问题