install:mac_compiling_fink

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
install:mac_compiling_fink [2019/05/16 11:37] paffenholzinstall:mac_compiling_fink [2019/05/16 11:38] paffenholz
Line 8: Line 8:
       * The variable ''JAVA_HOME'' is not set correctly. Please do<code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/<java-version-with-minor>/Contents/Home</code>where you have to put in the approiate java version directory (which you can find out by checking which folders are in ''/Library/Java/JavaVirtualMachines/'').       * The variable ''JAVA_HOME'' is not set correctly. Please do<code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/<java-version-with-minor>/Contents/Home</code>where you have to put in the approiate java version directory (which you can find out by checking which folders are in ''/Library/Java/JavaVirtualMachines/'').
  
-  * Configuration: This depends on the compiler you want to use. Also remember that on 10.10 and 10.9 you might need to set ''LDFLGAS'' and ''CFLAGS'' and add the option ''--with-ant'', see the previous step!+  * Configuration: This depends on the compiler you want to use. 
       * If you use the **standard compiler** of **XCode**: <code>./configure</code>        * If you use the **standard compiler** of **XCode**: <code>./configure</code> 
       * If you installed a compiler via **''fink''** or compiled your **own**:<code>./configure CC=<path-to-your>/gcc CXX=<path-to-your>/g++</code>Note that, if you obtained your gcc from fink it will have a different name (some variation of ''gcc-4'' or ''gcc-fsf-4.7'', and similarly for g++, check your ''/sw/bin'' directory, this way fink's gcc does not shadow apple's.       * If you installed a compiler via **''fink''** or compiled your **own**:<code>./configure CC=<path-to-your>/gcc CXX=<path-to-your>/g++</code>Note that, if you obtained your gcc from fink it will have a different name (some variation of ''gcc-4'' or ''gcc-fsf-4.7'', and similarly for g++, check your ''/sw/bin'' directory, this way fink's gcc does not shadow apple's.