Re: [osg-users] [build] Build problem with gdk-x11-2.0
Hi Robert -- Confirmed -- that change works for me. Thanks, Davin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11732#11732 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Build problem with gdk-x11-2.0
Hi Robert -- My CMake-foo is weak, so a bit of hand-holding is appreciated in finding the info you seek. Agreed whole-heartedly with your comment about the right way to fix the problem I encountered -- my low comfort level with CMake led me to stumble onto the quick and dirty workaround I described. What I can offer is this: * in the svg plugin, the libgdk*.so libraries appear to be successfully referenced and linked in as seen in that plugin's link.txt where "-L/opt/gnome/lib64" appears in the CMake-generated version of that file (i.e. I didn't touch that one at all) * in the problematic pdf plugin's CMakeLists.txt, I see POPPLER_LIB_DIRS referenced like this: LINK_DIRECTORIES(${CAIRO_LIBRARY_DIRS} ${POPPLER_LIB_DIRS}) * looking in the top-level CMakeCache.txt, I can find no such POPPLER_LIB_DIRS definition however I do find that both POPPLER_LDFLAGS and POPPLER_LIBRARY_DIRS contain references to /opt/gnome/lib64 (the link directory I needed for the pdf plugin to build on my particular system) in their definitions; in particular, this line: POPPLER_LIBRARY_DIRS:INTERNAL=/opt/gnome/lib64 I do not know if POPPLER_LIB_DIRS should be replaced with POPPLER_LIBRARY_DIRS, but I hope the above proves helpful. Please guide me to dig for more information -- I'm happy to help. Davin -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11530#11530 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] Build problem with gdk-x11-2.0
I ran into the same issue on an OpenSuSE 10.2 x86_64 system when working with Stable Release 2.8.0 of osg. In case it's of help to anyone, I can offer that the following workaround helped me past the problem: Despite /opt/gnome/lib64 being in my system's ld.so.conf, the link step apparently failed to find libgdk-x11-2.0.so in that directory when attempting to produce osgPlugins-2.8.0/osgdb_pdf.so. Manually modifying the link.txt file (originally created by the invocation of cmake in the top-level configure script) in the OpenSceneGraph-2.8.0/src/osgPlugins/pdf/CMakeFiles/osgdb_pdf.dir/ directory to insert "-L/opt/gnome/lib64" in front of the references to gdk-x11-2.0 manages to get the c++ linker to find the library. After such modification that file, typing "make" again causes the build to pick up where it left off and run through to successful completion. Hope this proves helpful. I have not tried building the 2.8.1-rc3 code that's currently available to see if this issue is reproducible there. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11316#11316 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org