Well, problem is that there are no instructions that I know about for building on Mac OS X the version of ParaView that comes with OpenFOAM.
This is why the instructions on the wiki, as well as here on the forum, mostly refer to installing the version from the official ParaView website. |
Paraview break point
Good Morning Bruno,
Yes, but now I am completely lost. I don’t know what to do to overcome the problem without complicating the situation. I spend a lot of time to detail the different posts in the forum and I am now in a muddle. All things seem to be yet in right place but I have not the true understanding of the correct steps chain for Mac 10.6.8 (+OF2.1.1, TP-2.1.1) case : - Use of the inside ThirdParty parafoam version is it impossible? Should I try to load Paraview from paraview.org ? Then, which version would be correct? - In which case, stub-files have to be created? What command has to be used to open them? - Is there any body in the same case as me? I am sorry to be insistent, Best regards, VG |
Quote:
Reasons why I do this are: - the built in OpenFOAM-Reader of Paraview is good enough for me - I don't want to spend time compiling Paraview myself (and subsequently support people with their problems with compilation) This doesn't mean that it isn't possible (not even that hard) to compile Paraview and the Plugin and if someone wants to do that and write a recipe I'd even test it |
Paraview -the end
Thanks Bernhard,
I was so focused on possible installation problems than I had totally missed the fact that I can load the paraview binary file. It is done (binary version 3.12.0) and it works well with the alias once installed: /Application/ParaView\ 3.12.0.app/Contents/MacOS/paraview I apologize and thank you for your patience. It is important: it is people like you who allow people like me to recover freedom-space in their work. I hope to be able to give help back to somebody. Best regards, VG |
Compilation errors
1 Attachment(s)
Hello
I have recently tried to compile OpenFoam version 2.1.1 on my iMac version 10.7.5, following closely what website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac gave as instructions. I had an mpi version of mpirun (Open MPI) 1.6.1 installed. I reached as far as creating the make.log file from the compilation and noticed the following errors configure: error: no vtf3.h found; check path for VTF3 package first... configure: error: no BPatch.h found; check path for Dyninst package first... etc I have attached a smaller version of the compilation log file for closer viewing. I look forward to any suggestions as why my attempt to compile OpenFoam failed on my iMac. David Olivieri |
Greetings David and welcome to the forum!
Quote:
You only have to worry if in the second run of Allwmake, if there are any error messages ;) Best regards, Bruno |
OpenFoam compilation problems on IMac
1 Attachment(s)
Hi Bruno
Thank you for your reply. In the website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac I do not see where it states that the command ./Allwake is issued twice. I could repeat everything again to ensure I have not done something wrong. Only thing is the compilation log I sent to the forum yesterday there are other errors occurring like 1) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[3]: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1 make[2]: *** [R] Error 2 2) OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/Lambda2 Making dependency list for source file wallShearStress.C g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/RASModel -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-1.5.3 -lPstream Make/darwinIntel64Gcc46DPOpt/createTurbulenceFields.o -L/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib \ -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lgenericPatchFields -lOpenFOAM -ldl -lpthread -lm -o /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/createTurbulenceFields Making dependency list for source file renumberMesh.C make[2]: Target `application' not remade because of errors. make[1]: *** [turbulence] Error 2 (See the attached file to see all of them) Please advise me on the best course of action. Finally, I must make you aware some of the patches did not patch properly. David Olivieri |
Hi David,
Sorry about that! I confused the instructions with the ones I wrote for Linux Distributions :( I've updated the wiki page, specifically the sections 2.6 and 2.6.1: http://openfoamwiki.net/index.php/Ho...lding_OpenFOAM
Best regards, Bruno |
More help needed
Hi Bruno
I have tried what you stated last time and got the following after doing Code:
./Allwmake Code:
make: Nothing to be done for `all'. Code:
Executing /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/bin/foamInstallationTest: Code:
alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc' David Olivieri |
Quote:
|
Hi
I did as was stated on http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac 2.3 Apply patches and tweaks Change into the Third-Party directory and apply the first patch via: patch -p1 <ThirdParty-2.1.0-Mac.patch and I got the following error patching file Allwmake patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM patching file scotch_5.1.11/src/Makefile.inc Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej remember I am using a patch correction on a version 2.2.1 of OpenFOAM. I look forward to your reply on this issue. David Olivieri |
ThirdParty-2.1.1.tar patch problem
Hello Bernhard
I have used the tar file ThirdParty-2.1.1.tar which I installed in the Third-Party directory to patch OpenFOAM build process. Why did I get the error message stated in my previous reply? :confused: It seems the patch failed to patch in the way you intended in the environment I have been working in. Do you have anything to say on this? The information which was stored in the file Makefile.inc.rej was as follows *************** *** 1 **** - ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64--- 1 ---- + ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM David Olivieri |
Greetings David,
This has actually already been asked and answered in the past: Quote:
Quote:
Bruno |
OpenFOAM issues with iMac Lion version 10.7.5
Hello Bruno
Thank you for your reply. Recently I tried to install OpenFOAM again following closely what is given on website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac I applied the patches as stated in section 2.3 and also patches SetNanMac.patch and OpenFOAM-2.1.x-Mac_20121009.patch given on website http://www.cfd-online.com/Forums/ope...tml#post385688 I then applied the following instructions for build ./Allwmake wcleanAll wcleanLnIncludeAll ./Allwmake and got some of the following errors from the build make[2]: `libptscotchparmetis.dylib' is up to date. cp parmetis.h ../../include cp libptscotchparmetis.dylib ../../lib + make prefix=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 libdir=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-1.5.3 includedir=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/include/openmpi-1.5.3 install mkdir /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/include/openmpi-1.5.3 cp -f ../bin/[agm]* /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/bin cp: ../bin/[agm]*: No such file or directory make: [install] Error 1 (ignored) signals/sigFpe.C: In destructor 'Foam::sigFpe::~sigFpe()': signals/sigFpe.C:175:12: error: 'system_malloc_' was not declared in this scope signals/sigFpe.C:392:13: error: 'vm_protect' was not declared in this scope make: *** [Make/darwinIntel64Gcc46DPOpt/sigFpe.o] Error 1 g++-mp-4.6: error: /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libOSspecific.o: No such file or directory make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libOpenFOAM.dylib] Error 1 darwinIntel64Gcc46DPOpt/radialActuationDiskSource.o ld: library not found for -lOpenFOAM collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libfiniteVolume.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libgenericPatchFields.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libreconstruct.dylib] Error 1 ld: library not found for -ldecompositionMethods collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libdistributed.dylib] Error 1 ld: library not found for -ldynamicMesh collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libdynamicFvMesh.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libreactionThermophysicalModels.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/liblaminarFlameSpeedModels.dylib] Error 1 ld: library not found for -lbasicThermophysicalModels collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libchemistryModel.dylib] Error 1 and finally at the of the make.log file I got the error ld: library not found for -lmultiphaseSystem collect2: ld returned 1 exit status make[2]: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam] Error 1 make[1]: *** [multiphaseEulerFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [multiphase] Error 2 make: Target `application' not remade because of errors. Bernhard's patches had the usual error message with the first patch for the third party libraries, while last two patches had doubtful use. For example applying the last patch with the command patch -p1 <SetNanMac-1.patch gave the message patching file src/OSspecific/POSIX/signals/sigFpe.C Reversed (or previously applied) patch detected! Assume -R? [n] Where is occurred I responded with yes and got Hunk #1 succeeded at 51 (offset 5 lines). Hunk #2 FAILED at 101. Hunk #3 succeeded at 139 (offset -25 lines). Hunk #4 succeeded at 245 (offset -3 lines). Hunk #5 succeeded at 275 (offset -3 lines). 1 out of 5 hunks FAILED -- saving rejects to file src/OSspecific/POSIX/signals/sigFpe.C.rej Anyway, I look forward to any suggestions on how the build could be better done. Maybe the implementation of the patches needs more clarification. :( David Olivieri |
Quote:
1. Published first version of the 2.1-patch 2. Developed NaN-fix 3. Published NaN-fix for those who already installed the old version 4. Rolled the NaN-fix into the general patch and published that too (for the new ones) So the NaN-patch probably doesn't work because you used the patch that already has it included. What is the other patch that doesn't work for you? |
A message
Hi
My experience with these patches has been as follows :- 1) ThirdParty-2.1.0-Mac.patch applied and gave Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED (Explained earlier by Bruno as non serious.) 2) OpenFOAM-2.1.x-Mac_20121009.patch applied with command patch -p1 <OpenFOAM-2.1.x-Mac_20121009.patch gave Reversed or previous applied error. Therefore, I can concluded I should start again this time not applying the Third Party patch and the other two patches OpenFOAM-2.1.x-Mac_20121009.patch SetNanMac-1.patch If the OpenFOAM completes compilation how could I check quickly to see if the process has completed properly? Another issue where you give advice on using the alias alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' in the user's .profile file, the PATH given above for the hdiutil command I believe should be alias of21='hdiutil attach "~/OpenFOAM-v2.1.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' The reason why I send this is an error occurs complaining no file called OpenFOAM.dmg exists since a sparse image file has been created not ending with *.dmg ,correct me if I am wrong. David Olivieri |
Quote:
Quote:
Quote:
|
OpenFOAM installation on SnowLeopard
Hi,
I have recently decided to make the switch from ANSYS FLUENT to OpenFOAM due to some extensive issues with licensing. I don't currently have access to a Linux machine, but my school computer is a Mac running 10.6.8 (Snow Leopard). I have tried very hard to follow the instructions in the wiki - Installation/Mac OS/OpenFOAM 2.1.x - as carefully as possible. However, I am having a few issues. I'm really sorry for the length of this post. I think maybe I am putting too much information in one post. Versions I'm using: Apple Mac OS X 10.6.8 Xcode 3.2.6 (I think this is the same as Apple Developer Tools 3.2.6?) MacPorts 2.2.1 (For Snow Leopard 10.6) Patches: ThirdParty-2.1.0-Mac.patch OpenFOAM-2.1.x-Mac_20130125.patch OpenFOAM-2.1.x-Mac-gcc46.patch Error associated with checking the MacPorts software installation: After entering "sudo port selfupdate", I got an error stating: Code:
sudo: port: command not found Code:
export PATH=$PATH:/opt/local/bin export Error associated with applying ThirdParty patch: Applying the ThirdParty-2.1.0-Mac.patch yields the following error (which is not an issue according to post #4 and many subsequent posts by Bruno so I ignored it and kept going): Code:
patching file Allwmake Errors associated with applying OpenFOAM-2.1.x-Mac_20130125 patch: Applying this patch worked partially. The following are the failure notifications that I got. Code:
Hunk #1 FAILED at 19. Errors associated with building OpenFOAM: So far as I can tell, there are three primary errors that I encounter when trying to build OpenFOAM. The first is related to ptscotch.h (not sure what to do about this): Code:
Making dependency list for source file ptscotchDecomp.C Code:
ld: library not found for -lchemistryModel Code:
Undefined symbols for architecture x86_64: Code:
Undefined symbols for architecture x86_64: |
All times are GMT -4. The time now is 13:36. |