matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
491 stars 72 forks source link

pango/cairo support broken #66

Closed regnirpsj closed 10 years ago

regnirpsj commented 10 years ago

hi matus,

seems like to pango/cairo support is broken (source/lib/oglplus/text.cpp won't compile because pango/pangocairo.h cannot be found). under fedora 20 this header is located under /usr/include/pango-1.0/pango/pangocairo.h, so it's not in the default include path. i tried to add PANGO_CAIRO via do_use_single_dependency in the CMakeLists.txt, but that doesn't seem to do the trick.

can't attach the diff (only image types are supported); should i fork and create a pull request?

matus-chochlik commented 10 years ago

Hi, try re-running configure and specify the path to the header directory with --include-dir=/usr/include/pango-1.0 and similarly the lib directory with the --library-dir=... options.

HTH

regnirpsj commented 10 years ago

but that shouldn't be necessary. pkg_find_module already provides these (e.g., PANGO_CAIRO_INCLUDE_DIRS, PANGO_CAIRO_LIBRARIES), they only need to be added in the build setup. i would have thought that do_use_single_dependency does that already.

matus-chochlik commented 10 years ago

It should, what does pkg-config --cflags --libs pangocairo return on your system ?

matus-chochlik commented 10 years ago

OK, I've managed to reproduce this bug, and I've fixed it (at least here) in commit f95d18bad08ccb65ec2087149989c92a5e3d19f9 please pull from the develop branch and let me know if it helped.

regnirpsj commented 10 years ago

hi matus, yes that works. thanks.