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 building CutyCapt with Qt5 #15

Open
arndo opened this issue Nov 12, 2014 · 0 comments
Open

Problem building CutyCapt with Qt5 #15

arndo opened this issue Nov 12, 2014 · 0 comments

Comments

@arndo
Copy link

arndo commented Nov 12, 2014

Recently CutyCapt refuses to build with Qt5 (Version 5.3.2).

g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_REENTRANT -Wall -W -fPIE -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWebKitWidgets -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWebKit -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -o CutyCapt.o CutyCapt.cpp
CutyCapt.cpp:244:66: warning: unused parameter 'errors' [-Wunused-parameter]
 CutyCapt::handleSslErrors(QNetworkReply* reply, QList<QSslError> errors) {
                                                                  ^
CutyCapt.cpp: In member function 'void CutyCapt::saveSnapshot()':
CutyCapt.cpp:285:16: error: aggregate 'QPrinter printer' has incomplete type and cannot be defined
       QPrinter printer;
                ^
CutyCapt.cpp:286:27: error: incomplete type 'QPrinter' used in nested name specifier
       printer.setPageSize(QPrinter::A4);
                           ^
Makefile:422: recipe for target 'CutyCapt.o' failed
make: *** [CutyCapt.o] Error 1

I've created a patch which fixes this issue: https://gist.github.com/arndo/c629eac09d7137e281ff

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

1 participant