On 2013-05-21 02:45-0700 phil rosenberg wrote: > Hi > I'm trying to build plplot on my work linux machine running 64 bit CentOS. > cmake seems to run fine, but I'm getting the following build error when I run > make > Linking C executable pltek > ../src/libplplotd.so.11.0.0: undefined reference to > `pango_layout_get_baseline' > ../src/libplplotd.so.11.0.0: undefined reference to `cairo_ps_surface_set_eps' > collect2: ld returned 1 exit status > make[2]: *** [utils/pltek] Error 1 > make[1]: *** [utils/CMakeFiles/pltek.dir/all] Error 2 > > Is this just related to use Textronix? If so then I don't think I have any > need for it and is there an easy way to disable it? > > My cmake call looks like > cmake ../plplot -DPL_DOUBLE=ON -DBUILD_TEST=ON > -DCMAKE_INSTALL_PREFIX=$LIB_PATH/plplotinstall -DENABLE_wxwidgets=ON > -DHAVE_SHAPELIB=OFF -DENABLE_ada=OFF > > I tried disabling all the txtronix related flags based on the wiki page > http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot#Textronix_and_Textronix_emulator_devices, > but that didn't help. > > Any help much appreciated
The problem with CentOS (a clone of RedHat Enterprise Linux) and RedHat Enterprise Linux itself is they tend to have really old versions of Linux libraries. From the above missing references I suspect this is the issue with the pango and cairo libraries which our cairo device driver depends on. So I suggest you try -DDEFAULT_NO_CAIRO_DEVICES=ON to turn off all cairo devices to see if that gets you past the above error. I believe that reference to utils/pltek is because building that executable found the linking issue first. But attempting to build anything else would have also run across the same error so I don't think the fundamental linking issue has anything to do with pltek. Therefore, I suggest you do not specify any textronix flags (i.e. use the defaults) for your new build (in an initially empty build tree, of course) with -DDEFAULT_NO_CAIRO_DEVICES=ON. Hope that idea works for you. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel