FreeCAD

Mark Brethen mark.brethen at gmail.com
Sat Jun 14 06:38:53 PDT 2014


Those ports give the user a choice of compilers. How is the user supposed to know which compiler to choose? Is there a "best" compiler?


On Jun 12, 2014, at 8:05 PM, Sean Farley <sean at macports.org> wrote:

> 
> Mark Brethen writes:
> 
>> I'm writing a port for FreeCAD which requires a Fortran Compiler. I'm told that Apple's fork of gcc on OSX does not come with FORTRAN. One recommendation is GFortran which can be found here:
>> 
>> http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
>> 
>> I've also read that MacPorts gcc4x packages also include FORTRAN compilers.
>> 
>> Another possible MacPorts package is g95. This seems to be a valid FORTRAN90 compiler and will pass FreeCAD's cmake configuration tests, but the actual build seems to ask for gcc-specific options, so probably easier to stick to gcc4x.
>> 
>> What is the best option?
> 
> You could try looking at the sparskit or gildas port for an example of
> the compilers portgroup (which was written for exactly this type of
> thing). Gildas disables the use of g95 with '-g95' in the setup.



Mark






More information about the macports-dev mailing list