From: Alan W. I. <Ala...@gm...> - 2021-10-28 22:42:29
|
On 2021-10-28 18:31+0300 Sergey Shcherbina wrote: > Hi all! > > We worked with plplot many years without any problems. Now we used compiled x16c.c for testing of it in a new > > area: Linux 5.4.0-89-generic #100~18.04.1-Ubuntu SMP Wed Sep 29 10:59:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux > > What we have after starting compiled x16c.c: > > Plotting Options: > < 1> ps PostScript File (monochrome) > < 2> psc PostScript File (color) > < 3> xfig Fig file > < 4> null Null device > < 5> mem User-supplied memory device > < 6> wxwidgets wxWidgets Driver > < 7> svg Scalable Vector Graphics (SVG 1.1) > < 8> bmpqt Qt Windows bitmap driver > < 9> jpgqt Qt jpg driver > <10> pngqt Qt png driver > <11> ppmqt Qt ppm driver > <12> tiffqt Qt tiff driver > <13> svgqt Qt SVG driver > <14> qtwidget Qt Widget > <15> pdfqt Qt PDF driver > <16> extqt External Qt driver > <17> memqt Memory Qt driver > > Enter device number or keyword: ??? > > We use plspal0( "cmap0_black_on_white.pal" ) and plspal1( "cmap1_gray.pal", 1 ) for plotting device definitions as you proposed. > > What should be added in the compilation options for solving this problem? It worked without these questions before last OS changing. > > Our compilaton options: > > /usr/bin/gcc -Wall `pkg-config --cflags --libs plplot` -I/usr/local/include/gsl -c $1 > /usr/bin/gcc -L/usr/lib ./$FirstOfile `pkg-config --cflags --libs plplot` -lgsl -lgslcblas -lm $(mysql_config --libs) -o ... Please include more details in your report such as the PLplot version currently not working for you; its provenance (e.g., is it from an installed Ubuntu package, a version you built and installed yourself, etc.); exact details of the build of your x16c application (e.g., expand $1 and $FirstOfile above, and give the generated executable name); and exactly how you ran (e.g., include all command-line options) that built executable. Also, what version (and provenance) of PLplot worked for you before? Note, if there is some PLplot packaging error with Ubuntu we cannot help you very much. However, we can help you if you build and install Plplot yourself from either the latest release (5.15.0) or ideally the git master tip version. For example, such installs include C examples (such as x16c) that are all ready to build using pkg-config, and also include tests of such pkg-config-based builds. N.B. we continue to maintain our installed pkg-config-based build and test system for our standard examples, and if you have found a bug in that, we will fix it. However, that build and test system is quite low power and therefore we recommend instead our high-power CMake-based build and test system for our installed examples. See <https://sourceforge.net/p/plplot/wiki/Testing_PLplot/> for further details about our various test systems. Cheers, Alan __________________________ Alan W. Irwin Research affiliation with the Department of Physics and Astronomy, University of Victoria, Victoria, BC, Canada. 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.org); 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 __________________________ |