On 2017-03-21 07:01+0100 John AUSTIN wrote:

> Hello,
>
> I've just discovered PLPLOT and am very impressed with the documented
> features.
>
> I am interesed in getting it to work with the Silverfrost FTN95 FORTRAN
> compiler and specifially with the CLEARWIN+ GUI capabilities within it ,
> more  specifically within a %gr graphics window.
>
> Aft e r a quick perusal of the PLPLOT documentation I see:-
>
> a) for installation via MAKEFILE compilation there are no 'specific'
> instructions for SF FTN95 (there are for other compilers)
> b) in the section regarding 'output to interactive devices' the situation is
> even less clear for a novice like myself in these matters.  What is in fact
> 'an interactive device' ?
> c) in section 1.2.4 (Interactive Platforms) GDI driver compatability is
> mentionedand I know FTN95 'supports' this , however I don't know if that in
> itself is sufficient to guarantee it will work.
>
> At the end of the day I guess my question is "Will PLPLOT work in SF FTN95
> 'out of the box' ?" after following the basic install instructions or am I
> likely to have some problems ?
> Also , will it work for both 32bit and 64bit in FTN95 ? or maybe PLPLOT
> needs to be 'compiled' in both for use in each case as necessary ?
>
> Has anyone had experience with getting it to work with SF FTN95 ?

Hi John:

I had frankly not heard of that Fortran compiler (which I have now
discovered is described in
<https://en.wikipedia.org/wiki/Silverfrost_FTN95> and
<http://www.silverfrost.com/default.aspx>).  And I am uncertain about
whether it is going to work because the PLplot build system is
completely based on cmake, and google searches for cmake and ftn95 do
show a few questions about that combination, but no answers.

So since cmake is ubiquitous, I think that means you compiler choice
is fairly non-standard.  Therefore, I suggest you start small with a
simple project to see how far you get.  For example, try to follow the
directions in

cmake/test_fortran/README

which configures and builds a simple test project (just a "hello
world" library and test executable) using your Fortran compiler of
choice (in this case ftn95). Note those directions are focussed
on Linux at the moment.  But on Windows platforms, I would modify
the current

cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/install_tree -DBUILD_TEST=ON ..
make hello

directions to

cmake.exe -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=$(pwd)/install_tree 
-DBUILD_TEST=ON ..
nmake.exe hello

(The cmake -G option allows you to choose a wide variety of CMake
generators.  In the above case, the chosen generator will configure
nmake Makefiles so that the following "nmake.exe hello" command
should "just work" on Windows for most Fortran compilers.)

However, if with our help you cannot get that simple project to work
with ftn95, then one alternative would be to ask on the cmake mailing
list for help with ftn95 and cmake.  But the answer may be that cmake
currently does not support ftn95. In which case I would strongly
suggest you try a more standard fortran compiler such as ifort. For
example, we know ifort works fine with PLplot (and presumbably also
works fine with the above simple project).

Good luck, and let us know how it goes with that simple project first.

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
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to