zfp icon indicating copy to clipboard operation
zfp copied to clipboard

Please add pkg-config .pc file

Open ast opened this issue 7 years ago • 5 comments

Something like this:

Name: zfp
Description: Library for compressed numerical arrays that support high throughput read and write random access
Requires:
Version: 0.5.3
Libs:  -L/usr/local/lib -lzfp
Cflags:  -I/usr/local/include

ast avatar May 13 '18 14:05 ast

Thanks for the suggestion. I do not have any experience with pkg-config, but from a quick glance at the documentation I would suggest adding this to the repo:

% cat zfp.pc prefix=/usr/local includedir=${prefix}/include libdir=${prefix}/lib

Name: zfp Description: Library for compressed numerical arrays that support high throughput read and write random access URL: https://github.com/LLNL/zfp Requires: Version: 0.5.3 Cflags: -I${includedir} Libs: -L${libdir} -lzfp

One concern is how this interacts with CMake on Linux, where libzfp.so gets installed under /usr/local/lib64. Do you have any suggestions on how to deal with this? Will pkg-config find it there even when libdir=/usr/local/lib?

lindstro avatar May 19 '18 01:05 lindstro

I'd like to go ahead and close out this issue, but am unsure how to best address it. @ast, if you could submit a .pc file that works with CMake, then I'd be happy to include it in the repo.

lindstro avatar Jul 25 '18 15:07 lindstro

Sorry forgot about this! I'll use zfp again in a project I'm working on in august. If you can keep the issue open until the middle of august I'll see if I can come up with something. It's a pretty standard thing so I'm sure there's some functionality in Cmake for generating the pkg-config file.

Specifically I'll experiment with using zfp for streaming a real time power density spectrum (1d array).

ast avatar Jul 25 '18 15:07 ast

ping @ast ;-)

jayvdb avatar Aug 02 '19 02:08 jayvdb

That's amazing!

ast avatar Aug 02 '19 08:08 ast