Re: Cannot build KernelShark on Ubuntu 22.04
David Aldrich <[email protected]> Tue, 30 Apr 2024 15:08:51 +0100
| Newsgroups | org.kernel.vger.linux-trace-users |
|---|---|
| Message-ID | <CAJK_ieinnyDq3_jW+T7OPWWYf3rHaVB-PzPH-A0OcJbYmW6+kg@mail.gmail.com> |
Thanks Yordan
I am now using the instructions at GitHub:
https://github.com/yordan-karadzhov/kernel-shark/tree/kernelshark
I installed:
sudo apt-get install qt6-base-dev qt6-scxml-dev
sudo apt-get install libtraceevent-dev libtracefs-dev libtracecmd-dev trace=
-cmd
but I see:
$ cmake ../
project: Kernel Shark: (version: 2.3.1)
CMake Error at CMakeLists.txt:48 (find_package):
By not providing "FindTraceEvent.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"TraceEvent", but CMake did not find one.
Could not find a package configuration file provided by "TraceEvent" with
any of the following names:
TraceEventConfig.cmake
traceevent-config.cmake
Add the installation prefix of "TraceEvent" to CMAKE_PREFIX_PATH or set
"TraceEvent_DIR" to a directory containing one of the above files. If
"TraceEvent" provides a separate development package or SDK, be sure it h=
as
been installed.
On Tue, Apr 30, 2024 at 2:53=E2=80=AFPM Yordan Karadzhov <[email protected]=
m> wrote:
>
> Hi
>
> Please 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 N=
OT
> > FOUND. Reason given by package:
> >
> > Failed to find Qt component "StateMachine".
> >
> > Expected Config file at
> > "/usr/lib/x86_64-linux-gnu/cmake/Qt6StateMachine/Qt6StateMachineConf=
ig.cmake"
> > does NOT exist
> >
> > This was despite installing:
> >
> > apt install qt6-base-dev
> >