NAME
Alien::libhisto - Find or build libhisto fast C histogramming library
SYNOPSIS
In your Makefile.PL:
use ExtUtils::MakeMaker;
use Alien::Base::Wrapper qw( Alien::libhisto !export );
WriteMakefile(
Alien::Base::Wrapper->mm_args2(
NAME => 'My::Module',
...
),
);
In your FFI script:
use FFI::Platypus 2.00;
use Alien::libhisto;
my $ffi = FFI::Platypus->new( api => 2 );
$ffi->lib( Alien::libhisto->dynamic_libs );
$ffi->attach( histo_version => [] => 'string' );
print histo_version();
DESCRIPTION
Alien::libhisto provides the libhisto C histogramming, curve-fitting, and streaming quantile sketch library for use by Perl XS and FFI modules.
It probes for an existing installation of libhisto via pkg-config. If not found, it builds libhisto from source using CMake and installs it into Perl's shared distribution directory.
SEE ALSO
AUTHOR
Steffen Mueller <cpan@steffen-mueller.net>
LICENSE
MIT License.