Hi Robert, I don't have experience configuring poppler-glib on my Ubuntu 8.04 right now. In fact I only have built poppler under Windows and can work with osgdb_pdf in that case at present. It is a pain to configure pkgconfig under Windows so I've made some external CMake scripts to generate this plugin.
I personally would like to avoid using pkgconfig for current svg, pdf plugins and the gtk example, and wish to have some CMake modules instead. Maybe I could help complete some of them in this weekend? It should be helpful for Windows users to find their dependencies more easily. Cheers, Wang Rui 2010/11/11 Robert Osfield <[email protected]>: > Hi Wang Rui, > >> I'm trying a fresh check out and see what happens. > > I still get a link failure due, and this looks to due to > CHECK_CXX_SOURCE_RUNS(..) check in the > src/osgPlugins/pdf/CMakeLists.txt that fails due to poppler.h not > being found, despite the POPPLER_FOUND being set. > > Currently our OpenSceneGraph/CMakeLists.txt file uses pkg-config to > find poppler-glib and when I run pkg-config on the command line on my > Kubnutu 10.10 system it reports: > > poppler-glib --cflags > Package gdk-2.0 was not found in the pkg-config search path. > Perhaps you should add the directory containing `gdk-2.0.pc' > to the PKG_CONFIG_PATH environment variable > Package 'gdk-2.0', required by 'poppler-glib', not found > > I installed poppler-glib from the standard Ubuntu repository so I can > only guess that there is something broken in set up of the gdk-2.0.pc > file. > > Which version of Ubunutu are you using? > > At my end I think I'll create a CMakeModules/FindPoppler-glib.cmake > and see how I get on with avoid the use of pkg-config. > > Robert. > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
