Hi All,
I did an install today from fresh source (ie unpacked the source again, applied the patches etc, so that I could be sure I was starting from a clean slate). To recap, its a dual processor PPC G5 running OS X 10.5.8 I edited line 89 of OpenFOAM-1.7.0/etc/apps/paraview3/bashrc and changed it to ... Code:
mkdir -p $PV_PLUGIN_PATH I then did ... . /Volumes/OpenFOAM/OpenFOAM-1.7.0/etc/bashrc and checked the value of $WM_PROJECT_DIR. "echo $WM_PROJECT_DIR" returned ... "/Volumes/OpenFOAM/OpenFOAM-1.7.0", so I then ran Allwmake. MAKE.LOG OUTPUT There were a lot of lines in make.log like ... Quote:
The make.log file is over 5 meg, but the final section of it reads ... Quote:
TESTING THE INSTALL I noted that a few posts above it reads ... Quote:
So I did this ... Quote:
Quote:
echo $FOAM_RUN returns ... /Volumes/OpenFOAM/bob-1.7.0/run cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity ... and the terminal confirmed that I was in the cavity directory ... ie /Volumes/OpenFOAM/bob-1.7.0/run/tutorials/incompressible/icoFoam/cavity ... then I did ... blockMesh ... which returned ... -bash: blockMesh: command not found :( WHAT TO DO NEXT ? I notice that a few posts above in mattia's post it reads ... Quote:
Should I rerun Allwmake without deleting files as mentioned above ? Where it says above "The paraview binaries available from paraview.org should work fine (I would not bother trying to compile it). All that is will require is for you to create the .foam file in your case root directory." ... where exactly should the .foam file be placed and what should that file contain ? A sincere thank you once again for everyone's help on this. I am really looking forward to being able to run OpenFOAM on this box ! |
Quote:
cd $FOAM_SRC/OpenFOAM wmake libso and see what happens.. Have a look in $FOAM_LIBBIN whether the library is there. Quote:
Bernhard |
Quote:
Here is the output from: cd $FOAM_SRC/OpenFOAM wmake libso Quote:
Quote:
Code:
cd $FOAM_SRC/OpenFOAM Code:
cd $FOAM_LIBBIN Quote:
Once again many thanks for your help ! |
Greetings AussieRacer,
As you can see, response times may vary ;) OK, as for the error you are getting: Quote:
Quote:
Code:
gcc -v Bruno |
Quote:
You were right - I had installed gcc 4.5 but had forgotten to select gcc 4.5 instead of the built in xcode version of gcc. I have the latest MacPorts versions of gcc_select and Macports gcc 4.5 installed. I then did this ... Quote:
When I installed gcc 4.5 with MacPorts, there were no errors reported. The terminal output of the install of gcc 4.5 with MacPorts reads ... Quote:
RUNNING WMAKE LIBSO AGAIN WITH GCC 4.5 To recap, the attempted OpenFOAM build outlined earlier was using "gcc version 4.0.1 (Apple Inc. build 5490)" which was obviously the wrong version of gcc to use :( So in my OpenFOAM volume I have the files from that attempted build with gcc 4.0.1 Today I have done this ... Quote:
Quote:
Code:
cd $FOAM_LIBBIN Quote:
Should ... cd $FOAM_SRC/OpenFOAM wmake libso ... have created a lib named libOpenFOAM ? DO I NEED TO MODIFY THE PATCH ? Bruno your earlier post reads ... Quote:
If so, which file do I need to change and how should that file read after the changes have been applied ? WHAT TO DO NEXT ? Should I now do a fresh build again from source using gcc 4.5 ? Or does the output of "wmake libso" point to another issue I need to fix first ? Once again many many thanks for everyone's help on this. I'm amazed by the depth of knowledge from you guys on compiling OpenFOAM, and without your help I'd be lost at this point with the install. |
1 Attachment(s)
Hi!
Sorry, I don'T have time to go into details. Just some remark: - gcc45 has problems with OF-1.7.0 (see BUGs-newsgroup). These problems are fixed in 1.7.x so you might consider getting 1.7.x and working on that - I don't recommend using gcc_select to make gcc45 your default compiler (might break other things). Instead specify gcc-mp-45 as the OpenFOAM-compilers in wmake/rules/<your architecture> - I'm attaching an updated version of the Mac-patch - Please note that you'll probably have to adapt the rules for darwinPPC (darwinIntel64 is the one I'm currently using) Bernhard Attachment 4508 |
Quote:
Just to check, when you say "These problems are fixed in 1.7.x so you might consider getting 1.7.x and working on that", by 1.7.x do you mean the source of version 1.7.1 ? Or is 1.7.x a development version ? Thanks again ! |
Quote:
I've now downloaded and unpacked the source files for OpenFOAM-1.7.1 and ThirdParty-1.7.1 I opened the files in /wmake/rules/darwinPPC/ but I am not sure where I need to make the changes and which of those files I need to change to specify gcc-mp-45 as the OpenFOAM-compiler. In /wmake/rules/darwinPPC/c line 5 reads ... "cc=gcc" Should I change that line to read "cc=gcc-mp-45" ? Do I need to make changes to any of the other files in /wmake/rules/darwinPPC/c and if so what changes do I need to make ? Apologies for the basicness of those questions, but I want to make sure that I have got the changes right to avoid creating any problems by not configuring those files correctly. Also do I patch the ThirdParty-1.7.1 files with the patch named "ThirdParty-1.7-Mac.patch" or is that patch only used with 1.7.0 ? Thanks again. |
Greetings AussieRacer,
Sweet, 1.7.1 is out :D Quote:
Quote:
Quote:
So, if you haven't forgotten the steps you took for 1.7.0 (editing bashrc and so on), you should be very close to tasting some OpenFOAM 1.7.1 on a MAC PPC :D Best regards, Bruno |
Quote:
Quote:
|
Quote:
Today I attempted a fresh build using Macports gcc 4.5 and OpenFOAM 1.7.1 I used Bernard's OpenFOAM-1.7.x-Mac_v2.patch which he posted above to patch OpenFOAM, patched third party using ThirdParty-1.7-Mac.patch, made the changes to /Volumes/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc etc. PARAVIEW3/BASHRC CHANGE On line 89 of OpenFOAM-1.7.0/etc/apps/paraview3/bashrc when I was previously using 1.7.0 I changed ... mkdir $PV_PLUGIN_PATH to ... mkdir -p $PV_PLUGIN_PATH However OpenFOAM-1.7.1/etc/apps/paraview3/bashrc is different to the same file in 1.7.0, so it looks like that change may not be needed as that section of the 1.7.1 file is different. Lines 82-86 in the unedited source OpenFOAM-1.7.1/etc/apps/paraview3/bashrc read ... Quote:
Does it look like those lines remove the need to make the 1.7.0 "mkdir -p $PV_PLUGIN_PATH" change when running 1.7.1 ? WMAKE RULES CHANGES In /OpenFOAM-1.7.1/wmake/rules/darwinPPC/c line 5 reads ... cc=gcc I changed that line to read: cc=gcc-mp-45 In /OpenFOAM-1.7.1/wmake/rules/darwinPPC/c++ I changed in "CC" the "g++" to "g++-mp-45", so that line now reads ... CC=g++-mp-45 When I ran Allwmake though I got a couple of errors ... The very start of make.log reads ... Quote:
http://www.mail-archive.com/trplayer.../msg00281.html reads ... Quote:
Quote:
The final lines of make.log read ... Quote:
wmake libso returns ... Quote:
echo $FOAM_LIBBIN /Volumes/OpenFOAM/OpenFOAM-1.7.1/lib/darwinPpcDPOpt ls returns ... Quote:
Thanks again. |
Quote:
In today's attempted install posted above I used your OpenFOAM-1.7.x-Mac_v2.patch to patch OpenFOAM 1.7.1, and patched third party using ThirdParty-1.7-Mac.patch. Is that the correct procedure I should use ? cd /Volumes/OpenFOAM/OpenFOAM-1.7.1 patch -p1 <OpenFOAM-1.7.x-Mac_v2.patch returned ... Quote:
patch -p1 <ThirdParty-1.7-Mac.patch returned ... Quote:
Quote:
When you say "for the first experiments I wouldn't bother trying to recompile paraview", do you mean that instead of using /OpenFOAM-1.7.1/Allwmake that instead I should use /OpenFOAM-1.7.1/Allwmake.noThird ? Can you spot anything in the post above this one that might be causing the problem I am having with installing 1.7.1 ? Thanks again. |
Hi AussieRacer,
I assumed "gcc-mp-45" and "g++-mp-45" are the names of the executables for gcc and that you had already tested them. Try running them with "-v" option in a terminal/console and see if anything happens. If it doesn't find those executables, you possibly need to add the path to those binaries in the variable PATH... but like I've said before, I don't have experience with Mac OS X, so I'm only guessing when it comes to Mac specific information :( So, you might need to add something like this to your ~/.bashrc file: Code:
export PATH=$PATH:/usr/gcc-mp-45/bin/ Quote:
Best regards, Bruno |
Quote:
g++-mp-45 -v -bash: g++-mp-45: command not found gcc-mp-45 -v -bash: gcc-mp-45: command not found WHICH G++ TO USE ? In /opt/local/bin there are 2 G++ executables named ... g++-mp-4.5 ppc-apple-darwin9-g++-mp-4.5 g++-mp-4.5 -v returns ... Quote:
returns ... Quote:
WHICH GCC TO USE ? In /opt/local/bin there are 3 GCC executables named ... gcc-mp-4.5 ppc-apple-darwin9-gcc-4.5.1 ppc-apple-darwin9-gcc-mp-4.5 gcc-mp-4.5 -v returns ... Quote:
returns ... Quote:
returns ... Quote:
Quote:
Quote:
That's what I meant where I said "do you mean that instead of using /OpenFOAM-1.7.1/Allwmake that instead I should use /OpenFOAM-1.7.1/Allwmake.noThird". ie since I have Paraview 3.8 already running on this box from a Paraview Mac OS X Universal Application Bundle, should I run /OpenFOAM-1.7.1/Allwmake or should I run /OpenFOAM-1.7.1/Allwmake.noThird ? A huge thank you to you guys for your patience with me and my OpenFOAM newbie questions ! I really appreciate your help and though I ask a few questions at the beginning I learn fast and don't ask the same questions again and again :) That's also why I've put so much detail into my replies as that may help other newcomers to OpenFOAM in the future get up to speed quickly. |
Hi AussieRacer,
These seem to me the best choice for now: Code:
ppc-apple-darwin9-gcc-mp-4.5 Quote:
Code:
export PATH:$PATH:/opt/local/bin Quote:
Quote:
Good luck! Bruno |
Hi All,
I'm having some problems with compiling OF-1.7.1 for my Mac OS X 10.6. and hope somebody might be able to help me! I'm just starting to use terminals and stuff like that so as far as I know I had to do a bit of groundwork before. What I have done so far: 1. Downloaded and installed xcode. 2. Downloaded and installed MacPort 1.9.1. 3. Created a case-sensitive disk image in my user directory. 4. Extracted OF-1.7.1 and ThirdParty-1.7.1. 5. Downloaded the patches OpenFOAM-1.7.x-Mac_v2.patch and ThirdParty-1.7-Mac.patch and patched them using: Quote:
Quote:
6. I've checked the compiler with gcc -v and it listed gcc 4.2.1 as current compiler. So I installed gcc45. When using the command gcc -v it now returns: Quote:
7. With a bit of effort I then sourced the etc/bashrc, which should be ok too. 8. Afterwards I tried ./Allwmake in the OF directory and it showed this, which I abborted shortly afterwards: Quote:
Quote:
1. Is it correct, that the start of the make.log says "Start ThirdParty Allwmake", though I originally intended to compile OF? 2. What might produce the Errors shown in the make.log? 3. Should I have installed any more programs, so that OF is able to run (already installed cmake and flex, which seem to be necessary for Ubuntu according to the "cookbook" ( http://hvirvel.dk/OF/installOF9.10 ), or are such programs not necessary for Mac or maybe already included in xcode or MacPort)!? 4. If worst comes worst, I'd consider trying to run OF for Ubuntu via "Parallels" on my Mac. Does anybody have experience with that? Any help and ideas would be very much appreciated. And as I'm a total newbie, please be patient with my basic questions :) ! |
Quote:
@3: you'll need cmake for the Paraview-stuff but apart from that everything you need should come with XCode @4: VirtualBox works as well for that. |
Hi Bernhard,
thanks for the help! Quote:
|
Quote:
BTW: the files should live in $FOAM_SRC/OpenFOAM/meshes/primitiveShapes/objectHit |
Hi Bernhard,
you were right! There is only the file pointHit.H and not PoinHit.H! I'm a bit confused here... My Mac OS system is case-insensitive but I created a case-sensitive image and untarred the files within this image! Is there anything I have to consider for creating such an case-sensitive image in a case-insensitive system/environment or maybe any typical mistakes I could do working with such an image? I guess I'll try to create a new image and start from the beginning again!? Thanks for your help!!! |
Quote:
|
Hi,
I just untarred the OF- and Thirdparty-file again on the case-sensitive image and now it seems that the files are complete (e.g. there is now a PointHit.H and a pointHit.H file!). So I patched everything again and copied the files bashrc and settings.sh, which I previously changed from the old directory in the new one and ran ./Allwmake. At first it looked good and no errors (at least I didnt spot any) were shown until: Quote:
Quote:
Quote:
It ends like this: Quote:
Any idea what could have gone wrong? I tried the foamInstallationTest and the result is this (maybe it helps to find the error!?) Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Thanks very much for your support! |
I try really hard to find any instruction on how to install OpenFOAM on mac, but despite my best intentions, I cannot find the right information.
Could anyone kindly post what steps are required to follow in order to have OpenFOAM-1.7 up and running on Mac Snow Leopard machine? Thank you! |
Quote:
http://chrisjbutler.wordpress.com/20...for-os-x-10-6/ Chris Butler |
Thanks a lot, clear guide. However as I compile, it keeps going for about 15 minutes then it quits with following error
In file included from /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.H:120:0, from /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/time.h:50, from /usr/include/wchar.h:113, from /opt/local/include/gcc45/c++/cwchar:47, from /opt/local/include/gcc45/c++/bits/postypes.h:42, from /opt/local/include/gcc45/c++/bits/char_traits.h:42, from /opt/local/include/gcc45/c++/string:42, from /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/string.H:51, from /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/stringList.H:35, from /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/argList.H:73, from mixtureAdiabaticFlameT.C:33: /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C: In constructor 'Foam::NamedEnum<Enum, nEnum>::NamedEnum()': /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C:34:18: error: template argument 3 is invalid /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C:34:19: error: expected '{' before '(' token /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C: At global scope: /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C:34:20: error: expected unqualified-id before numeric constant /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/NamedEnum.C:34:20: error: expected ')' before numeric constant /Users/user/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/token.H:386:25: warning: inline function 'void Foam::token::operator=(int*)' used but never defined make[2]: *** [Make/darwinIntel64DPOpt/mixtureAdiabaticFlameT.o] Error 1 make[2]: Target `/Users/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/mixtureAdiabaticFlameT' not remade because of errors. make[1]: *** [mixtureAdiabaticFlameT] Error 2 make[1]: Target `application' not remade because of errors. Trying to fix it, additionally, in OpenFOAM-1.7-Mac.patch I changed all the required entries to gcc-mp-4.5, but error still persists. $FOAM_APPBIN is empty. Any tips? Thanks, P |
I am not that great (yet) with the errors. I have two suggestions:
Try with another build of OpenFOAM: To get the latest head from the git repo: git reset git pull $OF_GIT_ADDRESS Then re-apply the patch OR to get the 1.7.1 build git reset git checkout -b master version-1.7.1 Then re apply the patch. Make sure your OF directory and Third party directory version names match i.e. 1.7.1 or 1.7.x. Try with another compiler: Perhaps try gcc4.4 or gcc4.3. I hope someone else will be more helpful! Cheers, Chris Butler |
Thanks a lot for a prompt reply!
The thing was, somehow the disk image did mount the right way and actually I used non-case dependent OpenFOAM/ folder which I created earlier. After mounting the partition in the right way compile process moved forward. However, I still have one question. As the compile process ended it finished with the following output message: make: Target `application' not remade because of errors. I'm not sure how to interpret it. Any help in this matter? Thanks, P |
BTW. $FOAM_BINAPP points to:
/Users/user/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt and the folder lists bunch of different apps, so at least in some part applications folder was created. |
Quote:
|
Hi,
really really sorry to bother you guys but does anyone have an idea what might have been the problem while compiling OF, which I have tried to describe in my post from the 14.09. (7pm)? I'd extremely appreciate any help, as I don't have any clue!!! PS: In the link which Chris uploaded I've seen the following command: Quote:
Again: Thanks for your support!!! |
Quote:
Quote:
|
Jan,
Follow post from the Chris blog. It is simple and clear description of the whole installation process. Bernard, thanks for the tip. Right now as much as I had time to test things distribution is up and running. Best, K |
Greetings to all!
Quote:
Nonetheless, I know someone who probably has already fixed that issue with tecPlot: Richard Smith at Symscape has patches for OpenFOAM 1.7.x, for building it for both Windows (cross-compiling) and Mac (compiling) - http://www.symscape.com/openfoam-1-7...windows-64-mpi edit: FreeFOAM should also have this issue solved, but it's a bit harder to adapt from it :( Best regards, Bruno PS - FYI: I've studied these patches (at blueCAPE :D) and created modified patches for cross-compiling OpenFOAM in Linux for Windows, but also including most of OpenFOAM's Third Party software, and also improving on top of Symscape's patches :D |
Quote:
Only did a brief attempt to fix the tecplot-stuff but as I don't use TecPlot myself and nobody every complained I didn't spend too much time on it. I'll have a look at the patches |
1 Attachment(s)
Just going through OpenFOAM tutorials I noticed one of the solvers did not compile.
I tried to compile it separately and at the end all solvers as a whole, all is fine except interFoam (and Tecplot, but I don't need that one). Any tip regarding that? Thanks! |
Greetings Paka,
The inter*Foam solvers seem to be missing an option: Code:
-linterfaceProperties Best regards, Bruno |
Hi All,
Does anybody knows for running OpenFOAM 1.7 on MacBook it requires OS X snow leopard (10.6) or OS X tiger (10.4) also can be used? thnx |
1 Attachment(s)
Bruno,
Strange, it is the original source code, shouldn't it be just fine to compile regardless of platform on which I run it? I tried to add that option inside the source code, but the problem still persists. Please find present output in attached txt file. Thank you, K PS. Answering Babak's question, OpenFOAM should run on any OS X operating system (including Tiger). |
Forgive me. This time I modified each of the Make/options file from each of the solvers. This time the solvers compiled, however, what makes me uncomfortable is the bit with "unused variable" as you can see in previously attached output file, log2.txt.
Thanks for your time and help! K |
Hi Paka,
Quote:
Best regards, Bruno |
All times are GMT -4. The time now is 00:37. |