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
- Host: GitHub
- URL: https://github.com/red-data-tools/dlib-glib
- Owner: red-data-tools
- Created: 2018-07-30T11:48:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T12:54:37.000Z (over 7 years ago)
- Last Synced: 2025-02-15T19:48:43.052Z (over 1 year ago)
- Language: C++
- Size: 126 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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