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

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

Closed
owenthewizard opened this issue Mar 12, 2018 · 2 comments

Comments

@owenthewizard
Copy link
Contributor

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 QDebugclass QDebug;
       ^~~~~~
make: *** [Makefile:915: mainwindow.o] Error 1
@owenthewizard
Copy link
Contributor Author

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

@gort818
Copy link
Owner

gort818 commented Mar 12, 2018

No worries glad you figured it out!

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

2 participants