I have again decided to try to build and run Plplot.

I am running Windows 8

I got it to work fine using Cygwin.

I tried many many combinations of Mingw configurations
(TDM 32 seems to work, but I want to run 64). Finally, I
got one to build and the compile and run a Fortran example.

I messed around trying to put the compiler and plplot files
in the place I want them permanently, then went back to the
test directory and the executable didn't work any more. I get
the following:

=======================
C:\walt\Software\Plplot\TEST_MINGW>gfortran --version
GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.


C:\walt\Software\Plplot\TEST_MINGW>gfortran -c *.f90

C:\walt\Software\Plplot\TEST_MINGW>gfortran *.o *.a

C:\walt\Software\Plplot\TEST_MINGW>a

*** PLPLOT ERROR, ABORTING OPERATION ***
plInitDispatchTable: Could not open drivers directory, aborting operation

Plotting Options:

Enter device number or keyword:
=======================================

I compiled with the same gfortran that was used to build Plplot
(as far as I can tell--Cmake seems awfully fussy about files
in paths completely unrelated to what I am doing). I put all the
*.a and *.dll files in one directory to do the test. Here it is:

====================================
C:\walt\Software\Plplot\TEST_MINGW>dir
 Volume in drive C is Windows
 Volume Serial Number is DECB-58EB

 Directory of C:\walt\Software\Plplot\TEST_MINGW

11/27/2014  12:09 PM    <DIR>          .
11/27/2014  12:09 PM    <DIR>          ..
11/27/2014  12:09 PM            51,138 a.exe
11/26/2014  01:51 PM             1,033 ft_x00f.f90
11/27/2014  12:08 PM             2,931 ft_x00f.o
11/27/2014  09:21 AM            85,341 libcsirocsa.dll
11/27/2014  09:21 AM             6,392 libcsirocsa.dll.a
11/27/2014  09:21 AM             2,184 libplf95demolibd.a
11/27/2014  09:21 AM           551,278 libplplotadad.dll
11/27/2014  09:21 AM           551,278 libplplotadad.dll.a
11/27/2014  09:21 AM           138,171 libplplotcxxd.dll
11/27/2014  09:21 AM           163,976 libplplotcxxd.dll.a
11/27/2014  09:21 AM           558,900 libplplotd.dll
11/27/2014  09:21 AM           185,190 libplplotd.dll.a
11/27/2014  09:21 AM           113,833 libplplotf95cd.dll
11/27/2014  09:21 AM           118,892 libplplotf95cd.dll.a
11/27/2014  09:21 AM           178,375 libplplotf95d.dll
11/27/2014  09:21 AM            74,362 libplplotf95d.dll.a
11/27/2014  09:21 AM            74,556 libqsastime.dll
11/27/2014  09:21 AM             3,788 libqsastime.dll.a
11/27/2014  09:21 AM            47,487 mem.dll
11/27/2014  09:21 AM            43,126 null.dll
11/27/2014  09:21 AM            19,696 plf95demolib.mod
11/27/2014  11:45 AM            52,342 plplot.exe
11/27/2014  09:21 AM            19,294 plplot.mod
11/27/2014  09:21 AM             5,453 plplotp.mod
11/27/2014  09:21 AM               350 plplot_flt.mod
11/27/2014  09:21 AM            52,141 pltek.exe
11/27/2014  09:21 AM            81,527 ps.dll
11/27/2014  09:21 AM            64,257 svg.dll
11/27/2014  09:21 AM            71,165 wingcc.dll
11/27/2014  09:21 AM            56,046 xfig.dll
              30 File(s)      3,374,502 bytes
               2 Dir(s)  855,677,673,472 bytes free

==========
Sorry for the length, but I wanted to provide whatever might
be needed. What directory of drivers is it looking for? Is there
a way to tell it where to find it? Thanks.

I have attached the Fortran file just in case, but it is just a
slight revision of x00f.f90 in the Plplot examples.
-- 
Walt Brainerd
walt dot brainerd at gmail dot com
program ft_x00f

! This is a modified version of x00f.f90
! which was written by Alan Irwin

   use plplot
   implicit none

   integer, parameter :: NSIZE = 100

   real(kind=plflt), dimension(0:NSIZE) :: x, y

   real(kind=plflt) :: xmin =   0.0_plflt, &
                       xmax =   1.0_plflt, &
                       ymin =   0.0_plflt, &
                       ymax = 100.0_plflt
   integer :: i

   ! Prepare data to be plotted.
   ! x = .00, .01, .02, ..., .99, 1.00
   x = [(i, i=0,NSIZE)] / real(NSIZE)
   y = ymax * x**2

   ! Parse and process command line arguments.
   call plparseopts( PL_PARSE_FULL )

   ! Initialize plplot
   call plinit( )

   ! Create a labelled box to hold the plot.
   call plenv( xmin, xmax, ymin, ymax, just=0, axis=0 )
   call pllab( "x", "y=100 x#u2#d", &
               "Simple PLplot demo of a 2D line plot" )

   ! Plot the data that was prepared above.
   call plline( x, y )

   ! Close Pl+plot library
   call plend( )

end program ft_x00f
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to