zhouivy / torora

Automatically exported from code.google.com/p/torora
0 stars 0 forks source link

"error: ‘class QWebHistory’ has no member named ‘saveState’" when building torora with QT 4.6 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Followed mgeni build steps as per: 
http://code.google.com/p/mgeni/wiki/Source?tm=4

What is the expected output? What do you see instead?

I expected the build to succeed, instead I get:

g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_REENTRANT -Wall -W 
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS 
-DGITVERSION="\"4caf161\"" -DGITCHANGENUMBER="\"1450\"" 
-DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/arora\" 
-DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB 
-DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. 
-I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtNetwork 
-I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtScript 
-I/usr/include/QtWebKit -I/usr/include -I. -Iadblock -Ibookmarks 
-Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar 
-Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins 
-Iqwebplugins/clicktoflash -Iutils -Itor -Ilocale -I.moc -I.ui -o 
.obj/tabwidget.o tabwidget.cpp
tabwidget.cpp: In member function ‘void TabWidget::closeTab(int)’:
tabwidget.cpp:644: error: ‘class QWebHistory’ has no member named 
‘saveState’
tabwidget.cpp: In static member function ‘static QUrl 
TabWidget::guessUrlFromString(const QString&)’:
tabwidget.cpp:887: error: ‘guessUrlFromString’ is not a member of 
‘WebView’
tabwidget.cpp: In member function ‘QByteArray TabWidget::saveState() const’:
tabwidget.cpp:1070: error: ‘class QWebHistory’ has no member named 
‘saveState’
tabwidget.cpp: In member function ‘void TabWidget::createTab(const 
QByteArray&, TabWidget::OpenUrlIn)’:
tabwidget.cpp:1135: error: ‘class QWebHistory’ has no member named 
‘restoreState’
make[1]: *** [.obj/tabwidget.o] Error 1
make[1]: Leaving directory `/home/jherm/Sandbox/torora/src'
make: *** [sub-src-make_default-ordered] Error 2

What version of the product are you using? On what operating system?

latest torora + mgeni, running Fedora 13 x86_86 with QT 4.6.2

Please provide any additional information below.

The upstream arora bug can be found here: 
http://code.google.com/p/arora/issues/detail?id=759

I will submit a patch as soon as I get it working on my side.

Original issue reported on code.google.com by jon.hermansen on 11 Jul 2010 at 2:40

GoogleCodeExporter commented 9 years ago
I neglected to mention that instead of running the mgeni build steps verbatim, 
I had to run:

"qmake-qt4 "CONFIG-=debug CONFIG+=release" -r"

instead of simply:

"qmake "CONFIG-=debug CONFIG+=release" -r"

This may be only because I have both QT3 and QT4 development packages 
installed. YMMV.

Original comment by jon.hermansen on 11 Jul 2010 at 3:22

GoogleCodeExporter commented 9 years ago
Patch based on commit 1193ab397b1e220d9608 to arora tree.

--

Now I'm hitting another error, this time on 'webview.cpp'

g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_REENTRANT -Wall -W 
-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_STRICT_ITERATORS 
-DGITVERSION="\"4caf161\"" -DGITCHANGENUMBER="\"1450\"" 
-DDATADIR=\"/usr/local/share\" -DPKGDATADIR=\"/usr/local/share/arora\" 
-DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB 
-DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++ -I. 
-I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtNetwork 
-I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtScript 
-I/usr/include/QtWebKit -I/usr/include -I. -Iadblock -Ibookmarks 
-Ibookmarks/xbel -Ihistory -Ilocationbar -Inetwork -Inetwork/cookiejar 
-Inetwork/cookiejar/networkcookiejar -Iopensearch -Iqwebplugins 
-Iqwebplugins/clicktoflash -Iutils -Itor -Ilocale -I.moc -I.ui -o 
.obj/webview.o webview.cpp
webview.cpp: In member function ‘void WebView::addSearchEngine()’:
webview.cpp:450: error: ‘const class QWebElement’ has no member named 
‘scriptableProperty’
webview.cpp:460: error: ‘const class QWebElement’ has no member named 
‘scriptableProperty’
webview.cpp:471: error: ‘const class QWebElement’ has no member named 
‘scriptableProperty’
make[1]: *** [.obj/webview.o] Error 1
make[1]: Leaving directory `/home/jherm/Sandbox/torora/src'
make: *** [sub-src-make_default-ordered] Error 2

--

There is a fix for arora (http://code.google.com/p/arora/issues/detail?id=668) 
and I will bring it over in just a minute...

Original comment by jon.hermansen on 11 Jul 2010 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
Patch based on commit 8427bda77e2a79b29e2c5718b5000f19f3512e87 to arora tree

I don't know if this will break compatibility with QT versions older than 4.6, 
I simply thought best to send the patches along in case anyone wanted to use 
torora or mgeni on Fedora 13.

I also checked what QT version was packaged for Ubuntu 10.04, and it's the same 
as Fedora 13 (4.6.2).

I'm interested in packaging mgeni, torora, and torksocks for Fedora so I first 
wanted to make your software build on my system...

Original comment by jon.hermansen on 11 Jul 2010 at 4:38

Attachments:

GoogleCodeExporter commented 9 years ago
Torora now compiles against webkit again. I have started working on Torora 
again and plan to make a release that does not depend on patching webkit. I 
guess check in again when that happens?

Original comment by rob...@roberthogan.net on 5 Sep 2010 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by rob...@roberthogan.net on 21 Sep 2010 at 7:50