On 2007-10-17 08:01-0400 Jim Dishaw wrote: > Hiroyasu YASUDA <[EMAIL PROTECTED]> writes: > >> On 2007/10/17, at 0:04, Alan W. Irwin wrote: >> >>> On 2007-10-16 19:04+0900 Hiroyasu YASUDA wrote: >>> >>>> Dear All: >>>> >>>> I'm trying to install Plplot 5.7.4 on Cygwin, which is the newest of >>>> cygwin on WIndows Xp, according to the Configure PLplot for cygwin in >>>> PLplot wiki, http://www.miscdebris.net/plplot_wiki/index.php? >>>> title=Configure_PLplot_for_cygwin. >>>> >>>> When I run "make" after running cmake, the command fail and then the >>>> command show that: >>>> gcc: /DIVF: No such file or directory >>>> make[2] ***[bindings/f77/CMakeFiles/Plplotf77cd.dir/sccont.o] >>>> Error 1 >>>> make[1] ***[bindings/f77/CMakeFiles/Plplotf77cd.dir/all] Error 2 >>>> make: ***[all] Error 2 >>>> > > I think part of the problem is pointed out by the "/DIVF" message. The > cmake program thinks that your Fortran compiler is Intel Visual > Fortran. The CMakeLists.txt in the bindings/f77 directory will set the > compiler flag /DIVF if it is running on the WIN32 platform and the > compiler is Intel Visual Fortran. What are you using for the C > compiler? I am guessing that your C compiler is GCC. If that is true, > then we need to use the -DIVF as the compiler flag. I can attempt to > fix the lines, but my cmake kung-fu is still weak.
I emphasize that since the simple test (no bindings, only ps device) did not work for Hiroyasu, there is a fundamental issue here for his Cygwin platform besides the secondary fortran compiler issue noted above. However, once the fundamental issue is solved, then to add a needed compiler flag is simple; just specify the appropriate environment variable before cmake is run. One extremely simple example of this is export FC="g77 -O2" to specify (a) that the g77 compiler must be used to compile fortran source and (b) the -O2 option must be used each time that compiler is invoked. Note any number/kind of compiler options can be specified for your chosen fortran compiler using this environment variable mechanism, and similarly for the C and C++ compilers. See further documentation of this mechanism at http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page. 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 __________________________ ------------------------------------------------------------------------- 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