From: Alan W. I. <ir...@be...> - 2014-04-25 22:57:42
|
On 2014-04-25 11:17-0700 Walt Brainerd wrote: > I have built plplot for the first time and successfully > run most of the Fortran examples by selecting the > wingcc option. Very nice stuff! > > Now, I would like to run the GTK-Fortran examples that > use the cairo driver. I looked at lots of posts and docs, > but nothing I have tried works. In one place in the > documentation, it says something like : To add a > device driver, set the parameter ... What parameter? > Where is it set? > > Here is some information about what I tried. I would be > happy to provide more, but don't really know where the > problem is. > > Windows 7 with cygwin. > > cmake build command: > C:\"Program Files (x86)"\"CMake 2.8"\bin\cmake -G "MinGW Makefiles" > -DDEFAULT_NO_BINDINGS=ON -DENABLE_f95=ON > -DCMAKE_INSTALL_PREFIX=install .. > > Here are some of the lines from the cmake output: > > -- SWIG was not found. Please specify Swig executable location > . . . > -- checking for module 'pango' > -- found pango, version 1.30.1 > -- WARNING: pkg-config does not find pango. > -- checking for module 'pangoft2' > -- found pangoft2, version 1.30.1 > -- WARNING: pkg-config does not find pangoft2. > . . . > ENABLE_DYNDRIVERS: ON > DRIVERS_LIST: mem;null;ps;svg;wingcc;xfig > DEVICES_LIST: mem;null;ps;svg;wingcc;xfig > > Library options: > BUILD_SHARED_LIBS: ON PL_DOUBLE: ON > ======================================= > The six drivers in DRIVERS_LIST show up in driversd. > > More info: > > $ echo $PKG_CONFIG_PATH > C:\walt;C:\FortranTools\gtk\lib\pkgconfig > > Walt@HP_Laptop/cygdrive/c/walt/FortranTools51/Src/Plplot/plplot-5.10.0/build > $ ls /cygdrive/c/FortranTools/gtk/lib/pkgconfig > atk.pc cairo-svg.pc gdk-3.0.pc > gmodule-export-2.0.pc libffi.pc pango.pc > cairo-fc.pc cairo-win32-font.pc gdk-pixbuf-2.0.pc > gmodule-no-export-2.0.pc liblzma.pc pangocairo.pc > cairo-ft.pc cairo-win32.pc gdk-win32-3.0.pc gobject-2.0.pc > libpng.pc pangoft2.pc > cairo-gobject.pc cairo.pc gio-2.0.pc gthread-2.0.pc > libpng15.pc pangowin32.pc > cairo-pdf.pc fontconfig.pc gio-windows-2.0.pc gtk+-3.0.pc > librsvg-2.0.pc pixman-1.pc > cairo-png.pc freetype2.pc glib-2.0.pc > gtk+-win32-3.0.pc libtiff-4.pc zlib.pc > cairo-ps.pc gail-3.0.pc gmodule-2.0.pc libcroco-0.6.pc > libxml-2.0.pc > > Walt@HP_Laptop/cygdrive/c/walt/FortranTools51/Src/Plplot/plplot-5.10.0/build > $ pkg-config --libs pango > -LC:/FortranTools/gtk/lib -lpango-1.0 -lm -lgobject-2.0 -lglib-2.0 -lintl > > Walt@HP_Laptop/cygdrive/c/walt/FortranTools51/Src/Plplot/plplot-5.10.0/build > $ pkg-config --libs cairo > -LC:/FortranTools/gtk/lib -lcairo > > ============================================= > Do I need SWIG? Only if you are interested in Python, Java, Octave, or Lua. > Why does it say it can't find pango when it just said it *did* > find pango? That definitely should not happen so I suspect there is something wrong with the way you are using CMake or the version of CMake that you are using. I don't have any experience with Cygwin. Arjen is our expert for that platform so I assume he will correct anything I say once he becomes aware of this thread (probably next week since he rarely looks at PLplot mailing lists on weekends). But until he can give definitive replies to your questions, my guess is you are not using the correct generator for Cygwin. If I recall correctly what Arjen did, I think you should be using the "Unix Makefiles" generator instead. Also, one other Cygwin-related tip I happen to be aware of is make sure you are using a cmake version that is installed from the Cygwin site rather than a native Windows version of cmake that you can download from the Kitware site but which does not work correctly on Cygwin. In general, Arjen, has gotten most of PLplot to work without issues on Cygwin so if those two suggestions don't help, don't give up, and I am sure that Arjen will eventually be able to help 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 __________________________ |