HiPlease try to build KernelShark following the instructions given in the README file in the git repository and let me know if you still run into issues.
Thanks! Yordan On 4/30/24 16:41, David Aldrich wrote:
Hi Working on WSL with Ubuntu 22.04 LTS, I am unable to build KernelShark. I will try installing it as a package, but perhaps my experience below will be useful for the project. I cloned KernelShark: git clone git://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git I followed the instructions at: https://kernelshark.org/build.html which requires: sudo apt-get install qtbase5-dev -y When I attempt to build KernelShark with: cmake ../ I see: CMake Warning at CMakeLists.txt:76 (find_package): Could not find a configuration file for package "Qt6Widgets" that is compatible with requested version "6.3.0". The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake, version: 6.2.4 /lib/x86_64-linux-gnu/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake, version: 6.2.4 -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0") -- Could NOT find Qt6StateMachine (missing: Qt6StateMachine_DIR) CMake Error at CMakeLists.txt:77 (find_package): Found package configuration file: /usr/lib/x86_64-linux-gnu/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "StateMachine". Expected Config file at "/usr/lib/x86_64-linux-gnu/cmake/Qt6StateMachine/Qt6StateMachineConfig.cmake" does NOT exist This was despite installing: apt install qt6-base-dev