Closed maciejkowalski closed 10 years ago
It's possible that your installation has modified the QtWebKit headers in some way, which causes the QNetworkReply headers to not be included in WebPage.h. You could try modifying WebPage.h and adding #include <QNetworkReply>
below the QtNetwork include.
there is no such thing:
@maci ➜ src rvm:(ruby-2.0.0) head WebPage.h
#ifndef _WEBPAGE_H
#define _WEBPAGE_H
#include <QtWebKit>
class WebPageManager;
class WebPage : public QWebPage {
Q_OBJECT
public:
@maci ➜ src rvm:(ruby-2.0.0)
pwd
@maci ➜ src rvm:(ruby-2.0.0) pwd
/home/maciej/.rvm/gems/ruby-1.9.3-p429-railsexpress@joblark/gems/capybara-webkit-0.13.0/src
@maci ➜ src rvm:(ruby-2.0.0)
Thanks for the reply. :)
@maciejkowalski, just below the #include <QtWebKit>
, add #include <QNetworkReply>
. It's possible that other headers have been modified by your distribution, in which case we'll have to figure that out as well. But if this works for you, we may just add the required include line on master.
Actually, I just noticed that you're trying to install version 0.13.0, which is quite old. I'd recommend trying to upgrade to at least 0.14.2, or 1.0.0 if possible. It'll be difficult to provide support for 0.13.0 as we've moved far from that at this point.
I need to use 0.13.0
cuz our app is old, and upgrading to new capybara broke too many things
We have that long-term goal in mind - upgrading capybara
I solved this issue by recompiling QT aka installing from source: http://qt-project.org/downloads
And then pointing this to bundler
QMAKE=/usr/local/Trolltech/Qt-4.8.5/bin/qmake bundle
Just like in title
Stacktrace for installing capybara-webkit
I have QT installed:
QT version