CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Announcements from Other Sources (https://www.cfd-online.com/Forums/openfoam-news-announcements-other/)
-   -   Extend Project 1.6-ext Binary Release for Mac OS X (https://www.cfd-online.com/Forums/openfoam-news-announcements-other/82587-extend-project-1-6-ext-binary-release-mac-os-x.html)

darrin October 10, 2011 07:42

Philip,
In the file:
ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0

You need to add support for 11.0, this can be achieved by modifying lines 14 and 41 in the file. You need to modify line 14 as this is a new Darwin main version, different from 10.

Let me know if you need help. If you get this working can you post the issue and resolution on mantis so Martin can include in the hotfixes.

Darrin

bigphil October 10, 2011 09:11

Hi Darrin,

Thanks for the help.

OK I am not quite sure how to modify the lines. At the moment lines 10-16 are:
Code:

@ -34,6 +34,7 @@
    x86_64-unknown-linux-gnu-null)    echo linux64_2.4-x86-glibc_2.2.5    ;;
    ppc64-unknown-linux-gnu-null)      echo linux64_2.6-pwr4-glibc_2.3.3    ;;
    i386-apple-darwin8-null)          echo i386-apple-darwin8              ;;
+    i386-apple-darwin10-null)          echo i386-apple-darwin10            ;;
    *)                                echo unknown                        ;;
 esac

I changed it to:

Code:

@ -34,6 +34,7 @@
    x86_64-unknown-linux-gnu-null)    echo linux64_2.4-x86-glibc_2.2.5    ;;
    ppc64-unknown-linux-gnu-null)      echo linux64_2.6-pwr4-glibc_2.3.3    ;;
    i386-apple-darwin8-null)          echo i386-apple-darwin8              ;;
+    i386-apple-darwin10-null)          echo i386-apple-darwin10            ;;
+    i386-apple-darwin11-null)          echo i386-apple-darwin11            ;;
    *)                                echo unknown                        ;;
 esac

But then it gives out about a misformed patch.


Then the lines 36-45 are:
Code:

@@ -87,6 +87,9 @@
    i386-apple-darwin8.11.1)
        echo i386-apple-darwin8 ;;

+    i386-apple-darwin10.5.0 |  i386-apple-darwin10.7.0 | i386-apple-darwin10.8.0)
+      echo i386-apple-darwin10 ;;
+
    *)
        echo unknown
        echo System type ${SYSTEM} not supported! 1>&2 ;;

And I changed them to:
Code:

@@ -87,6 +87,9 @@
    i386-apple-darwin8.11.1)
        echo i386-apple-darwin8 ;;

+    i386-apple-darwin10.5.0 |  i386-apple-darwin10.7.0 | i386-apple-darwin10.8.0)
+      echo i386-apple-darwin10 ;;
+

+    i386-apple-darwin11.0.0)
+      echo i386-apple-darwin11 ;;
+
    *)
        echo unknown
        echo System type ${SYSTEM} not supported! 1>&2 ;;

Is this OK?


Thanks,
Philip

bigphil October 14, 2011 09:46

1 Attachment(s)
OK,

The compilation on Mac Lion runs fine now, I had to change two files:
ThirdParty/rpmBuild/SOURCES/libccmio-2.6.1.patch_0 and ThirdParty/rpmBuild/SPECS/libccmio-2.6.1.spec files
to include support for Mac Lion (darwin11).

I have reported this bug to mantis here.

I have attached a zip containing the patch and spec files that worked for me.

Philip

jiejie April 7, 2012 03:06

Hi Hrvoje

Thanks for your instruction for compiling 1.6-ext on Mac. I followed your instruction and managed to compile it on Mac 10.6.5 (Snow Lepord) with one small change.

I removed -lrt at /OpenFOAM/OpenFOAM-1.6-ext/src/decompositionMethods/scotchDecomp/Make/options as Mac OS X doesn't need the dependency on "-lrt".

lolo August 27, 2013 08:01

OpenFoam-1.6-ext Mac
 
Hi Im looking for this version of open foam for mac but your link for this version does not exists anymore.

Do you know where can I find this version ? (.dmg if it is possible)

Thanks a lot

Quote:

Originally Posted by hjasak (Post 285205)
Binary release for Mac OS X

I have created a sparse disk image for OpenFOAM-1.6-ext and a Mac, available on Extend Sourceforge Download section.

This is what you do to use it:

1) download the dmg file
http://sourceforge.net/projects/openfoam-extend/files/ -> OpenFOAM-1.6-ext.dmg

2) double-click on it, to mount it
3) open a terminal and do the following

cd
mkdir OpenFOAM
cd OpenFOAM
ln -s /Volumes/OpenFOAM-1.6-ex .

and you are ready. Make yourself a run directory:

mkdir -p ~/OpenFOAM/<yourName>-1.6-ext/run

source the environment

. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

and you are ready to run.

Please report success/failure.

Compiling OpenFOAM-1.6-ext on a Mac

If you want to compile from scratch, find yourself a Mac (Yum!) and install XCode. The next steps are:

1) download and install wget
2) download and install rpm
3) download and install git
4) sort out malloc header link

cd /usr/include/
sudo ln -s malloc/malloc.h .

5) sort out gmake

cd /usr/local/
sudo ln -s /usr/bin/make gmake

6) install Paraview from dmg: we will use Paraview reader

7) Create a Casename-sensitive disk image (~10 GB, to be safe) and link it as above. Into the link image do a git checkout into it

8) cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc ; cp prefs.sh-EXAMPLE prefs.sh

9) source the environment and compile all. You are in business!

Hope you'll find this useful. Happy McFoaming,

Hrv


codder November 5, 2013 16:24

I didn't realize an installation wiki page existed: http://openfoamwiki.net/index.php/In...enFOAM-1.6-ext

wyldckat November 5, 2013 16:50

Greetings to all!

@codder:
Quote:

Originally Posted by codder (Post 460720)
I didn't realize an installation wiki page existed: http://openfoamwiki.net/index.php/In...enFOAM-1.6-ext

Yep, but it's very recent! Check this thread for more information: http://www.cfd-online.com/Forums/ope...tain-lion.html

Best regards,
Bruno


All times are GMT -4. The time now is 19:42.