[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave with FLTK backend on Mac OS X?

From: Ben Abbott
Subject: Re: Octave with FLTK backend on Mac OS X?
Date: Tue, 16 Feb 2010 07:47:46 -0500

On Feb 16, 2010, at 12:47 AM, Matthias Brennwald wrote:

> On Feb 15, 2010, at 10:30 PM, John W. Eaton wrote:
>> What versions of gcc, g++, and gfortran do you have?  Are they all
>> from the same GCC distribution, or are you trying to mix and match
>> versions from different GCC releases?
>> jwe
> I used the compilers available from Apple's XCode. This does not come with a 
> Fortran compiler, so I installed gfortran from 
> . I did not realise I'd run into 
> problems due to different compiler versions:
> -------------
> poulet:~ mbrennwa$ which gcc
> /usr/bin/gcc
> poulet:~ mbrennwa$ gcc -version
> i686-apple-darwin10-gcc-4.2.1: no input files
> poulet:~ mbrennwa$ which g++
> /usr/bin/g++
> poulet:~ mbrennwa$ g++ -version
> i686-apple-darwin10-g++-4.2.1: no input files
> poulet:~ mbrennwa$ which gfortran
> /usr/local/bin/gfortran
> poulet:~ mbrennwa$ gfortran -dumpversion
> GNU Fortran (GCC) 4.3.0 20071026 (experimental)
> Copyright (C) 2007 Free Software Foundation, Inc.
> -------------
> What are my options?
> Matthias

I'm currently able to build 3.2.x using gcc 4.4.2 installed via Fink (gfortran 
is included).

My .configure looks like ...

/configure --prefix=/sw FLIBS=/sw/lib/gcc4.4/lib/libgfortran.dylib 
F77=/sw/bin/gfortran C      C=gcc-4 CPP=cpp-4 CXX=g++-4 
--infodir=${prefix}/share/info --mandir=${prefix}/share/man --libe      
xecdir=${prefix}/lib -enable-shared -enable-dl --disable-static --with-hdf5 
CPPFLAGS=-g -I/sw/      include -I/sw/include/freetype2 -I/sw/lib/flex/include 
FFLAGS=-g -ff2c LDFLAGS=-L/sw/lib/fltk-      aqua/lib -L/sw/lib/flex/lib 
-L/sw/lib/gcc4.4/lib/ -L/sw/lib -larpack -lgfortran -lGraphicsMagi      ck 
-lfltk_gl -lfltk -lpthread --with-blas=-framework Accelerate

Your's looks like ...

configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man 
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib 
--build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 

It looks like you'll need to add -ff2c ... perhaps some other options I haven't 

I haven't tried to mixed MacResearch's gfortran with gcc 4.2.1, but have read 
that there may be problems with that.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]