Dear PLplot developers,
as you may know, since 2012 the gtk-fortran project (https://github.com/vmagnin/gtk-fortran/) is offering to Fortran developers an access to PLplot in a GTK+ window. Everything was OK with PLplot 5.10 but since PLplot 5.12 and 5.13 the interface between gtk-fortran and PLplot is broken. I am now working on that problem. Please find below the report of that problem (https://github.com/vmagnin/gtk-fortran/issues/116):
I have worked with Kubuntu 18.10 (64 bits), PLplot 5.13.0, GTK+ 2.24.32.
I have created and pushed a gtk2devel branch to github.
@ax006ho, I have applied your patch diff.txt to the gtk2devel branch:
git apply --ignore-space-change --ignore-whitespace 00git.diff
The name of the package under Ubuntu is plplot, so I was obliged to modify the following lines in the main CMakeLists.txt file:
142 # find_package(PlplotF95 QUIET) 143 find_package(plplot)
But I obtained the following error:
gtk-fortran/build$ cmake .. -- Compiler: GNU 8.2.0 /usr/bin/f95 -- Build type is: release -- Compilation flags: -pthread -O3 -mtune=native -march=native CMake Error at /usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake:279 (message): The imported target "tclmatrix" references the file "/usr/lib/x86_64-linux-gnu/libtclmatrix.so.10.3.0" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/plplot/plplotConfig.cmake:20 (include) CMakeLists.txt:143 (find_package) -- Configuring incomplete, errors occurred!
The missing file is in the plplot-tcl package:
$ apt-file search libtclmatrix.so.10.3.0 plplot-tcl: /usr/lib/x86_64-linux-gnu/libtclmatrix.so.10.3.0
So, I have installed the plplot-tcl-dev package.
But there is now the following error:
gtk-fortran/build$ cmake .. -- Compiler: GNU 8.2.0 /usr/bin/f95 -- Build type is: release -- Compilation flags: -pthread -O3 -mtune=native -march=native CMake Error at /usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake:279 (message): The imported target "_Pltk_init2.7" references the file "/usr/lib/python2.7/dist-packages/_Pltk_init.so" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/x86_64-linux-gnu/cmake/plplot/export_plplot.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/plplot/plplotConfig.cmake:20 (include) CMakeLists.txt:143 (find_package) -- Configuring incomplete, errors occurred!
I have searched that file in Ubuntu:
$ apt-file search _Pltk_init python-plplot: /usr/lib/python2.7/dist-packages/_Pltk_init.x86_64-linux-gnu.so python3-plplot: /usr/lib/python3/dist-packages/_Pltk_init.cpython-36m-x86_64-linux-gnu.so python3-plplot: /usr/lib/python3/dist-packages/_Pltk_init.cpython-37m-x86_64-linux-gnu.so
I have installed the python-plplot package, but the problem is that PLplot needs the file _Pltk_init.so which is named Pltk_init.x86_64-linux-gnu.so in my distribution...
Ticket moved from /p/plplot/bugs/192/
Hi Vincent:
I have reclassified this ticket as a support request. I am willing to continue here, but let's not do that since my first request of you is to follow up on the plplot-general mailing list since e-mail is a much better interface than this one for discussing adapting gtkfortran to modern versions of PLplot. And my second request of you is to build the latest PLplot (5.14.0) to make sure that works correctly for you before getting deeper into problems with adapting gtkfortran. Anyhow, I hope to hear back from you on plplot-general,
Reclassified as pending because the discussion appears to be stopped.