On 2009-05-11 13:55+0200 Arjen Markus wrote:

> Hi Alan, Andrew, Werner,
>
> it may be nothing of consequence, but when I fixed the command-line
> issue with Fortran 77/95 last week, I could not find any pkg-config
> file for the platforms I looked at (notably MinGW). I may have missed
> it, but I was curious whether I should do something about it, as
> there is an extra library now under some circumstances.
>
> It may be that we only generate it for Cygwin (I have not yet checked
> that platform) - I just thought I'd mention it.

Here is what plplotd-f77.pc looks like for Linux

libdir=/home/software/plplot_cvs/installcmake/lib
includedir=/home/software/plplot_cvs/installcmake/include/plplot
drvdir=/home/software/plplot_cvs/installcmake/lib/plplot5.9.3/driversd

Name: PLplot F77
Description: Scientific plotting library (F77 bindings, double precision)
Requires: plplotd
Version: 5.9.3
Libs: -L${libdir} -lplplotf77d -lplplotf77cd 
Cflags: -I${includedir}

You see that only the normal f77 PLplot libraries are mentioned
(-lplplotf77d -lplplotf77cd).  That works on Linux because your extra
library is not used there, but for platforms/situations where your extra
library is used, you should change bindings/f77/CMakeLists.txt to include
that extra name in the same format when it configures plplotd-f77.pc.

I don't think you omission of this is cause for concern for 5.9.4 since
building the installed examples for the Windows platforms where your
change matters is probably unexplored territory.

However, I really do hope you and Werner explore that territory soon.  Once
set up, it should be a much easier environment for you guys to work in
because everything is located in consistent locations in the install tree
rather than scattered all over the build tree.  Also, "make test" runs
essentially the same scripts as ctest in the build tree so not too much
extra effort (you need access to make, pkg-config, and bash) should be
required to get things working for you in the installed examples tree.

To test your changes out you must install pkg-config on your system (you
probably have a WARNING about that now in your cmake output which is why
no *.pc files are configured), and, at minimum, inspect the resulting
plplotd-f77.pc that is configured to make sure it is okay.  Do you
need a reminder of the GTK+ location where you can obtain pkg-config for
non-Cygwin windows?  Of course, for Cygwin, you should have their pkg-config
package (see http://cygwin.com/packages/pkg-config/) installed.

To test whether you can actually build the installed examples you will need
"make" for your Windows platforms.  Werner, is there a MinGW version of that
or do Windows users just have a Cygwin version available?

Finally, I should note that if you don't like the pkg-config approach to
deliver the build information you need in the installed examples tree there
is another good possibility which is to store the needed compile and link
information for library targets in a CMake export file using the
INSTALL(EXPORT... cmake command.  Then a tiny CMake project which simply
included those files and which configured the required add_executable for
each example with a foreach loop would be all that was required to build the
examples.

My attention was drawn to this possibility recently on the CMake list so I
thought I would share it here, but I know nothing more about this then what
I read in the cmake documentation.  I don't have plans to do this myself,
but if somebody else is interested I would certainly encourage the effort
from the side-lines and also I would be happy to test the implementation of
such a CMake-based approach to building our installed examples on Linux.

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); 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
__________________________

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to