Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Errors on Ubuntu from Debrecations #223

Open
marmelin opened this issue May 16, 2023 · 3 comments
Open

Build Errors on Ubuntu from Debrecations #223

marmelin opened this issue May 16, 2023 · 3 comments

Comments

@marmelin
Copy link

🧧 Problem

  • Several compile errors on running cmake

🔢 Information

rcloneBrowser Version

System Information

  • Ubuntu 22.04
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 <min> value or use a ...<max> 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 <min> value or use a ...<max> 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
Copy link

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
Copy link

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)

@LinuxOnTheDesktop
Copy link

I too see those errors - on Mint 22, which is based upon Ubuntu 24.04. The project will not compile. It is a shame, because the RcloneBrowser is a cracking program.

Still, there is the appImage and Mint's (Ubuntu's) repositories contain rclone-browser 1.8.0. However: re the latter, apt wants to install, along with that - i.e. along with the program itself - an old version of rclone, whereas I follow the recommended way of using rclone, which is via a self-updating binary. The rclone-browser appImage works on my system, though it is not themed - but it does, itself, offer a dark mode, which does work. Also, I can't get AppImageLauncher via PPA; 'This PPA does not support [Ubuntu] noble'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants