dangvd / ksmoothdock

A cool desktop panel for KDE Plasma 5
56 stars 7 forks source link

Build fails on Archlinux #121

Closed omni6 closed 4 years ago

omni6 commented 4 years ago

Hi Dang,

build is failing, i think its because newer versions from arch build environment..

==> Starting build()...
-- The C compiler identification is GNU 10.1.0
-- The CXX compiler identification is GNU 10.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found KF5Activities: /usr/lib64/cmake/KF5Activities/KF5ActivitiesConfig.cmake (found version "5.72.0") 
-- Found KF5Config: /usr/lib64/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.72.0") 
-- Found KF5CoreAddons: /usr/lib64/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.72.0") 
-- Found KF5DBusAddons: /usr/lib64/cmake/KF5DBusAddons/KF5DBusAddonsConfig.cmake (found version "5.72.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.20.2") 
-- Found KF5I18n: /usr/lib64/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.72.0") 
-- Found KF5IconThemes: /usr/lib64/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.72.0") 
-- Found KF5XmlGui: /usr/lib64/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version "5.72.0") 
-- Found KF5WidgetsAddons: /usr/lib64/cmake/KF5WidgetsAddons/KF5WidgetsAddonsConfig.cmake (found version "5.72.0") 
-- Found KF5WindowSystem: /usr/lib64/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.72.0") 
-- Found KF5: success (found suitable version "5.72.0", minimum required is "5.7") found components: Activities Config CoreAddons DBusAddons I18n IconThemes XmlGui WidgetsAddons WindowSystem 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2
Scanning dependencies of target ksmoothdock_lib_autogen
[  1%] Automatic MOC and UIC for target ksmoothdock_lib
[  1%] Built target ksmoothdock_lib_autogen
Scanning dependencies of target ksmoothdock_lib
[  3%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/model/multi_dock_model.cc.o
[  4%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/application_menu.cc.o
[  6%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/model/config_helper.cc.o
[  8%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/application_menu_settings_dialog.cc.o
[  9%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/ksmoothdock_lib_autogen/mocs_compilation.cpp.o
[ 11%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/add_panel_dialog.cc.o
[ 13%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/model/application_menu_config.cc.o
[ 14%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/appearance_settings_dialog.cc.o
[ 16%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/calendar.cc.o
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc: In member function 'bool ksmoothdock::ApplicationMenuConfig::loadEntry(const QString&)':
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:163:32: error: 'QString::SkipEmptyParts' is deprecated [-Werror=deprecated-declarations]
  163 |           .split(';', QString::SkipEmptyParts);
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/qdir.h:43,
                 from /usr/include/qt/QtCore/QDir:1,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.h:9,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:19:
/usr/include/qt/QtCore/qstring.h:600:9: note: declared here
  600 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
      |         ^~~~~~~~~~~~~~
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:163:32: error: 'QString::SkipEmptyParts' is deprecated [-Werror=deprecated-declarations]
  163 |           .split(';', QString::SkipEmptyParts);
      |                                ^~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/qdir.h:43,
                 from /usr/include/qt/QtCore/QDir:1,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.h:9,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:19:
/usr/include/qt/QtCore/qstring.h:600:9: note: declared here
  600 |         SkipEmptyParts Q_DECL_ENUMERATOR_DEPRECATED
      |         ^~~~~~~~~~~~~~
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:163:46: error: 'QStringList QString::split(QChar, QString::SplitBehavior, Qt::CaseSensitivity) const' is deprecated: Use Qt::SplitBehavior variant instead [-Werror=deprecated-declarations]
  163 |           .split(';', QString::SkipEmptyParts);
      |                                              ^
In file included from /usr/include/qt/QtCore/qdir.h:43,
                 from /usr/include/qt/QtCore/QDir:1,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.h:9,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/model/application_menu_config.cc:19:
/usr/include/qt/QtCore/qstring.h:610:17: note: declared here
  610 |     QStringList split(QChar sep, SplitBehavior behavior,
      |                 ^~~~~
[ 18%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/clock.cc.o
[ 19%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/desktop_selector.cc.o
[ 21%] Building CXX object CMakeFiles/ksmoothdock_lib.dir/view/dock_panel.cc.o
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/ksmoothdock_lib.dir/build.make:96: CMakeFiles/ksmoothdock_lib.dir/model/application_menu_config.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/clock.cc: In member function 'virtual QString ksmoothdock::Clock::getLabel() const':
/tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/clock.cc:89:44: error: 'Qt::SystemLocaleLongDate' is deprecated: Use QLocale [-Werror=deprecated-declarations]
   89 |   return QDate::currentDate().toString(Qt::SystemLocaleLongDate);
      |                                            ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt/QtGui/qwindowdefs.h:44,
                 from /usr/include/qt/QtGui/qevent.h:44,
                 from /usr/include/qt/QtGui/QMouseEvent:1,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/dock_item.h:22,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/iconless_dock_item.h:22,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/clock.h:22,
                 from /tmp/makepkg/ksmoothdock/src/ksmoothdock-6.2/src/view/clock.cc:19:
/usr/include/qt/QtCore/qnamespace.h:1275:9: note: declared here
 1275 |         SystemLocaleLongDate Q_DECL_ENUMERATOR_DEPRECATED_X("Use QLocale"),
      |         ^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/ksmoothdock_lib.dir/build.make:200: CMakeFiles/ksmoothdock_lib.dir/view/clock.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:601: CMakeFiles/ksmoothdock_lib.dir/all] Error 2
make: *** [Makefile:161: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Thanks for take a look

dangvd commented 4 years ago

Yeah they are deprecated in latest Qt version. I'll look at it when I can.

In the mean time, can you try to remove these 2 lines from src/CMakeList.txt: add_compile_options(-Wall -Werror) add_definitions(-DQT_DEPRECATED_WARNINGS) and build again?

Basically, currently all warnings are treated as errors.

omni6 commented 4 years ago

Oh this is good, I get still warnings but the build process completes.

added this as a patch in the PKGBUILD.. no need to hurry for you.

have a nice day!

dangvd commented 4 years ago

Glad it worked!