setvisible / ArrowDL

ArrowDL (Arrow Downloader) is a download manager for Windows, MacOS and Linux
https://www.arrow-dl.com/
GNU Lesser General Public License v3.0
549 stars 30 forks source link

Build error on Arch Linux #120

Closed papavlos closed 7 months ago

papavlos commented 8 months ago

Building from the latest AUR 3.0.6 package crashes with the following error:

[ 44%] Building CXX object src/CMakeFiles/DownZemAll.dir/core/mimedatabase.cpp.o
In file included from /home/papavlos/.cache/yay/downzemall/src/DownZemAll-3.0.6/src/core/mimedatabase.cpp:17:
/home/papavlos/.cache/yay/downzemall/src/DownZemAll-3.0.6/src/core/mimedatabase.h:35:35: error: ‘QUrl’ does not name a type
   35 |     static QPixmap fileIcon(const QUrl &url, int extend = default_icon_size);
      |                                   ^~~~
/home/papavlos/.cache/yay/downzemall/src/DownZemAll-3.0.6/src/core/mimedatabase.cpp:85:9: error: no declaration matches ‘QPixmap MimeDatabase::fileIcon(const QUrl&, int)’
   85 | QPixmap MimeDatabase::fileIcon(const QUrl &url, int extend)
      |         ^~~~~~~~~~~~

I run Plasma desktop environment and have already built some other Qt-based packages without issues. Is there a missing dependency? yochananmarqos - the maintainer of the AUR packages - also confirms the same error and lets me open this upstream issue here. See: https://aur.archlinux.org/packages/downzemall

papavlos commented 8 months ago

There is a simple fix: In the file DownZemAll-3.0.6/src/core/mimedatabase.h just add one line #include <QtCore/QUrl>. Then the build executes properly.