From: Vincent M. <vin...@po...> - 2019-03-04 09:15:58
|
Hi Alan and Ole, thank you for your answers. Understanding a problem is half the solution. This is the report of my last efforts: 1) I have uninstalled and purged from my Debian Sid virtual machine all the PLplot packages: # apt remove libplplot-dev plplot-doc plplot-tcl-dev octave-plplot python3-plplot-qt # apt autoremove # apt purge libplplot-dev plplot-doc plplot-tcl-dev octave-plplot python3-plplot-qt libplplot-lua libplplot-ocaml plplot-tcl plplot-tcl-bin 2) I have downloaded PLplot 5.14.0 from SourceForge, built it and installed it (see attached files): $ mkdir build_pl && cd build_pl $ cmake ../plplot-5.14.0 >& cmake.out $ make VERBOSE=1 >& make.out $ make VERBOSE=1 install >& make_install.out $ sudo make VERBOSE=1 install >& make_install.out 3) I have built the Fortran examples and tested successfully some of them: $ cd /usr/local/share/plplot5.14.0/examples/fortran/ $ sudo make $ ./x08f Plotting Options: < 1> xwin X-Window (Xlib) < 8> xcairo Cairo X Windows Driver The examples work fine (I don't know why this time I have no problem concerning the X server). 4) But now when I build the gtk-fortran project (gtk2devel branch), CMake does not find anymore PLplot: osboxes@osboxes:~/gtk-fortran/build$ cmake -D CMAKE_BUILD_TYPE=debug .. -- The Fortran compiler identification is GNU 8.3.0 -- Check for working Fortran compiler: /usr/bin/f95 -- Check for working Fortran compiler: /usr/bin/f95 -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/f95 supports Fortran 90 -- Checking whether /usr/bin/f95 supports Fortran 90 -- yes -- Compiler: GNU 8.3.0 /usr/bin/f95 -- Build type is: debug -- Compilation flags: -g -pthread -Wall -pedantic -std=f2008 -Wtabs -fcheck=all -fbacktrace -Wno-unused-dummy-argument -- Found GTK2_GTK: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- PLPLOT not found: PLPLOT integration and examples will not be built -- Configuring done -- Generating done -- Build files have been written to: /home/osboxes/gtk-fortran/build This is the part of the main CMakeLists.txt where we are looking for PLplot: # PLplot if (NOT EXCLUDE_PLPLOT) # find_package(PlplotF95 QUIET) find_package(plplot) set(HAVE_LIBPLPLOTF95D ${PLPLOT_FOUND}) if(PLPLOT_FOUND) set(LIBRARIES ${LIBRARIES} ${PLPLOT_LIBRARIES}) include_directories(${PLPLOT_INCLUDE_DIR}) include_directories(${PLPLOT_MODULE_DIR}) set(CMAKE_REQUIRED_LIBRARIES "${PLPLOT_LIBRARIES}") set(CMAKE_REQUIRED_INCLUDES "${PLPLOT_INCLUDE_DIR}; ${PLPLOT_MODULE_DIR}") check_fortran_source_compiles(" program tw use plplot implicit none real(kind=plflt) :: w = 0.5_plflt call plinit() call plwidth(w) end program tw" NEW_PLPLOT ) check_fortran_source_compiles(" program tdef use plplot implicit none integer :: i = PLESC_DEVINIT end program tdef" NEW_PLPLOT_DEFS ) else(PLPLOT_FOUND) message(STATUS "PLPLOT not found: PLPLOT integration and examples will not be built") endif(PLPLOT_FOUND) else(NOT EXCLUDE_PLPLOT) message(STATUS "PLPLOT Excluded as command option") endif(NOT EXCLUDE_PLPLOT) Best regards Vincent |