Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Unable to build: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined #253

Closed
invidian opened this issue Jun 3, 2020 · 0 comments · Fixed by #254

Comments

@invidian
Copy link
Contributor

invidian commented Jun 3, 2020

Environment

  • OS/Distribution: Arch Linux
  • Desktop Environment:
  • Hardware:
  • Exact Version or Commit Hash and Installation Method: v1.2.1

Describe the bug
It seems with latest master, I'm unable to build the project, when attempting, I get following error:

/home/invidian/repos/chiaki/gui/src/servericonwidget.cpp: In lambda function:
/home/invidian/repos/chiaki/gui/src/servericonwidget.cpp:65:16: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
   65 |   QPainterPath path;
         |                ^~~~
         make[2]: *** [gui/CMakeFiles/chiaki.dir/build.make:250: gui/CMakeFiles/chiaki.dir/src/servericonwidget.cpp.o] Error 1
         make[1]: *** [CMakeFiles/Makefile2:392: gui/CMakeFiles/chiaki.dir/all] Error 2
         make: *** [Makefile:183: all] Error 2

It seems following patch fixes the build:

diff --git gui/src/servericonwidget.cpp gui/src/servericonwidget.cpp
index e9d4e08..f7d60d7 100644
--- gui/src/servericonwidget.cpp
+++ gui/src/servericonwidget.cpp
@@ -18,6 +18,7 @@
 #include <servericonwidget.h>

 #include <QPainter>
+#include <QPainterPath>

 ServerIconWidget::ServerIconWidget(QWidget *parent) : QWidget(parent)
 {
invidian added a commit to invidian/chiaki that referenced this issue Jun 3, 2020
Otherwise building fails with the following error:

error: aggregate ‘QPainterPath path’ has incomplete type and cannot be
defined

Closes thestr4ng3r#253

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant