gort818 / qtwebflix

A qt webengine program for netflix
GNU General Public License v3.0
245 stars 29 forks source link

mainwindow.cpp:83:10: error: invalid use of incomplete type ‘class QDebug’ #11

Closed owenthewizard closed 6 years ago

owenthewizard commented 6 years ago

Using commit 42a6901 I get this when trying to compile using the buildroot toolchain:

/tmp/buildroot-2018.02/output/host/bin/uic mainwindow.ui -o ui_mainwindow.h
/tmp/buildroot-2018.02/output/host/bin/i686-buildroot-linux-gnu-g++ -c -pipe -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 --sysroot=/tmp/buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot -O2 -O3 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5 -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebEngineWidgets -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebEngineCore -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtQuick -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWidgets -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtGui -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebChannel -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtQml -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtNetwork -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtCore -I. -I. -I../buildroot-2018.02/output/host/mkspecs/devices/linux-buildroot-g++ -o main.o main.cpp
/tmp/buildroot-2018.02/output/host/bin/i686-buildroot-linux-gnu-g++ -c -pipe -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 --sysroot=/tmp/buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot -O2 -O3 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINECORE_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5 -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebEngineWidgets -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebEngineCore -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtQuick -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWidgets -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtGui -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWebChannel -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtQml -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtNetwork -I../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtCore -I. -I. -I../buildroot-2018.02/output/host/mkspecs/devices/linux-buildroot-g++ -o mainwindow.o mainwindow.cpp
mainwindow.cpp: In member function ‘void MainWindow::writeSettings()’:
mainwindow.cpp:83:10: error: invalid use of incomplete type ‘class QDebug’
   qDebug() << " write settings:" << site;
          ^
In file included from ../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtCore/qglobal.h:1111:0,
                 from ../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtCore/qnamespace.h:37,
                 from ../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtGui/qkeysequence.h:37,
                 from ../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWidgets/qaction.h:37,
                 from ../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtWidgets/QAction:1,
                 from mainwindow.h:4,
                 from mainwindow.cpp:1:
../buildroot-2018.02/output/host/i686-buildroot-linux-gnu/sysroot/usr/include/qt5/QtCore/qlogging.h:51:7: note: forward declaration of ‘class QDebug’
 class QDebug;
       ^~~~~~
make: *** [Makefile:915: mainwindow.o] Error 1
owenthewizard commented 6 years ago

Oops I'm an idiot, this is an issue with my setup. Sorry!

gort818 commented 6 years ago

No worries glad you figured it out!