When building from sources, okular just shows an error window. STEPS TO REPRODUCE ./kdesrc-build --initial-setup # change the following lines in ~/.kdesrc-buildrc : # (sources in my home, the rest on another drive) kdedir /usr/local/build/kde/install # Where to install KF5-based software qtdir /usr/local/build/kde/qt5 # Where to find Qt5 source-dir ~/share/prog/kde/dev # Where sources are downloaded build-dir /usr/local/build/kde/build # Where the source build is run ./kdesrc-build okular ./kdesrc-build --run okular fails with a small message window with "Unable to find the okular component: The shared library was not found", instead of opening a main window. SOFTWARE/OS VERSIONS openSUSE-15.1 KDE Frameworks 5.70.0 Qt 5.13.2 (built against 5.13.2) kdesrc-build 19.12 (v19.12) ADDITIONAL INFORMATION The build executable /usr/local/build/kde/build/okular/bin/okular works. workaround: cd /usr/local/build/kde/install/lib64 ln -s plugins/okularpart.so .
Does it help if you do export QT_PLUGIN_PATH=/usr/local/build/kde/install/lib64/plugins ? Obviously kdesrc-build --run is supposed to do this, but this is to help debug if the problem is indeed with QT_PLUGIN_PATH. I've been trying to pass --verbose --debug to kdesrc-build but that didn't help. Michael? ;-)
# Indeed, removed the link, fails, then export QT_PLUGIN_PATH=/usr/local/build/kde/install/lib64/plugins ./kdesrc-build --run okular works
Additional information: For okular, it was important to set QT_PLUGIN_PATH before the build, not after; otherwise the tests failed, because ctest is exclusively using a QT_PLUGIN_PATH defined during build.
Currently, if following wiki, all variables are set automatically.
The first steps fail here (openSUSE Leap 15.5), on kdesrc-build master 4324ceb ("Revert "Don't build all of extragear and playground by default"", 2023-08-29) ./kdesrc-build --initial-setup ... No provider of 'cmake(packagekitqt6)' found. 'libdisplay-info-devel' not found in package names. Trying capabilities. No provider of 'libdisplay-info-devel' found. 'pkgconfig(libattr)' not found in package names. Trying capabilities. No provider of 'pkgconfig(libattr)' found. 'pkgconfig(pam)' not found in package names. Trying capabilities. No provider of 'pkgconfig(pam)' found. * Failed with exit status 104. Ran into an error with the installer! * Creating sample configuration file: "~/.config/kdesrc-buildrc"... * Update your ~/.bashrc? (y/N) y - Added kdesrc-build directory into PATH - Added kdesrc-run shell function * Shell rc-file is successfully setup. As an additional feed back, I find that it adds too much clutter to .bashrc. I'm giving up.
Have you followed this article carefully? https://community.kde.org/Get_Involved/development/Set_up_a_development_environment I did not tested on OpenSuse, but on Arch Linux. Have you tried to use suggested paths instead of `/usr/local`? If the issue still persist, please specify it in more details and reopen.
(In reply to Andrew Shark from comment #6) > Have you followed this article carefully? > https://community.kde.org/Get_Involved/development/Set_up_a_development_environment Yes, this is the one I followed, with care. > I did not tested on OpenSuse, but on Arch Linux. > Have you tried to use suggested paths instead of `/usr/local`? If the issue > still persist, please specify it in more details and reopen. I do not understand. As said in comment #5, it fails at the ./kdesrc-build --initial-setup so well before any paths are mentioned ? Another thing that is unclear: my desktop is KDE Framework Version 5.103.0; yet kdesrc-build insist in getting qt6-related packages ? (I do not see any option to restrict to kf5, and there is no packagekitqt6 in base Leap-15.5, maybe it would just need an additional repo) Are you really interested in getting to the bottom of this ? (I'd rather spend time on this only if the developers find it helpful)
Your original message was about building okular. This is another thing. > so well before any paths are mentioned. Yes, I see. I can reproduce on the virtual machine with openSUSE Leap 15.5. > yet kdesrc-build insist in getting qt6-related packages? I do not know if this is intentional. Looks like this is a bug.
For kdesrc-build to stay on kf5/qt5 stuff, add the line branch-group stable-kf5-qt5 or branch-group kf5-qt5 to the "global" section. The first one will pick stable branches, the second will pick development branches. (For KF5 itself there's no difference, it'll be the kf5 branch)
OpenSUSE Leap is currently not supported. The package list opensuse.ini in repo-metadata is assumed for open suse TumbleWeed, not for OpenSuse Leap. If you want to add support for the OpenSuse Leap, please provide a list of packages and make MR here: https://invent.kde.org/sysadmin/repo-metadata/-/blob/master/distro-dependencies/opensuse.ini?ref_type=heads Also, because of the bug 481272 you would need to use kde-builder.