Hello Hiro,


I am not an expert on pkg-config, but I guess that the problem is due to you 
specifying two keywords for it. Could you try:



export PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig
/usr/bin/ifort  x00f.f90 -o x00f `pkg-config  --cflags plplotd-f95` `pkg-config 
--libs plplotd-f95` -lplf95demolibd

(I moved the setting of PKG_CONFIG_PATH to a separate command for convenience.)

That way pkg-config is called twice, once for the cflags property and once for 
the libs property (or whatever it is called ;)).

Regards,

Arjen

> -----Original Message-----
> From: Hiroyasu Yasuda [mailto:h...@gs.niigata-u.ac.jp]
> Sent: Monday, March 30, 2015 3:38 PM
> To: Alan W. Irwin
> Cc: plplot_general
> Subject: Re: [Plplot-general] Build Plplot with ifort on OS X
>
> Hello Alan,
>
> Thank you for your kindness. I ran your suggested commands and that results as
> below:
>
> hiro$ PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" pkg-
> config --cflags plplotd-f95 -I/Users/hiro/Desktop/plplot_ifort/include/plplot 
> -
> I/Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot -
> I/Users/hiro/Desktop/plplot_ifort/include/plplot
>
> hiro$ make x00f
> /usr/bin/ifort  x00f.f90 -o x00f
> `PKG_CONFIG_PATH="/Users/hiro/Desktop/plplot_ifort/lib/pkgconfig" pkg-config  
> --
> cflags --libs plplotd-f95` -lplf95demolibd
> x00f.f90(24): error #7002: Error in opening the compiled module file.  Check
> INCLUDE paths.   [PLPLOT_STR]
>     use plf95demolib
> --------^
> compilation aborted for x00f.f90 (code 1)
> make: *** [x00f] Error 1
>
> Also I intend a file list in specified fold with pkg-config as below:
>
>  hiro$ ls -l /Users/hiro/Desktop/plplot_ifort/include/plplot
> total 560
> -rw-r--r--  1 hiro  staff   3255 Mar 30 17:49 disptab.h
> -rw-r--r--  1 hiro  staff   7284 Mar 30 17:49 drivers.h
> -rw-r--r--  1 hiro  staff   5398 Mar 30 17:49 gcw.h
> -rw-r--r--  1 hiro  staff   4043 Mar 30 17:49 pdf.h
> -rw-r--r--  1 hiro  staff   3304 Mar 30 17:51 plConfig.h
> -rw-r--r--  1 hiro  staff   2802 Mar 30 17:51 plDevs.h
> -rw-r--r--  1 hiro  staff   2763 Mar 30 17:49 pldebug.h
> -rw-r--r--  1 hiro  staff   5761 Mar 30 17:51 pldll.h
> -rw-r--r--  1 hiro  staff   7509 Mar 30 17:49 plevent.h
> -rw-r--r--  1 hiro  staff  77370 Mar 30 17:49 plplot.h
> -rw-r--r--  1 hiro  staff  32642 Mar 30 17:49 plplotP.h
> -rw-r--r--  1 hiro  staff  28357 Mar 30 17:49 plplotcanvas.h
> -rw-r--r--  1 hiro  staff  42350 Mar 30 17:49 plstream.h
> -rw-r--r--  1 hiro  staff  30762 Mar 30 17:49 plstrm.h
> -rw-r--r--  1 hiro  staff   4466 Mar 30 17:49 plxwd.h
> -rw-r--r--  1 hiro  staff   2633 Mar 30 17:49 qsastime.h
> -rw-r--r--  1 hiro  staff   1612 Mar 30 17:49 qsastimedll.h
>
> hiro$ ls -l /Users/hiro/Desktop/plplot_ifort/lib/fortran/modules/plplot
> total 392
> -rw-r--r--  1 hiro  staff    2447 Mar 30 17:51 plf95demolib.mod
> -rw-r--r--  1 hiro  staff  125957 Mar 30 17:51 plplot.mod
> -rw-r--r--  1 hiro  staff     629 Mar 30 17:51 plplot_flt.mod
> -rw-r--r--  1 hiro  staff   62576 Mar 30 17:51 plplotp.mod
>
> Those results seem to be working fine except error #7002. Since error #7002 
> is an
> intrinsic error message, the built result of *.mod with ifort is suspected. 
> If there are
> some ifort compiling options to obtain a normal built result, an built result 
> of *.mod
> with ifort will be equaled to an built results with gfortran. Are there some 
> compiling
> option for option?
>
> Sincerely,
> Hiro
>
>
> > On Mar 30, 2015, at 01:57, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote:
> >
> > On 2015-03-29 14:26+0900 Hiroyasu Yasuda wrote:
> >
> >> Hello Alan,
> >>
> >> Thank you for the reply.
> >>
> >>> If all appears to be well with that option, then please send the
> >>> Makefile located at $PREFIX/plplot5.10.0/examples/f95/Makefile
> >>> as well as the results from
> >>>
> >>> make x00f >& x00f.out
> >>>
> >>> in that directory.
> >>
> >> At my last mail, according to your mail as above I attached an output of 
> >> result
> when I ran Make in $PREFIX/plplot5.10.0/examples/f95/ as “make x00f >& 
> x00f.out”.
> If your intention misunderstood me, please let me know your request as 
> specific
> commands again.
> >
> > Hi Hiro:
> >
> > I was referring to a different part of that e-mail which I replicate
> > here for your convenience:
> >
> > ===========
> > If you look carefully at the Makefile, the command it uses to find the
> > necessary compile flags to build one of the f95 examples is
> >
> > PKG_CONFIG_PATH=$PREFIX/lib/pkg-config pkgconfig --cflags plplot-f95
> >
> > When I run that command here with appropriate $PREFIX, here are the
> > results:
> >
> > -I<PREFIX>/include/plplot -I<PREFIX>/lib/fortran/modules/plplot
> >
> > where the <PREFIX> result should be the same as $PREFIX.
> >
> > What are the results of that command there?
> > ===========
> >
> > It's that last question I need answered.
> >
> > Alan
> > __________________________
> > Alan W. Irwin
> >
> > Astronomical research affiliation with Department of Physics and
> > Astronomy, University of Victoria (astrowww.phys.uvic.ca).
> >
> > 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
> > __________________________
>
>
>
> - - - - -
> 安田 浩保
> 〒950-2181 新潟市西区五十嵐二の町8050
> 新潟大学 災害・復興科学研究所
> 総合研究棟(環境エネルギ系)213号室
> TEL : 025-262-7053  FAX : 025-262-7050
> E-mail : h...@gs.niigata-u.ac.jp
>
> Hiroyasu YASUDA
> Laboratory of River Research
> Research Institute for Natural Hazards & Disaster Recovery Niigata University
> Ikarashi 2-no-cho, Nis-ku, Niigata, 950-2181, Japan Phone +81-25-262-7053
> Facsimile +81-25-262-7050 E-mail h...@gs.niigata-u.ac.jp URL
> http://rde.nhdr.niigata-u.ac.jp/lab/
>
> .´ ̄`.
> : (` :
> `. `´   :
>   `・--´
>
>
> ------------------------------------------------------------------------------
> 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
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general

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/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to