Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with compilation #3

Closed
copyhold opened this issue Jul 22, 2013 · 9 comments
Closed

problem with compilation #3

copyhold opened this issue Jul 22, 2013 · 9 comments

Comments

@copyhold
Copy link

$ make
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_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/QtSvg -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -o CutyCapt.o CutyCapt.cpp
CutyCapt.cpp: In member function ‘void CutyCapt::handleSslErrors(QNetworkReply_, QList)’:
CutyCapt.cpp:246:10: error: invalid use of incomplete type ‘class QNetworkReply’
In file included from /usr/include/qt4/QtWebKit/qgraphicswebview.h:24:0,
from /usr/include/qt4/QtWebKit/QtWebKit:3,
from CutyCapt.cpp:27:
/usr/include/qt4/QtWebKit/qwebpage.h:40:7: error: forward declaration of ‘class QNetworkReply’
CutyCapt.cpp: At global scope:
CutyCapt.cpp:244:1: warning: unused parameter ‘errors’ [-Wunused-parameter]
make: *_* [CutyCapt.o] Error 1

@g1plus
Copy link

g1plus commented Jul 22, 2013

I run into this problem as well (I currently maintain the AUR-package for Arch Linux) and solved it by adding

#include <QNetworkReply>
#include <QSslError>

to CutyCapt.cpp
This only applies to qt4. For qt5 no changes are needed.

@copyhold
Copy link
Author

now I have
/usr/include/qt4/QtNetwork/qnetworkaccessmanager.h:64:7: error: forward declaration of ‘class QSslError’

@g1plus
Copy link

g1plus commented Jul 22, 2013

Sorry meant the .hpp
My patch-file looks like this:

--- cutycapt/cutycapt-code/CutyCapt/CutyCapt.hpp    2013-07-06 16:04:16.028585091 +0200
+++ CutyCapt.hpp    2013-07-06 15:59:06.000000000 +0200
@@ -1,4 +1,6 @@
 #include <QtWebKit>
+#include <QNetworkReply>
+#include <QSslError>

 #if QT_VERSION >= 0x050000
 #include <QtWebKitWidgets>```

@copyhold
Copy link
Author

ohh,
this way it worked
Thank you

bradjc added a commit to bradjc/CutyCapt that referenced this issue Aug 16, 2013
1. Now compiles successfully on Ubuntu. This is directly related to
Issue hoehrmann#3.
2. Now supports `make install`.
3. Added .gitignore for built output.
@kolabse
Copy link

kolabse commented Feb 19, 2015

this way it worked
Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!

@swapnilsarwe
Copy link

had similar issue.... the solution worked for me too... cant is be fixed in the SVN repo directly

@sourabhmodi
Copy link

Worked...
Thank you ...!!!!

@chenyachao
Copy link

Cool! Worked for me, thank you!

@ghukill
Copy link

ghukill commented Jan 11, 2017

Worked for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants