On 2007/10/18, at 5:27, Alan W. Irwin wrote: > 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.
I run "export FC="g77 -O2"" before running cmake, I can run make without error of /DIVF and something. However, make shows that "Can not open driver module **" each devices, so I have to run make till not showing that errors. I would like to ask you that the result of cmake is success or failure. After that running make install, actually Plplot is installed under / usr/local/and then I built example under /share/plplot5.7.4, example of c and c++ can be built. But, example of f77 can not be built with the error message: /usr/bin/ld: cannot find -lplplotf77d collect2: ld returned 1 exit status make[1]: *** [x01f.exe] Error 1 Please let me know how to compile with all driver module and build example. Regards, Hiroyasu ------------------------------------------------------------------------- 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