mimecorg / fraqtive

Generator of the Mandelbrot family fractals.
https://fraqtive.mimec.org/
GNU General Public License v3.0
36 stars 7 forks source link

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

Open jabowery opened 5 years ago

jabowery commented 5 years ago

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```
Alexander-Barth commented 3 years ago

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>
AxeMax commented 1 year ago

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

AxeMax commented 1 year ago

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

AxeMax commented 1 year ago

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