> Date: Mon, 27 Aug 2007 09:19:30 -0700 (PDT) > > Hi Michael: > > I am answering you on list because I think others may be interested in the > reply. > > We have both a legacy f77 binding and a more modern f95 binding. But our > build system assumes just one fortran compiler specified by the user. Our > build system tests that designated compiler against some simple f95 source, > and if it cannot handle it, then it disables the f95 binding which is what > happened to you for your default g77 compiler. (As an aside, > we don't test whether the designated compiler can handle our f77 binding > since our experience is all fortran compilers can handle it.) > > Reading between the lines, I think you want full control over your fortran > compiler rather than the default g77 one picked by cmake. To give you that > control, use the FC environment variable (where you can specify the fortran > command and associated options) before cmake is invoked in an empty > directory for the first time (assuming you are doing an out-of-source > build). e.g., > > export FC='f95 -O2' > cmake -D options <path to PLplot source> > make > make install > > This is documented at http://www.miscdebris.net/plplot_wiki > (look for "1.2.1.2 (Optional) set environment variables to specify the > compilers and compiler flags"), but I can see why you missed it since there > is a lot of information to absorb from our wiki when encountering cmake > for the first time. > > If you run into any trouble with the above scenario for deciding your > fortran compiler, please post to the list the actual export and cmake > commands you used and the complete output from the cmake command (which > will > help us to diagnose the problem). > > Alan
Dear Alan: I also reply to your message on this list, in case other people face similar questions. I had been trying setting the F95 command before, in two ways, exporting from the command line (as you suggested in the last message) and from within the ccmake menu. In both cases cmake is reconfiguring and setting finally ENABLE_f95 to OFF. I tried to force ENABLE_f95 ON desperately, but ccmake/cmake doesn't seem to like it! Finally, I took the 5.7.3 with configure mode with --enable-f95 and the F95 compiler was found automatically. The compilation went smoothly, except for two minor changes. The option --tag=F77 had to be added to the f95 Makefile in the lines where libtool is called. Further, the lines with the equivalence command in sfstubs.h had to be commented out (this probably depends on the F95 compiler used). All example programs with F95 run. The character charts for the symbols don't turn out right, however. But perhaps that's a problem related to my locales as the error message is 'UTF-8 string is malformed'. Strangely, the error doesn't show up in the F77 examples. Perhaps, it would be good to keep the configure compile option as fallback option in the future releases of PLplot. An advantage seems to be that one can specify separately the F77 and F95 flags, e.g. F77 FFLAGS: g77 -g -O2 FC FCFLAGS: f95 -g -O2 . Again many thanks for your help. Keep up the good work! Best, Michael -- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel