From: Alan W. I. <Ala...@gm...> - 2020-08-25 20:43:11
|
On 2020-08-25 11:04+0200 ronald deslandes wrote: > Hi Alan , 2nd > > it worked perfectly: > gfortran my1stpl.f90 -o my1stpl -I/root/plplot/build_dir/bindings/fortran > /root/plplot/build_dir/bindings/fortran/libplplotfortran.so > > and > env LD_LIBRARY_PATH=/root/plplot/build_dir/bindings/fortran ./my1stp > > I got the first result. Good news, indeed, that you could get this hand-generated build to work. However, in the long term I recommend you make a simple CMake project with your code following what is done (for the CORE_BUILD false case which greatly simplifies the required CMake code) in examples/CMakeLists.txt and examples/fortran/CMakeLists.txt. The way that would work is you independently install PLplot, your simple CMake project finds that install (following what is done in examples/CMakeLists.txt using the find_package(plplot) command) and the CMake code you need to build your example should simply reduce after that find to add_excutable(my1stpl my1stpl.f90) target_link_libraries(my1stpl, PLPLOT::plplotfortran) > Thanks. I will close the Ticket No 50. You are welcome. 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 __________________________ |