From 687209e1cb615a7ef545344fa1b8e364cd193312 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 12 Jun 2022 10:41:02 +0100 Subject: [PATCH] add some notes on getting nifti working --- meson.build | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f41c29a0..968310f7 100644 --- a/meson.build +++ b/meson.build @@ -488,8 +488,23 @@ endif # niftiio.pc is not always present, so fall back to CMake's find_package() # functionality +# # cmake find fails on ubuntu due to /usr/lib/x86_64-linux-gnu madness, so it's -# simplest to create a libnifti.pc in this case +# simplest to create a libniftiio.pc in this case +# +# create /usr/lib/x86_64-linux-gnu/pkgconfig/libniftiio.pc: +# +# prefix=/usr +# exec_prefix=${prefix} +# libdir=${prefix}/lib/x86_64-linux-gnu +# includedir=${prefix}/include/nifti +# Name: libniftiio +# Description: nifti library +# Version: 3.0.1 +# Requires: xproto +# Cflags: -I${includedir} +# Libs: -L${libdir} -lniftiio -lznz +# # TODO: simplify this when requiring meson>=0.60.0 libnifti_dep = dependency('niftiio', required: get_option('nifti')) if not libnifti_dep.found()