Re: [PATCH v1 2/2] trace-cmd: Add initial support for meson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 21 Dec 2022 18:08:44 +0100
Daniel Wagner <dwagner@xxxxxxx> wrote:

> Add support for building the project with meson.
> 
> trace-cmd depends on a statically linked libtracecmd
> (e.g. trace_perf_open, trace_perf_close, trace_perf_init).
> 
> That means before kicking off the trace-cmd build a statically build
> libtracecmd needs to be available:
> 
>   cd lib
>   meson setup --prefix=/tmp/trace-cmd --default-library=static .build
>   meson compile -C .build
>   meson install -C .build
> 

I get this:

   Run-time dependency audit found: NO (tried pkgconfig and cmake)

   meson.build:77:0: ERROR: Dependency "audit" not found, tried pkgconfig and cmake

audit is an optional dependency. Is there a way to do that? And add
defines set if it is not?

What's the reason for the "get_option('audit')"?

Doesn't seem to be working as expected.

> then
> 
>   cd ..
>   export PKG_PATH_PATH=/tmp/trace-cmd/lib64/pkgconfig
>   meson setup .build


> +cc = meson.get_compiler('c')
> +
> +prefixdir = get_option('prefix')
> +bindir    = join_paths(prefixdir, get_option('bindir'))
> +mandir    = join_paths(prefixdir, get_option('mandir'))
> +htmldir   = join_paths(prefixdir, get_option('htmldir'))
> +
> +conf = configuration_data()
> +
> +libtraceevent_dep = dependency('libtraceevent', version: '>= 1.7.0', required: true)
> +libtracefs_dep = dependency('libtracefs', version: '>= 1.6.3', required: true)
> +libtracecmd_dep = dependency('libtracecmd', version: '>= 1.3.0', required: true,

I'm guessing you just looked at the latest version and added them?

Min versions are:

  libtraceevent is 1.5
  libtracefs 1.6

And since this holds libtracecmd, does it really need a dependency?

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux