fraqtive icon indicating copy to clipboard operation
fraqtive copied to clipboard

"error: aggregate ‘QDataStream stream’ has incomplete type..."

Open jabowery opened this issue 6 years ago • 4 comments

I'm getting compile errors under Debian (Stretch) and Ubuntu 18.04 systems:

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DHAVE_SSE2 -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I. -I../../../anaconda3/include/qt -I../../../anaconda3/include/qt/QtOpenGL -I../../../anaconda3/include/qt/QtWidgets -I../../../anaconda3/include/qt/QtGui -I../../../anaconda3/include/qt/QtXml -I../../../anaconda3/include/qt/QtCore -I../tmp -I../tmp -I../../../anaconda3/mkspecs/linux-g++ -o ../tmp/release/configurationdata.o configurationdata.cpp
configurationdata.cpp: In member function ‘void ConfigurationData::readConfiguration()’:
configurationdata.cpp:81:17: error: aggregate ‘QDataStream stream’ has incomplete type and cannot be defined
     QDataStream stream;
                 ^~~~~~
... and so forth```

jabowery avatar Oct 31 '19 21:10 jabowery

I had the same problem on Ubuntu 20.04. The compilations works after this change:

diff --git a/src/configurationdata.cpp b/src/configurationdata.cpp
index 36dcc39..9536069 100644
--- a/src/configurationdata.cpp
+++ b/src/configurationdata.cpp
@@ -17,6 +17,7 @@
 **************************************************************************/
 
 #include "configurationdata.h"
+#include <QDataStream>
 
 #if defined( Q_OS_WIN )
 #ifndef _WIN32_IE
diff --git a/src/fractalgenerator.h b/src/fractalgenerator.h
index 2ba638f..082a601 100644
--- a/src/fractalgenerator.h
+++ b/src/fractalgenerator.h
@@ -19,6 +19,7 @@
 #ifndef FRACTALGENERATOR_H
 #define FRACTALGENERATOR_H
 
+#include <QObject>
 #include <QEvent>
 #include <QMutex>
 #include <QWaitCondition>

Alexander-Barth avatar Dec 27 '20 11:12 Alexander-Barth

Working on incorporating patches from Gentoo in https://github.com/mimecorg/fraqtive/issues/5

AxeMax avatar Mar 05 '23 03:03 AxeMax

Hi @jabowery, now that @mimecorg merged PR #6 , can we close this issue?

AxeMax avatar Mar 09 '23 06:03 AxeMax

@jabowery could you retry building the new tag v0.4.8.1 ?

AxeMax avatar Apr 02 '23 09:04 AxeMax