User:Nmariusp/More

From KDE Community Wiki

How does kdesrc-build build extra-cmake-modules

        Running cmake targeting Kate - Ninja...
        cd /home/username/kde/build/extra-cmake-modules

run_logged_command(): Module extra-cmake-modules, Command: cmake -B . -S /home/username/kde/src/extra-cmake-modules -G Kate - Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_QT6=ON -DCMAKE_CXX_FLAGS:STRING=-pipe -DCMAKE_INSTALL_PREFIX=/home/username/kde/usr
        Setting environment variable LD_LIBRARY_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu
        Setting environment variable XDG_DATA_DIRS to /home/username/kde/usr/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
        Setting environment variable PKG_CONFIG_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu/pkgconfig
        Setting environment variable PATH to /home/username/kde/usr/bin:/home/username/.local/bin:/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
        Setting environment variable CMAKE_PREFIX_PATH to /home/username/kde/usr
        Setting environment variable QT_PLUGIN_PATH to /home/username/kde/usr/lib64/plugins:/home/username/kde/usr/lib/plugins
        Setting environment variable CMAKE_MODULE_PATH to /home/username/kde/usr/lib64/cmake:/home/username/kde/usr/lib/cmake
# kdesrc-build running: 'cmake' '-B' '.' '-S' '/home/username/kde/src/extra-cmake-modules' '-G' 'Kate - Ninja' '-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON' '-DCMAKE_BUILD_TYPE=Debug' '-DBUILD_WITH_QT6=ON' '-DCMAKE_CXX_FLAGS:STRING=-pipe' '-DCMAKE_INSTALL_PREFIX=/home/username/kde/usr'
# from directory: /home/username/kde/build/extra-cmake-modules
...
        Compiling...
        cd /home/username/kde/build/extra-cmake-modules

run_logged_command(): Module extra-cmake-modules, Command: ninja -j 16
        Setting environment variable CMAKE_PREFIX_PATH to /home/username/kde/usr
        Setting environment variable QT_PLUGIN_PATH to /home/username/kde/usr/lib64/plugins:/home/username/kde/usr/lib/plugins
        Setting environment variable CMAKE_MODULE_PATH to /home/username/kde/usr/lib64/cmake:/home/username/kde/usr/lib/cmake
        Setting environment variable LD_LIBRARY_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu
        Setting environment variable XDG_DATA_DIRS to /home/username/kde/usr/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
        Setting environment variable PKG_CONFIG_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu/pkgconfig
        Setting environment variable PATH to /home/username/kde/usr/bin:/home/username/.local/bin:/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# kdesrc-build running: 'ninja' '-j' '16'
# from directory: /home/username/kde/build/extra-cmake-modules
...
        Installing extra-cmake-modules
        cd /home/username/kde/build/extra-cmake-modules

run_logged_command(): Module extra-cmake-modules, Command: ninja install
        Setting environment variable CMAKE_PREFIX_PATH to /home/username/kde/usr
        Setting environment variable QT_PLUGIN_PATH to /home/username/kde/usr/lib64/plugins:/home/username/kde/usr/lib/plugins:/home/username/kde/usr/lib64/plugins:/home/username/kde/usr/lib/plugins
        Setting environment variable CMAKE_MODULE_PATH to /home/username/kde/usr/lib64/cmake:/home/username/kde/usr/lib/cmake:/home/username/kde/usr/lib64/cmake:/home/username/kde/usr/lib/cmake
        Setting environment variable XDG_DATA_DIRS to /home/username/kde/usr/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
        Setting environment variable PKG_CONFIG_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu/pkgconfig
        Setting environment variable LD_LIBRARY_PATH to /home/username/kde/usr/lib/x86_64-linux-gnu
        Setting environment variable PATH to /home/username/kde/usr/bin:/home/username/.local/bin:/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
# kdesrc-build running: 'ninja' 'install'
# from directory: /home/username/kde/build/extra-cmake-modules

OpenIndiana >= 2024.04

pkg update
pkg install git
pkg install build-essential cmake ninja qt6

How to install KDAB GammRay, the runtime inspector of Qt apps

Kubuntu 22.10 and Qt installed using the Qt online installer from https://www.qt.io

git clone https://github.com/KDAB/GammaRay.git && cd GammaRay

cd ..

rm -rf GammaRay-build ; mkdir GammaRay-build ; cd GammaRay-build
export PATH=$HOME/Qt/6.4.3/gcc_64/bin:$PATH

export QT_PLUGIN_PATH=$HOME/Qt/6.4.3/gcc_64/plugins
export QML2_IMPORT_PATH=$HOME/Qt/6.4.3/gcc_64/qml
export QT_QUICK_CONTROLS_STYLE_PATH=$HOME/Qt/6.4.3/gcc_64/qml/QtQuick/Controls

cmake -DCMAKE_PREFIX_PATH=$HOME/Qt/6.4.3/gcc_64 -DCMAKE_INSTALL_PREFIX=$HOME/.local -DGAMMARAY_BUILD_DOCS=false ../GammaRay
make -j 8
make install

If running gammaray returns error "gdb: Yama security extension is blocking runtime attaching, see /proc/sys/kernel/yama/ptrace_scope". As per https://github.com/KDAB/GammaRay/wiki/Known-Issues#gdb-method-fails-to-attach-to-running-process https://askubuntu.com/questions/41629/after-upgrade-gdb-wont-attach-to-process

emacs /etc/sysctl.d/10-ptrace.conf

edit file to say:

kernel.yama.ptrace_scope = 0