On 2019-02-26 14:54+0100 Vincent MAGNIN wrote:

Hi Alan,

this is a report of my progress toward interfacing gtk-fortran and PLplot 5.14:

1) I finally installed in a virtual machine a Debian Sid (unstable) because if offers the PLplot 5.14 packages.

2) I have installed the following packages for gtk-fortran and PLplot:

# apt install git gitk cmake gfortran libgtk2.0-dev libgtk-3-dev libplplot-dev plplot-doc

I have successfully built the PLplot examples:

# cd /usr/share/doc/plplot-doc/examples/
# make
# ./x00c

I have tried some examples and successfully created output files using:

< 3> ps         PostScript File (monochrome)
<11> svg        Scalable Vector Graphics (SVG 1.1)

But for an unknown reason failed to plot anything directly on screen (xwin, tk, qt drivers...) although plplot-driver-qt, plplot-driver-wxwidgets and plplot-driver-xwin are installed. With that kind of message (x33c):

Enter device number or keyword: 1

*** PLPLOT ERROR, IMMEDIATE EXIT ***
Can't open display
Program aborted

Hi Vincent:

"Can't open display" normally means you need an X server to be working.

With regard to the Debian Sid package for PLplot, Ole Streicher is the
maintainer for that.  From my last contact with him my understanding
is he is still working on getting the installed PLplot examples
package to work just as well as they do for upstream.  The issue is
that Debian packaging renames some components of PLplot so the example
builds need to compensate for that.  I have CC'd Ole to give him a
chance to summarize on list here where he is in that effort.

But for now, I suggest you simply build Plplot yourself using the
upstream version.  That works essentially perfectly for Debian Testing
= Buster (my platform), and so it should not be that different for
Debian Unstable = Sid.

3) On the gtk-fortran side,**when trying to build the project, CMake found PLplot but stopped me with errors like:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake:175 (message):
 The imported target "PLPLOT::tclmatrix" references the file

"/usr/lib/x86_64-linux-gnu/libtclmatrix.so.10.3.0"

 but this file does not exist.  Possible reasons include:
...

Using apt-file, I saw that it was in the plplot-tcl package so I installed plplot-tcl-dev. Then I was similarly obliged to install octave-plplot.

But I am now stopped by this error:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake:175 (message):
 The imported target "PLPLOT::plplot_pyqt5" references the file

    "/usr/lib/python3/dist-packages/plplot_pyqt5.so"

 but this file does not exist.  Possible reasons include:

...

I have installed the python3-plplot-qt package:

root@osboxes:~# apt-file search plplot_pyqt5
python3-plplot-qt: /usr/lib/python3/dist-packages/plplot_pyqt5.cpython-37m-x86_64-linux-gnu.so
root@osboxes:~# apt install python3-plplot-qt

But CMake still gives me the same error because in that package the file is named plplot_pyqt5.cpython-37m-x86_64-linux-gnu.so instead of plplot_pyqt5.so.

Yes, that is an example of the Debian renaming that is going on in
the packaged version.

Can you tell me what you think about that problem ? (is it a PLplot problem, a CMake problem, a Debian problem, a gtk-fortran problem ?)

It's a Debian packaging issue that is currently being worked on by Ole
(with some essential upstream help from me that is not completely done
yet) with the goal that Debian installed examples will build and run
without issues for both our CMake-based build system for the installed
examples as well as our traditional Makefile and pkg-config build
system for our installed examples.  (Which would mean the same for
your own apps.) But we aren't there yet (because of years of Debian
packaging neglect until Ole took over).

To avoid such Debian downstream packaging issues for now, you should
simply uninstall *all* Debian packages for PLplot, and instead build
and install upstream PLplot from scratch with your own unique
installation prefix for all PLplot components.  If you have any
trouble with such builds please let me know on-list here since I have
a lot of successful experience with such builds for my Debian Buster
platform.  (I do such builds and extensive run-time tests of those
almost daily to test my git commits before I push them.)

Alan
__________________________
Alan W. Irwin

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
__________________________


_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to