Hiroyasu YASUDA <[EMAIL PROTECTED]> writes:

> On 2007/10/18, at 5:27, Alan W. Irwin wrote:
>
>> On 2007-10-17 08:01-0400 Jim Dishaw wrote:
>>
>>>
>>> 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.
>>
>>
>> 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
>

That message indicates that the fortran library was not built.  What
files are located in the bindings/f77 subdirectory (look where you
compiled the code)?

> Please let me know how to compile with all driver module and build  
> example.
>

Are you using the GNU compilers (gcc, g77, gfortran) or do you have any
other compilers installed on your computer?

-jd


-------------------------------------------------------------------------
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

Reply via email to