From: John B. <jrb...@co...> - 2015-01-31 16:52:58
|
Hi Chris, Thanks for that tip! It immediately resolved the problem. Things work beautifully now. Thanks again. John At 04:54 AM 1/31/2015, Chris Marshall wrote: >Are the .dll files in the PATH? > >On 1/30/2015 18:36, John Baumgardner wrote: >>Hi Arjen, >> >> I have still had no success in getting my application to work >> linked to plplot-5.10.0 under Cygwin. Here is what I am >> seeing. Things apparently compile and link okay: >> >>$ make sphplt >>gfortran -fdefault-real-8 -O3 -fdefault-real-8 -O3 >>-I/usr/local/plplot/include -L/usr/local/plplot/lib -o sphplt >>sphplt.o graphx.o \ >>-lplplotd -lplplotf95d -lplplotf95cd >> >>But then when I execute I get the following error: >> >>$ sphplt >>/home/johnrb/terra0314/sphplt.exe: error while loading shared >>libraries: cygplplotf95d-11.dll: cannot open shared object file: No >>such file or directory >> >>Might you have any idea what I am doing wrong here? Thanks for any >>help you can provide. >> >>John >> >>At 12:01 AM 1/26/2015, Arjen Markus wrote: >>>Hi John, >>> >>>I will have a closer look at this. >>> >>>Regards, >>>Arjen >>> >>>From: John Baumgardner [ mailto:jrb...@co...] >>>Sent: Monday, January 26, 2015 1:58 AM >>>To: Arjen Markus; Alan W. Irwin >>>Cc: >>><mailto:plp...@li...>plp...@li... >>>Subject: [Plplot-general] How Do I Link Correctly To the Libraries >>>Under 5.10.0? >>> >>>Hi Arjen and Alan, >>> >>> After achieving apparent success several days ago compiling >>> and linking my application code under plplot-5.10.0, for some >>> reason things ceased to work. The make process could no longer >>> find the required libraries. So I went to examples/f95 and >>> imitated (I think) the makefile I found there >>> (Makefile.examples). Here is the resulting makefile I am attempting to use: >>> >>>F95 = /usr/bin/gfortran.exe >>>FFLAGS = -fdefault-real-8 -O3 >>>PKG_CONFIG_ENV = >>>PKG_CONFIG_PATH="/home/johnrb/plplot-5.10.0/build_dir/lib/pkgconfig" >>>RPATHCMD = -Wl,-rpath -Wl,/home/johnrb/plplot-5.10.0/build_dir/lib >>> >>>sphplt : sphplt.o graphx.o >>> $(F95) $(FFLAGS) $(RPATHCMD) -o sphplt \ >>> `$(PKG_CONFIG_ENV) pkg-config --cflags --libs plplotd-f95` \ >>> sphplt.o graphx.o -lplplotd -lplplotf95d -lplplotf95cd >>> >>>Here is what I get when I do the make: >>> >>>$ make -f makesph >>>/usr/bin/gfortran.exe -fdefault-real-8 -O3 -Wl,-rpath >>>-Wl,/home/johnrb/plplot-5.10.0/build_dir/lib -o sphplt \ >>>`PKG_CONFIG_PATH="/home/johnrb/plplot-5.10.0/build_dir/lib/pkgconfig" >>>pkg-config --cflags --libs plplotd-f95` \ >>> sphplt.o graphx.o -lplplotd -lplplotf95d -lplplotf95cd >>>/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: >>>cannot find -lplplotf95d-11.0.0 >>>/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: >>>cannot find -lplplotf95cd-11.0.0 >>>collect2: error: ld returned 1 exit status >>>makesph:8: recipe for target 'sphplt' failed >>>make: *** [sphplt] Error 1 >>> >>> Any ideas as to what I am doing wrong? Thanks for any help you >>> can provide. >>> >>>John >>> >>>P.S. Here is the pkgconfig/plplotd-f95.pc file: >>> >>>libdir=/home/johnrb/plplot-5.10.0/build_dir/bin >>>includedir=/home/johnrb/plplot-5.10.0/build_dir/include/plplot >>>drvdir=/home/johnrb/plplot-5.10.0/build_dir/lib/plplot5.10.0/driversd >>> >>>Name: PLplot F95 >>>Description: Scientific plotting library (F95 bindings, double precision) >>>Requires: plplotd >>>Version: 5.10.0 >>>Libs: -L${libdir} -lplplotf95d-11.0.0 -lplplotf95cd-11.0.0 >>>Cflags: -I${includedir} >>>-I/home/johnrb/plplot-5.10.0/build_dir/lib/fortran/modules/plplot >>> >>>Question: Why is libdir set to /bin and not /lib? /bin does not >>>have libplplotf95d-11.0.0 while /lib does. >>>DISCLAIMER: This message is intended exclusively for the >>>addressee(s) and may contain confidential and privileged >>>information. If you are not the intended recipient please notify >>>the sender immediately and destroy this message. Unauthorized use, >>>disclosure or copying of this message is strictly prohibited. The >>>foundation 'Stichting Deltares', which has its seat at Delft, The >>>Netherlands, Commercial Registration Number 41146461, is not >>>liable in any way whatsoever for consequences and/or damages >>>resulting from the improper, incomplete and untimely dispatch, >>>receipt and/or content of this e-mail. >> >> >> >>------------------------------------------------------------------------------ >>Dive into the World of Parallel Programming. The Go Parallel Website, >>sponsored by Intel and developed in partnership with Slashdot Media, is your >>hub for all things parallel software development, from weekly thought >>leadership blogs to news, videos, case studies, tutorials and more. Take a >>look and join the conversation now. >><http://goparallel.sourceforge.net/>http://goparallel.sourceforge.net/ >> >> >>_______________________________________________ >>Plplot-general mailing list >><mailto:Plp...@li...>Plp...@li... >>https://lists.sourceforge.net/lists/listinfo/plplot-general > >------------------------------------------------------------------------------ >Dive into the World of Parallel Programming. The Go Parallel Website, >sponsored by Intel and developed in partnership with Slashdot Media, is your >hub for all things parallel software development, from weekly thought >leadership blogs to news, videos, case studies, tutorials and more. Take a >look and join the conversation now. http://goparallel.sourceforge.net/ >_______________________________________________ >Plplot-general mailing list >Plp...@li... >https://lists.sourceforge.net/lists/listinfo/plplot-general |