in reply to Re^2: FFI::Platypus; trouble finding non-standard, but present, libs
in thread [Solved] FFI::Platypus; trouble finding non-standard, but present, libs

Works for me under Ubuntu (via Windows Subsystem for Linux).

It might be worth checking if the file name matches the search criteria used by FFI::CheckLib. The system uses these regexps (edit - on Mac, which I assume you're using)):

qr{^lib(.*?)\.so(?:\.([0-9]+(?:\.[0-9]+)*))?$} qr{^lib(.*?)(?:\.([0-9]+(?:\.[0-9]+)*))?\.(?:dylib|bundle)$}

(see https://metacpan.org/release/FFI-CheckLib/source/lib/FFI/CheckLib.pm#L50 and https://metacpan.org/release/FFI-CheckLib/source/lib/FFI/CheckLib.pm#L70).

  • Comment on Re^3: FFI::Platypus; trouble finding non-standard, but present, libs
  • Download Code

Replies are listed 'Best First'.
Re^4: FFI::Platypus; trouble finding non-standard, but present, libs
by Your Mother (Archbishop) on Oct 30, 2019 at 16:37 UTC

    When you say it works, do you mean you have DCMTK installed and that worked? I have no trouble with FFI::CheckLib finding standard stuff like xml2 or jpeg or archive. I will look at the regexes versus the lib files too, thanks for suggesting it.

      Yes, I installed DCMTK using apt-get, the built perl 5.30.0 using perlbrew, installed FFI::CheckLib, and ran your test code.

      But now I see you've solved the issue by updating the regex. It's probably worth reporting to the maintainer. https://github.com/Perl5-FFI/FFI-CheckLib/issues/.