kapitainsky / RcloneBrowser

Simple cross platform GUI for rclone. Supports macOS, GNU/Linux, BSD family and Windows.
https://github.com/kapitainsky/RcloneBrowser
MIT License
2.24k stars 215 forks source link

Build Errors on Ubuntu from Debrecations #223

Open marmelin opened 1 year ago

marmelin commented 1 year ago

:red_envelope: Problem

:1234: Information

rcloneBrowser Version

System Information

Compile error log ... ``` mkdir build && cd build ❯ ❯ cmake .. -- The C compiler identification is GNU 11.3.0 -- The CXX compiler identification is GNU 11.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. CMake Deprecation Warning at src/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- Configuring done -- Generating done -- Build files have been written to: /home/markus/Apps/git/RcloneBrowser/build ❯ make [ 1%] Generating ui_transfer_dialog.h [ 3%] Generating moc_export_dialog.cpp [ 5%] Generating moc_icon_cache.cpp [ 7%] Generating moc_item_model.cpp [ 9%] Generating moc_job_widget.cpp [ 11%] Generating moc_list_of_job_options.cpp [ 13%] Generating moc_main_window.cpp [ 15%] Generating moc_mount_widget.cpp [ 17%] Generating moc_preferences_dialog.cpp [ 19%] Generating moc_progress_dialog.cpp [ 21%] Generating moc_remote_widget.cpp [ 23%] Generating moc_stream_widget.cpp [ 25%] Generating moc_transfer_dialog.cpp [ 26%] Generating qrc_resources.cpp [ 28%] Generating ui_export_dialog.h [ 30%] Generating ui_job_widget.h [ 32%] Generating ui_main_window.h [ 34%] Generating ui_mount_widget.h [ 36%] Generating ui_preferences_dialog.h [ 38%] Generating ui_progress_dialog.h [ 40%] Generating ui_remote_widget.h [ 42%] Generating ui_stream_widget.h [ 44%] Building CXX object src/CMakeFiles/rclone-browser.dir/pch.cpp.o [ 46%] Building CXX object src/CMakeFiles/rclone-browser.dir/main.cpp.o [ 48%] Building CXX object src/CMakeFiles/rclone-browser.dir/main_window.cpp.o /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp: In lambda function: /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp:435:44: error: ‘QStringList QString::split(const QString&, QString::SplitBehavior, Qt::CaseSensitivity) const’ is deprecated: Use split(const QString &sep, Qt::SplitBehavior ...) variant instead [-Werror=deprecated-declarations] 435 | QStringList lines = version.split("\n", QString::SkipEmptyParts); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, from /home/markus/Apps/git/RcloneBrowser/src/pch.h:9, from /home/markus/Apps/git/RcloneBrowser/src/icon_cache.h:3, from /home/markus/Apps/git/RcloneBrowser/src/main_window.h:3, from /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:609:17: note: declared here 609 | QStringList split(const QString &sep, SplitBehavior behavior, | ^~~~~ /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp: In member function ‘void MainWindow::addStream(const QString&, const QString&)’: /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp:1217:16: error: ‘void QProcess::start(const QString&, QIODevice::OpenMode)’ is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead [-Werror=deprecated-declarations] 1217 | player->start(stream, QProcess::ReadOnly); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:170, from /home/markus/Apps/git/RcloneBrowser/src/pch.h:9, from /home/markus/Apps/git/RcloneBrowser/src/icon_cache.h:3, from /home/markus/Apps/git/RcloneBrowser/src/main_window.h:3, from /home/markus/Apps/git/RcloneBrowser/src/main_window.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qprocess.h:168:10: note: declared here 168 | void start(const QString &command, OpenMode mode = ReadWrite); | ^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [src/CMakeFiles/rclone-browser.dir/build.make:230: src/CMakeFiles/rclone-browser.dir/main_window.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/rclone-browser.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ```
System update output ... ``` ❯ sudo apt update && sudo apt -y install git g++ cmake make qtdeclarative5-dev [sudo] password for markus: Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease Ign:2 https://repo.vivaldi.com/stable/deb stable InRelease Hit:3 https://linux.teamviewer.com/deb stable InRelease Hit:4 https://deb.opera.com/opera-stable stable InRelease Hit:5 https://repo.vivaldi.com/stable/deb stable Release Get:6 http://packages.microsoft.com/repos/code stable InRelease [3.569 B] Hit:7 https://ppa.launchpadcontent.net/mmk2410/intellij-idea/ubuntu jammy InRelease Get:9 http://packages.microsoft.com/repos/code stable/main armhf Packages [68,8 kB] Get:10 http://packages.microsoft.com/repos/code stable/main arm64 Packages [68,5 kB] Get:11 http://packages.microsoft.com/repos/code stable/main amd64 Packages [68,2 kB] Hit:12 https://plasma.tuxedocomputers.com jammy InRelease Get:13 http://download.opensuse.org/repositories/home:/jstaf/xUbuntu_22.04 InRelease [1.515 B] Hit:14 https://txos.tuxedocomputers.com/ubuntu jammy InRelease Get:15 https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Hit:16 https://mirrors.tuxedocomputers.com/ubuntu/mirror/security.ubuntu.com/ubuntu jammy-security InRelease Hit:17 https://mirrors.tuxedocomputers.com/ubuntu/mirror/archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:18 https://deb.tuxedocomputers.com/ubuntu jammy InRelease Hit:19 https://download.docker.com/linux/ubuntu jammy InRelease Hit:20 https://txos-extra.tuxedocomputers.com/ubuntu jammy InRelease Fetched 481 kB in 10s (46,0 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done g++ is already the newest version (4:11.2.0-1ubuntu1). g++ set to manually installed. make is already the newest version (4.3-4.1build1). make set to manually installed. git is already the newest version (1:2.34.1-1ubuntu1.9). git set to manually installed. cmake is already the newest version (3.22.1-1ubuntu1.22.04.1). qtdeclarative5-dev is already the newest version (5.15.9+p22.04+tunstable+git20230418.1838-0). The following packages were automatically installed and are no longer required: gir1.2-udisks-2.0 muon python3-dbus.mainloop.pyqt5 usb-creator-common usb-creator-kde Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```
crobison-ut commented 1 year ago

For what it's worth, getting the exact same results on RHEL 9.2. Everything standard except cmake; I'm running a locally-built cmake 3.26.3.

YuefengW22 commented 5 months ago

The 'QString:: split' function has been deprecated: Line 435 version.split ("\ n", QString:: SkipEmptyParts) This function has been deprecated and replaced with version. split ("\ n", Qt:: SkipEmptyParts) The 'QProcess:: start' function has been deprecated: Line 1217 player ->start (stream, QProcess:: ReadOnly) This function has been deprecated and replaced with player ->start (stream, QStringList(), QProcess:: ReadOnly)