bcampbell / evilpixie

Pixel-oriented paint program, modelled on Deluxe Paint
http://evilpixie.scumways.com
GNU General Public License v3.0
42 stars 3 forks source link

qt 5.15 support #14

Closed fgaz closed 3 years ago

fgaz commented 3 years ago

I'm trying to build evilpixie against qt 5.15 (I'm maintaining the evilpixie NixOS package) and I'm getting this error:

[...]
g++ -c -pipe -O2 -D_REENTRANT -Wall -Wextra -fPIC -DEVILPIXIE_DATA_DIR=\"/nix/store/py66b7amifhwcqs11qiikhqfavqzym3n-evilpixie-0.2/share/evilpixie\" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include -isystem /nix/store/msygcxv0szq3s0bz8ja4aan3p199276r-qtbase-5.15.0-dev/include/QtWidgets -isystem /nix/store/msygcxv0szq3s0bz8ja4aan3p199276r-qtbase-5.15.0-dev/include/QtGui -isystem /nix/store/msygcxv0szq3s0bz8ja4aan3p199276r-qtbase-5.15.0-dev/include/QtCore -I. -I/nix/store/d53ww1p0vxnsss43h1ag6440imqk35gy-mesa-20.2.4-dev/include -I/nix/store/msygcxv0szq3s0bz8ja4aan3p199276r-qtbase-5.15.0-dev/mkspecs/linux-g++ -o miscwindows.o src/qt/miscwindows.cpp
src/qt/palettewidget.cpp: In member function 'virtual void PaletteWidget::leaveEvent(QEvent*)':
src/qt/palettewidget.cpp:117:41: warning: unused parameter 'event' [-Wunused-parameter]
  117 | void PaletteWidget::leaveEvent( QEvent *event )
      |                                 ~~~~~~~~^~~~~
src/qt/palettewidget.cpp: In member function 'void PaletteWidget::DrawRangeOverlay(QPainter&, int, int, bool)':
src/qt/palettewidget.cpp:339:18: error: aggregate 'QPainterPath p' has incomplete type and cannot be defined
  339 |     QPainterPath p;
      |                  ^
src/qt/palettewidget.cpp:353:22: error: aggregate 'QPainterPath ptmp' has incomplete type and cannot be defined
  353 |         QPainterPath ptmp;
      |                      ^~~~
make: *** [Makefile:896: palettewidget.o] Error 1
bcampbell commented 3 years ago

Thanks for the heads-up! I'm still on Qt 5.14, but I think a8dccf29 should fix it... (on master, at least - let me know if you need it somewhere else).

bcampbell commented 3 years ago

I think you were using tag v0.2 - I've added tag v0.2.1 to include the Qt5.15 fix. https://github.com/bcampbell/evilpixie/releases/tag/v0.2.1

fgaz commented 3 years ago

It's fixed, thank you! I updated the package

fgaz commented 3 years ago

think you were using tag v0.2

And yes, sorry I forgot to mention it. The same error occurred on 0.2 and on master