Skip to content

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

@pkillnine

Description

@pkillnine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions