bigfug / Fugio

An open visual programming system designed for fast development and long-term preservation of digital art and creative exploration
http://www.bigfug.com/software/fugio/
GNU Lesser General Public License v3.0
151 stars 22 forks source link

Build failure on Linux: `aggregate ‘QStyleOption opt’ has incomplete type and cannot be defined` #72

Open pkillnine opened 5 years ago

pkillnine commented 5 years ago

Operating system: Guix System

The problem is probably due to missing qtquickwidgets, as I added qtquickcontrols instead which I thought may be a different name for the same package, but it doesn't look like it. However, I'm not sure as CMake didn't raise an error.

[  5%] Building CXX object FugioApp/CMakeFiles/fugio.dir/contextwidgetprivate.cpp.o
/tmp/Fugio/FugioApp/contextwidgetprivate.cpp: In member function ‘virtual void ContextWidgetPrivate::paintEvent(QPaintEvent*)’:
/tmp/Fugio/FugioApp/contextwidgetprivate.cpp:477:15: error: aggregate ‘QStyleOption opt’ has incomplete type and cannot be defined
  477 |  QStyleOption opt;
      |               ^~~
make[2]: *** [FugioApp/CMakeFiles/fugio.dir/build.make:156: FugioApp/CMakeFiles/fugio.dir/contextwidgetprivate.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1168: FugioApp/CMakeFiles/fugio.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
ycollet commented 4 years ago

In FugioApp/contextwidgetprivate.cpp, just add:

#include <QStyleOption>

At the begining of the file