An open API service indexing awesome lists of open source software.

https://github.com/red-data-tools/dlib-glib

GLib bindings for Dlib
https://github.com/red-data-tools/dlib-glib

Last synced: 10 months ago
JSON representation

GLib bindings for Dlib

Awesome Lists containing this project

README

          

# Dlib GLib

Dlib GLib is a wrapper library for [Dlib][dlib]. Dlib GLib
provides C API.

Dlib GLib supports [GObject Introspection][gobject-introspection].
It means that you can create language bindings at runtime or compile
time.

For example, you can use Dlib from Ruby by Dlib GLib and
[gobject-introspection gem][gobject-introspection-gem] with the
following code:

```ruby
# Generate bindings at runtime
require "gi"
DLIB = GI.load("Dlib")

# TODO
```

## Install

### How to build by users

You need to install the followings before you install Dlib GLib:

* [Dlib][dlib]

* [GObject Introspection][gobject-introspection]

* [Meson][meson]

* [Ninja][ninja]

You can build and install Dlib GLib after you install them:

```console
% meson build --buildtype=release
% ninja -C build
% ninja -C build install
```

On macOS you need to set the following environment variable:

```console
% export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig:/opt/X11/lib/pkgconfig
```

### How to build by developers

You need to install the followings before you install Dlib GLib:

* [Dlib][dlib]

* [GObject Introspection][gobject-introspection]

* [Meson][meson]

* [Ninja][ninja]

* [GTK-Doc][gtk-doc]

```console
% meson build -Dgtk_doc=true
% ninja -C build
% ninja -C build install
```

On macOS you need to set the following environment variable:

```console
% export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig:/opt/X11/lib/pkgconfig
% export XML_CATALOG_FILES="/usr/local/etc/xml/catalog"
```

## Usage

TODO

## License

[Boost Software License][Boost Software License]. See LICENSE for details.

[dlib]:http://dlib.net/

[gobject-introspection]:https://wiki.gnome.org/Projects/GObjectIntrospection

[gobject-introspection-gem]:https://rubygems.org/gems/gobject-introspection

[meson]:http://mesonbuild.com/

[ninja]:https://ninja-build.org/

[gtk-doc]:https://www.gtk.org/gtk-doc/

[Boost Software License]:https://www.boost.org/users/license.html