Make GTK actually optional. #9

Closed
SimonSapin opened this Issue May 3, 2013 · 1 comment

Projects

None yet

1 participant

@SimonSapin
Member

GDK itself (part of GTK) should be optional for Pixbuf support but it’s not. Thanks @Surfoo for the bug report.

python -c 'import cairocffi.pixbuf'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/cairocffi/pixbuf.py", line 92, in <module>
    gdk = dlopen(ffi, 'gdk-3', 'gdk-x11-2.0', 'libgdk-win32-2.0-0')
  File "/usr/local/lib/python2.7/dist-packages/cairocffi/__init__.py", line 31, in dlopen
    return ffi.dlopen(names[0])  # pragma: no cover
  File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 111, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/usr/local/lib/python2.7/dist-packages/cffi/api.py", line 364, in _make_ffi_library
    raise OSError("library not found: %r" % (name,))
OSError: library not found: 'gdk-3'
@SimonSapin
Member

Fixed in ef7a058.

@SimonSapin SimonSapin closed this May 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment