https://bugs.kde.org/show_bug.cgi?id=508002

--- Comment #6 from daphne.am...@uvvnet.com.br ---
What I did

I removed the Okular installed via apt:
I used sudo apt remove --purge okular and then sudo apt autoremove to clean up
dependencies.

I prepared to compile Okular directly from the Git master branch:
I cloned the official Okular repository:

git clone https://invent.kde.org/graphics/okular.git
cd okular

I created the build folder and tried to compile with cmake and make:

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc)
sudo make install

I got an error saying Qt6 was not installed (qtpaths6 not found).

I tried to install Qt6 and KDE Frameworks 6 (KF6):
I ran the command to install Qt6 and KF6 packages, but several packages like
libkf6activities-dev were not found in the official repositories.

I used apt build-dep okular:
To install dependencies for the stable Okular version that comes with Ubuntu:

sudo apt build-dep okular
I noticed this does not include the newer KF6 packages used by the master
branch.

I considered using Flatpak:
To avoid the hassle of manually installing dependencies and compiling, I
decided the simplest and most updated way is to install Okular via Flatpak:

flatpak install flathub org.kde.okular

Problems and errors I encountered

CMake failed to configure because Qt6 was not installed or configured:

No Qt6 qtpaths executable found. Can't check QT_INSTALL_PREFIX as required
Error trying to install KDE Frameworks 6 packages like:

Error: Unable to locate package libkf6activities-dev
indicating those packages don’t yet exist in the Ubuntu repositories I use.

Old dependencies may be accumulated in the system and are not automatically
removed.

The command apt build-dep okular only installs dependencies for the official
repository version, not for the master branch Okular with Qt6/KF6.

An important issue: in the versions I tested (both the apt-installed and
Flatpak versions), double-clicking to quickly highlight a word does not work.
(Note: double-click works in the “text selection” mode, but not for the
HIGHLIGHTER tool.)

Notes for the Okular developers

The Okular master branch heavily depends on Qt6 and KDE Frameworks 6, but many
of these packages are not available in official Ubuntu repositories.

This makes compiling the master branch directly on Ubuntu distributions
difficult without using PPAs, manual builds, or Flatpak.

The double-click quick word selection problem is a limitation present in the
versions I tested.

Comment: I asked ChatGPT to summarize what I tried to do, and it created this
text.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to