This note records some experiences of my open source software development.
Use the openSUSE tumbleweed as the development environment, because it has newest development packages.
You might get error during installing the additional packages when using old distrobox version, make sure to use the latest distrobox: https://github.com/89luca89/distrobox/tree/main
To disconnect networking for the container, add options --unshare-netns --additional-flags "--network=bridge"
when creating the development environment.
So that we can connect/disconnect the network with docker network connect/disconnect bridge kde
TODO: refer the dockerfiles used by KDE official CI/CD
For KDE development, the offcial points out the limitations and indicates some packages might need to be installed, check https://develop.kde.org/docs/getting-started/building/containers-distrobox/#limitations-of-using-containers
ref: https://develop.kde.org/docs/getting-started/building/help-dependencies/#opensuse
ref: https://develop.kde.org/docs/getting-started/building/cmake-build/#summary
Try -DZYPP_PREFIX=/usr
if you have installed the libzypp
packages but still got error like this:
The ZYPP_PREFIX
is used to find the path of the file ZyppCommon.cmake
(e.g., /usr/lib64/cmake/Zypp/ZyppCommon.cmake
). Check the CMakeLists.txt
and search IF (DEFINED ZYPP_PREFIX)
in it to see why you need this.