Please make sure that the Ubuntu installer did not install qt as a dependency as well. In the worst car you have two versions installed and the installer used whatever it finds first. That might cause problems as the versions are incompatible.
Which Ubuntu installer do you mean?
Vanilla Ubuntu 22 comes with 1236 packages related to Qt, Qt5 and Qt6. .
I use a VM and install additional packages via apt only as shown above.
The official installer installs Qt5.12.2 into my home directory.
Is the official Qt installer incompatible with Ubuntu22?
I mean the official installer aka apt/apt-get/dpkg.
These said 1236 packages are compiled in one block by the Ubuntu CI/CD pipeline. The ordering here is crucial as some packages depend on others. So, you get these packages built step by step.
If you side-load another version of Qt the other ~1200 packages are still
using the officially build Qt version
have a package dependency on said Qt version.
Thus, in your system, there will be 2 Qt versions present most probably. I am not telling you that this is your problem but warn you that you have to keep that in mind, also when starting the built binary.
Maybe you look into the files in /home/markus/Qt/5.15.2/gcc_64/lib/cmake. This file should contain the required compiler and linker flags to build against the library and use it accordingly. Have a look for the string Qt/5.15.2/gcc_64/include/QtGui and Qt/5.15.2/gcc_64/include/QtCore with some -I prefix. I suspect it will contain -I/home/markus/Qt/5.15.2/... but could also be -I~/Qt/5.15.2/... or similar.
You could also try to add the -I parameter manually (to make the compiler find the included files manually). In this case my fist point gets more interesting: Linking requires also some flags eventually.
You can run make with VERBOSE=1. This will generate much more output and will show which paths are searched for include files. That might shed some light on the issue.
Hi @christianlupus,
thank you for the idea to run make VERBOSE=1
I have set up a new Ubuntu 22 virtual machine and tried to install Qt5 with the official installer (link above) .
The installer fails with error
./Downloads/qt-unified-linux-x64-4.4.2-online.run: error while loading shared libraries: libxcb-xinerama.so.0: cannot open shared object file: No such file or directory
This enables the Qt installer to start:
sudo apt install libxcb-xinerama0
But later the Qt installer hangs at 88% āInstalling component Androidā
Details show ā13 of 77 components installedā
I found no error message.
I started the Qt installer twice, from the Ubuntu 22 snapshot directly after all initial Ubuntu installs completed.
I assume the Qt install failed and will not attempt make.
Honestly, i am a bit lost here. This is more like a problem on how to set up qt than anything related to nextcloud.
The problem is that i am Android this week and do not have access to fast internet. So, cannot even help you by trying to verify your steps. I am sorry,i have no better idea ATM.
I will not do something in this topic for now. If you run into further issues, feel free to contact me again. I might be able to try it out myself using a docker container. But this will take some timeā¦
cmake ⦠-DCMAKE_INSTALL_PREFIX=~/ncdc -DCMAKE_PREFIX_PATH=~/Qt/5.15.2/gcc_64/lib/cmake -DCMAKE_BUILD_TYPE=Debug -DTOKEN_AUTH_ONLY=ON
VERBOSE=1 make all
The log from the latter is verbose and located here: Managed Nextcloud
The 4th include fails.
Do I miss a -D Key = value pair command line option to specify the location of Qt?
# https://github.com/nextcloud/desktop/blob/master/.github/workflows/linux-appimage.yml just says ubuntu-latest
FROM ubuntu:jammy
# persist apt config for cleaner apt-get lines
# also required for running mk-build-deps non-interactively
# mk-build-deps runs apt with no way to set command line flags
COPY 80custom.conf /etc/apt/apt.conf.d/
# 80custom.conf contains these two lines:
#
# APT::Get::Assume-Yes "true";
# APT::Install-Recommends "false";
RUN apt-get update \
&& apt-get install \
apt-utils \
ca-certificates \
curl \
devscripts \
equivs
ENV PPA_OWNER=nextcloud-devs
RUN apt-get install software-properties-common
RUN add-apt-repository ppa:${PPA_OWNER}/client \
&& apt-get update
ENV PKG_NAME=nextcloud-desktop
RUN mkdir /${PKG_NAME}-src
WORKDIR /${PKG_NAME}-src
# uncomment deb-src line and update package index
RUN sed '2s/^# //' < /etc/apt/sources.list.d/${PPA_OWNER}-ubuntu-client-jammy.list > new-apt-list \
&& mv new-apt-list /etc/apt/sources.list.d/${PPA_OWNER}-ubuntu-client-jammy.list \
&& apt-get update
RUN apt-get source $PKG_NAME
ENV UPSTREAM_VERSION=3.15.2-20241219.195816.6e4ffdfb4
WORKDIR /${PKG_NAME}-src/${PKG_NAME}-${UPSTREAM_VERSION}
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN mk-build-deps --install $PKG_NAME
RUN debuild -b -uc -us
but for some reason it isnāt working now. The docker build output shows:
=> ERROR [ 9/12] RUN apt-get source nextcloud-desktop 2.0s
------
> [ 9/12] RUN apt-get source nextcloud-desktop:
0.415 Reading package lists...
1.692 NOTICE: 'nextcloud-desktop' packaging is maintained in the 'Git' version control system at:
1.692 https://salsa.debian.org/owncloud-team/nextcloud-desktop.git
1.692 Please use:
1.692 git clone https://salsa.debian.org/owncloud-team/nextcloud-desktop.git
1.692 to retrieve the latest (possibly unreleased) updates to the package.
1.692 Need to get 13.9 MB of source archives.
1.692 Err:1 https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu jammy/main nextcloud-desktop 3.15.2-20241218.161228.6e4ffdfb4-1.0~jammy1 (tar)
1.692 404 Not Found [IP: 185.125.190.80 443]
1.828 Err:2 https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu jammy/main nextcloud-desktop 3.15.2-20241218.161228.6e4ffdfb4-1.0~jammy1 (diff)
1.828 404 Not Found [IP: 185.125.190.80 443]
1.828 Err:3 https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu jammy/main nextcloud-desktop 3.15.2-20241218.161228.6e4ffdfb4-1.0~jammy1 (dsc)
1.828 404 Not Found [IP: 185.125.190.80 443]
1.835 W: Download is performed unsandboxed as root as file 'nextcloud-desktop_3.15.2-20241218.161228.6e4ffdfb4.orig.tar.bz2' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
1.835 E: Failed to fetch https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu/pool/main/n/nextcloud-desktop/nextcloud-desktop_3.15.2-20241218.161228.6e4ffdfb4.orig.tar.bz2 404 Not Found [IP: 185.125.190.80 443]
1.835 E: Failed to fetch https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu/pool/main/n/nextcloud-desktop/nextcloud-desktop_3.15.2-20241218.161228.6e4ffdfb4-1.0%7ejammy1.debian.tar.xz 404 Not Found [IP: 185.125.190.80 443]
1.835 E: Failed to fetch https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu/pool/main/n/nextcloud-desktop/nextcloud-desktop_3.15.2-20241218.161228.6e4ffdfb4-1.0%7ejammy1.dsc 404 Not Found [IP: 185.125.190.80 443]
1.835 E: Failed to fetch some archives.
------
Dockerfile:33
--------------------
31 | && apt-get update
32 |
33 | >>> RUN apt-get source $PKG_NAME
34 |
35 | ENV UPSTREAM_VERSION=3.15.2-20241219.195816.6e4ffdfb4
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get source $PKG_NAME" did not complete successfully: exit code: 100