Skip to content

Repository files navigation

Library bindings for Smalltalk

GitHub Workflow StatusCoverage StatusLicense

Available libraries:

  • ZLib

Supported Operating systems:

  • Windows
  • Linux

Supported Smalltalk dialects:

  • Pharo

Installation in Pharo

ZLib

Metacellonewbaseline:'CApi';
repository:'github://lifeware-sa/C-API';
load:'ZLib-Core'.

All libraries + test cases

Metacellonewbaseline:'CApi';
repository:'github://lifeware-sa/C-API';
load.

C-API as a dependency

If you wish to set a dependency to C-API in your application, you simply need to add the following in your baseline:

spec
baseline:'CApi'with: [ spec repository:'github://lifeware-sa/C-API/src' ].

To depend on a partial version of C-API, you may use:

spec baseline:'CApi'with: [
spec
loads:#( 'ZLib-Core' );
repository:'github://lifeware-sa/C-API/src' ].

Troubleshooting

Primitive failed when calling a library

Probably the binaries (.dll or .so.1 files) are missing.

After loading code with Metacello, they are automatically extracted. But if you move the image to another folder or computer, you'll need to extract the binaries again by evaluating

Dll ensureDlls

Message was sent to nil

Probably a subclass of PH_lib isn't initialized.

After loading code with Metacello, they are automatically initialized, to initialize them manually, evaluate

PH_lib initializeCurrentLibs

About

Library bindings for Smalltalk

Topics

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages