Skip to content

Instantly share code, notes, and snippets.

@Fabryz
Created August 13, 2012 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fabryz/3338476 to your computer and use it in GitHub Desktop.
Save Fabryz/3338476 to your computer and use it in GitHub Desktop.
➜ phantomjs git:(master) qmake-qt4 && make
cd src/ && make -f Makefile.phantomjs
make[1]: Entering directory `/home/fabryz/Documenti/www-node/phantomjs/src'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DHAVE_CONFIG_H -DHAVE_FCNTL_H -DHAVE_STDARG_H -DHAVE_STDINT_H -DHAVE_UNISTD_H -DUSE_UTF8 -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -Igif -Imongoose -Ilinenoise/src -Ibreakpad/src -I. -o phantom.o phantom.cpp
In file included from phantom.cpp:44:0:
webpage.h:49:1: error: expected class-name before ‘{’ token
phantom.cpp: In member function ‘void Phantom::loadModule(const QString&, const QString&)’:
phantom.cpp:314:66: error: no matching function for call to ‘QWebFrame::evaluateJavaScript(QString&, const QString&)’
phantom.cpp:314:66: note: candidate is:
/usr/include/qt4/QtWebKit/qwebframe.h:203:14: note: QVariant QWebFrame::evaluateJavaScript(const QString&)
/usr/include/qt4/QtWebKit/qwebframe.h:203:14: note: candidate expects 1 argument, 2 provided
phantom.cpp: In member function ‘void Phantom::onInitialized()’:
phantom.cpp:351:17: error: no matching function for call to ‘QWebFrame::evaluateJavaScript(QString, QString)’
phantom.cpp:351:17: note: candidate is:
/usr/include/qt4/QtWebKit/qwebframe.h:203:14: note: QVariant QWebFrame::evaluateJavaScript(const QString&)
/usr/include/qt4/QtWebKit/qwebframe.h:203:14: note: candidate expects 1 argument, 2 provided
make[1]: *** [phantom.o] Error 1
make[1]: Leaving directory `/home/fabryz/Documenti/www-node/phantomjs/src'
make: *** [sub-src-phantomjs-pro-make_default-ordered] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment