CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

Compile OF 2.3 on Mac OS X .... the patch

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree8Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 15, 2014, 00:54
Default Openfoam2.3 on Mac 10.9
  #101
New Member
 
Juimo Pierre
Join Date: Aug 2012
Posts: 13
Rep Power: 6
Roskiki is on a distinguished road
how to compile ThirPArty-2.3.x on mac 10.9?

how to compute in parallel ?

Last edited by Roskiki; August 18, 2014 at 12:23.
Roskiki is offline   Reply With Quote

Old   October 22, 2014, 06:14
Default
  #102
Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 66
Rep Power: 5
tidusuper91 is on a distinguished road
Quote:
Originally Posted by Roskiki View Post
how to compile ThirPArty-2.3.x on mac 10.9?

how to compute in parallel ?
If you installed all the Thirdparty utilities with Macports you should not need to compile it.

To test parallel computing try to run a case that uses decomposeParDict.
tidusuper91 is offline   Reply With Quote

Old   October 22, 2014, 13:03
Default
  #103
Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 66
Rep Power: 5
tidusuper91 is on a distinguished road
Hello everyone, I'm not getting errors in the compilation process with Gcc48 (I attached the log) but if I run any OF function (blockMesh, icoFoam on tutorials) i get segmentation fault: 11 error.

Someone can give an hint about that?

LOG: https://mega.co.nz/#!qE9zHKBT!Y_1qx4...x2gDmHmOAGayfY
(It was too big for forum limits)

(I followed these instructions because I had same issues )

PS: I'm on Yosemite
tidusuper91 is offline   Reply With Quote

Old   October 22, 2014, 15:07
Default
  #104
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by tidusuper91 View Post
Hello everyone, I'm not getting errors in the compilation process with Gcc48 (I attached the log) but if I run any OF function (blockMesh, icoFoam on tutorials) i get segmentation fault: 11 error.

Someone can give an hint about that?

LOG: https://mega.co.nz/#!qE9zHKBT!Y_1qx4...x2gDmHmOAGayfY
(It was too big for forum limits)

(I followed these instructions because I had same issues )

PS: I'm on Yosemite
You just recently upgraded to Yosimite but installed your MacPorts stuff before on Mavericks? Just a theory. (I think they recommend on the MacPorts-site to reinstall after an OS-update)

I usually wait a couple of weeks before upgrading my Mac OS X. It just makes life so much easier
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 22, 2014, 15:21
Default
  #105
Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 66
Rep Power: 5
tidusuper91 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
You just recently upgraded to Yosimite but installed your MacPorts stuff before on Mavericks? Just a theory. (I think they recommend on the MacPorts-site to reinstall after an OS-update)

I usually wait a couple of weeks before upgrading my Mac OS X. It just makes life so much easier
Just followed the Migration guide on Macports site: basically they make you reinstall everything after the update.
Moreover it seems that on Macports they are having some troubles with libgcc. They say to have fixed it with Gcc48 and later. I try to update Macports...
tidusuper91 is offline   Reply With Quote

Old   October 22, 2014, 15:43
Default
  #106
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,410
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

7z? It's good
alexeym is offline   Reply With Quote

Old   October 22, 2014, 16:54
Default
  #107
Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 66
Rep Power: 5
tidusuper91 is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

7z? It's good
Yes but the forum doesn't accept .7z files
tidusuper91 is offline   Reply With Quote

Old   October 23, 2014, 05:26
Default
  #108
Member
 
Ruben Di Battista
Join Date: May 2013
Location: Milan
Posts: 66
Rep Power: 5
tidusuper91 is on a distinguished road
Ok. I confirm that after the update of libgcc and gcc48 I successfully compiled OpenFOAM on Yosemite.

As I have some sparetime I create the new Wiki page.

Thanks gschaider for the patch and the users for the support with the missing linking libraries for interFoam.
tidusuper91 is offline   Reply With Quote

Old   October 23, 2014, 08:56
Default
  #109
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by tidusuper91 View Post
Ok. I confirm that after the update of libgcc and gcc48 I successfully compiled OpenFOAM on Yosemite.

As I have some sparetime I create the new Wiki page.

Thanks gschaider for the patch and the users for the support with the missing linking libraries for interFoam.
Thanks. For

a) running into the fire
b) feedback on the success (not everyone does that)
c) the intention to share your experience on the Wiki
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 25, 2014, 22:03
Default swak4Foam and ThirdParty-2.3.x on mac 10.10 (Yosemite)
  #110
New Member
 
Juimo Pierre
Join Date: Aug 2012
Posts: 13
Rep Power: 6
Roskiki is on a distinguished road
1-how to install ThirdParty-2.3.x with MAcport on mac os 10.10 (Yosemite).

2- swak4foam error...

make[1]: *** [/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/fieldReport] Error 1
make: *** [fieldReport] Error 2
Making dependency list for source file funkyDoCalc.C
SOURCE=funkyDoCalc.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkyDoCalc.o
g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/funkyDoCalc.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc
Undefined symbols for architecture x86_64:
"Foam:refixOSstream::writeQuoted(std::basic_stri ng<char, std::char_traits<char>, std::allocator<char> > const&, bool)", referenced from:
vtable for Foam:ebugOStream in funkyDoCalc.o
"Foam::OSstream::flags(std::_Ios_Fmtflags)", referenced from:
vtable for Foam:ebugOStream in funkyDoCalc.o
"Foam::fileName:perator=(std::basic_string<c har, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
_main in funkyDoCalc.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2

SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled

Making dependency list for source file funkySetBoundaryField.C
could not open file directMappedPatchBase.H for source file funkySetBoundaryField.C due to No such file or directory
SOURCE=funkySetBoundaryField.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkySetBoundaryField.o
g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/funkySetBoundaryField.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkySetBoundaryField
Making dependency list for source file funkySetFields.C
could not open file directMappedFvPatch.H for source file funkySetFields.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file funkySetFields.C due to No such file or directory
could not open file directMappedPointPatch.H for source file funkySetFields.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file funkySetFields.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file funkySetFields.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file funkySetFields.C due to No such file or directory
SOURCE=funkySetFields.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkySetFields.o
g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/funkySetFields.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -lsampling -L/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkySetFields
Making dependency list for source file funkySetLagrangianField.C
could not open file Particle.H for source file funkySetLagrangianField.C due to No such file or directory
SOURCE=funkySetLagrangianField.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/lagrangian/basic/lnInclude -I../../Libraries/swakLagrangianParser/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkySetLagrangianField.o
g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/lagrangian/basic/lnInclude -I../../Libraries/swakLagrangianParser/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/funkySetLagrangianField.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -llagrangian -L/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/lib -lswakLagrangianParser -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkySetLagrangianField
Undefined symbols for architecture x86_64:
"Foam:refixOSstream::writeQuoted(std::basic_stri ng<char, std::char_traits<char>, std::allocator<char> > const&, bool)", referenced from:
vtable for Foam:ebugOStream in funkySetLagrangianField.o
"Foam::OSstream::flags(std::_Ios_Fmtflags)", referenced from:
vtable for Foam:ebugOStream in funkySetLagrangianField.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkySetLagrangianField] Error 1
make: *** [funkySetLagrangianField] Error 2
Making dependency list for source file funkyWarpMesh.C
could not open file directMappedFvPatch.H for source file funkyWarpMesh.C due to No such file or directory
could not open file directMappedWallFvPatch.H for source file funkyWarpMesh.C due to No such file or directory
could not open file directMappedPointPatch.H for source file funkyWarpMesh.C due to No such file or directory
could not open file FixedValuePointPatchField.H for source file funkyWarpMesh.C due to No such file or directory
could not open file ZeroGradientPointPatchField.H for source file funkyWarpMesh.C due to No such file or directory
could not open file CalculatedPointPatchField.H for source file funkyWarpMesh.C due to No such file or directory
SOURCE=funkyWarpMesh.C ; g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/funkyWarpMesh.o
g++ -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/sampling/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/funkyWarpMesh.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/funkyWarpMesh
Making dependency list for source file replayTransientBC.C
SOURCE=replayTransientBC.C ; g++ -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/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/cfdTools/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/cfdTools/general/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/replayTransientBC.o
g++ -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/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/cfdTools/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/cfdTools/general/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib/openmpi-1.6.5 -lPstream Make/darwinIntel64GccDPOpt/replayTransientBC.o -L/Users/Mowa/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -lOpenFOAM -ldl -lpthread -lm -o /Users/Mowa/OpenFOAM/root-2.3.x/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC
make: Target `application' not remade because of errors.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/Mowa/OpenFOAM/swak4Foam_2.x/Libraries (most people will be fine without setting that variable)



please code.

Last edited by Roskiki; October 31, 2014 at 23:38.
Roskiki is offline   Reply With Quote

Old   November 4, 2014, 11:45
Default installation script
  #111
New Member
 
Ruud Vlaming
Join Date: Aug 2013
Posts: 6
Rep Power: 5
devlaam is on a distinguished road
Hey,

Just finished the process of installing openFOAM 2.3.x on my Mac. I captured the process and put the instructions on github see:

https://github.com/devlaam/

Basically the installation should now simplify to the following procedure.
  1. Make a case sensitve partition (yes, my script refuses to run on the mac default partition)
  2. Make sure you have macports on board.
  3. Then, on a suitable directory on your case sensitve partition type:
    git clone git://github.com/devlaam/openfoam-mac-install.git
    cd openfoam-mac-install
    sudo ./prepare-openfoam-2.3.x install
    ./install-openfoam-2.3.x install
    ./install-openfoam-2.3.x compile

And your good to go! [If you type the commands without these arguments, you get help in more detail.]

btw: this is the first release, so probably there is room for improvement. Not tested on Yosemite yet.

Have fun.
Ruud Vlaming.
makaveli_lcf likes this.
devlaam is offline   Reply With Quote

Old   November 5, 2014, 05:23
Default
  #112
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by devlaam View Post
Hey,

Just finished the process of installing openFOAM 2.3.x on my Mac. I captured the process and put the instructions on github see:

https://github.com/devlaam/

Basically the installation should now simplify to the following procedure.
  1. Make a case sensitve partition (yes, my script refuses to run on the mac default partition)
  2. Make sure you have macports on board.
  3. Then, on a suitable directory on your case sensitve partition type:
    git clone git://github.com/devlaam/openfoam-mac-install.git
    cd openfoam-mac-install
    sudo ./prepare-openfoam-2.3.x install
    ./install-openfoam-2.3.x install
    ./install-openfoam-2.3.x compile

And your good to go! [If you type the commands without these arguments, you get help in more detail.]

btw: this is the first release, so probably there is room for improvement. Not tested on Yosemite yet.

Have fun.
Ruud Vlaming.
Nice. I'm sure that as soon as you get positive feedback you will add it to the relevant page on the Wiki, right?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 5, 2014, 12:23
Default
  #113
New Member
 
Ruud Vlaming
Join Date: Aug 2013
Posts: 6
Rep Power: 5
devlaam is on a distinguished road
Quote:
Nice. I'm sure that as soon as you get positive feedback you will add it to the relevant page on the Wiki, right?
sure, no prob.
devlaam is offline   Reply With Quote

Old   December 4, 2014, 07:21
Default
  #114
New Member
 
Join Date: Jun 2012
Posts: 5
Rep Power: 6
serviet is on a distinguished road
Finally working on yosemite with gcc4.8 Thanks gschaider!

after a lot of missing library error messages, just a little comment to add :

When setting the environment paths, i still saw referencies to the Thirdparty directory... In fact the variable $WM_USE_MACPORT was not set properly in etc/config/settings.sh due to the command 'which' which was returning (on my system) :
Code:
which -s port  ; echo $?
/opt/local/bin/port
1
and not 0. Changing the test l.200 of etc/config/settings.sh
Code:
if [ $? -eq "1" -a -d '/opt/local/etc/macports' ]
did the trick. For those who have linking problem, check the differents env variable with command 'printenv'.
serviet is offline   Reply With Quote

Old   December 4, 2014, 17:02
Default
  #115
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by serviet View Post
Finally working on yosemite with gcc4.8 Thanks gschaider!

after a lot of missing library error messages, just a little comment to add :

When setting the environment paths, i still saw referencies to the Thirdparty directory... In fact the variable $WM_USE_MACPORT was not set properly in etc/config/settings.sh due to the command 'which' which was returning (on my system) :
Code:
which -s port  ; echo $?
/opt/local/bin/port
1
and not 0. Changing the test l.200 of etc/config/settings.sh
Code:
if [ $? -eq "1" -a -d '/opt/local/etc/macports' ]
did the trick. For those who have linking problem, check the differents env variable with command 'printenv'.
That is strange. The 1-thing. Rechecked and my Maverick-System always returned 0 (on bash and zsh). I assume you use bash. Which version does "bash -version" report?

Ah. The "joys" of shell-scripting
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 5, 2014, 05:21
Default
  #116
New Member
 
Join Date: Jun 2012
Posts: 5
Rep Power: 6
serviet is on a distinguished road
yes I guess 3.2.53
the 1 return code stands for the number of arguments which failed, and in my case it seems the which command just doesnt get the -s option...
Code:
which port  ; echo $?
/opt/local/bin/port
0
Curious to know if it's the case for other people. btw thank you all again, OF works great!
serviet is offline   Reply With Quote

Old   December 5, 2014, 08:04
Default
  #117
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,410
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi, here's the output on my Yosemite:

Code:
myself at daphne in ~$ which -s brew ; echo $?
0

myself at daphne in ~$ which -s port ; echo $?
1

myself at daphne in ~$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.10.1
BuildVersion:	14B25

myself at daphne in ~$ bash --version
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.

myself at daphne in ~$ type which
which is hashed (/usr/bin/which)
alexeym is offline   Reply With Quote

Old   December 9, 2014, 08:23
Default
  #118
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexeym View Post
Hi, here's the output on my Yosemite:

Code:
myself at daphne in ~$ which -s brew ; echo $?
0

myself at daphne in ~$ which -s port ; echo $?
1

myself at daphne in ~$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.10.1
BuildVersion:	14B25

myself at daphne in ~$ bash --version
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.

myself at daphne in ~$ type which
which is hashed (/usr/bin/which)
Difference between port and brew is? One is installed, the other one isn't?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 9, 2014, 08:27
Default
  #119
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,410
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
Yes, brew is installed, port is not. I.e. it's documented behavior of the -s flag:

Code:
...
DESCRIPTION
...
     -s      No output, just return 0 if any of the executables are found, or 1 if none
             are found.
...
alexeym is offline   Reply With Quote

Old   December 9, 2014, 08:54
Default
  #120
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,926
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alexeym View Post
Yes, brew is installed, port is not. I.e. it's documented behavior of the -s flag:

Code:
...
DESCRIPTION
...
     -s      No output, just return 0 if any of the executables are found, or 1 if none
             are found.
...
I was a bit confused because I mixed you up with the other guy who HAD port installed
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 110 April 21, 2016 11:54
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 15:12.