CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch (https://www.cfd-online.com/Forums/openfoam-installation/130113-compile-2-3-mac-os-x-patch.html)

Roskiki May 18, 2014 14:58

it is the same solution

1- in fact it's just addition of a line "-lincompressibleTransportModels \" and
" -linterfaceProperties" in Make/option
2- wmake

source alexeym

f0208secretx May 18, 2014 19:49

Quote:

Originally Posted by Roskiki (Post 492717)
it is the same solution

1- in fact it's just addition of a line "-lincompressibleTransportModels \" and
" -linterfaceProperties" in Make/option
2- wmake

source alexeym

Thanks Roskiki and alexeym, it compiles now.

For the complete record, I changed the options file in the following folders manually,
$FOAM_APP/solvers/multiphase/driftFluxFoam/Make
$FOAM_APP/solvers/multiphase/interFoam/Make
$FOAM_APP/solvers/multiphase/interDyMFoam/Make
$FOAM_APP/solvers/multiphase/porousInterFoam/Make
$FOAM_APP/solvers/multiphase/LTSInterFoam/Make

For each of the options file, I added
Code:

-lincompressibleTransportModels \
-linterfaceProperties \

in the list of EXE_LIBS.

Thanks for the help.


JHW

frantov May 23, 2014 03:57

...paraview
 
Hello
I have successfully installed OF 2.3 in MacOS, cases are running :) But cant get Paraview to run. I can open it independently, but I guess Im missing a way to link it. Hope someone can help.

when I write in terminal: paraFoam, this is what I got:

>> paraFoam
created temporary 'OpenFOAM-2.3.0.foam'
/Users/frantov/OpenFOAM/OpenFOAM-2.3.0/bin/paraFoam: line 265: paraview: command not found

alexeym May 23, 2014 04:53

Hi,

I guess it's the same error as:

http://www.cfd-online.com/Forums/ope...tml#post491039

gschaider May 23, 2014 06:25

Quote:

Originally Posted by frantov (Post 493747)
Hello
I have successfully installed OF 2.3 in MacOS, cases are running :) But cant get Paraview to run. I can open it independently, but I guess Im missing a way to link it. Hope someone can help.

when I write in terminal: paraFoam, this is what I got:

>> paraFoam
created temporary 'OpenFOAM-2.3.0.foam'
/Users/frantov/OpenFOAM/OpenFOAM-2.3.0/bin/paraFoam: line 265: paraview: command not found

Currently the patch assumes that you've got the official Paraview-binaries installed as ParaView in your applications folder (/Applications/ParaView.app on the shell). If it doesn't find that it will do nothing. Otherwise it will create an alias to the paraview-binary.

paraFoam won't work though as the filter distributed with OpenFOAM needs a source-installation of paraview. But paraview has a fine built-in OpenFOAM-filter. That's why I currently don't bother to install it from source

alexeym May 23, 2014 18:26

Dear Bernhard,

I'm not quite sure that the problem is in desire to build Paraview from sources. To illustrate the problem, I've created test.sh and test1.sh files (it's more or less vanilla OS X 10.9, maybe Macports installs its own version of bash). test.sh is:

Code:

#!/bin/sh

alias lha='ls -lha'

test1.sh is

Code:

#!/bin/sh

lha

Analog of 'source $WM_PROJECT_DIR/etc/bashrc' is 'source test.sh' and analog of paraFoam is ./test1.sh (as during first step alias is created and during second step we are trying to execute created alias). The result is the same as in error messages of the people reported here:

Code:

$ . test.sh
$ ./test1.sh
./test1.sh: line 3: lha: command not found

IIRC I had this problem with 2.1.1 patch but I've create symlink to paraview in $PATH, so the problem was solved (surely paraview.app was installed in binary form).

If I change test.sh to:

Code:

#!/bin/sh

lha() {
    ls -lha
}

export -f lha

then ./test1.sh will return listing of cwd.

Maybe it's worth changing alias to function in future patches? Also there was an issue with driftFluxFoam.

gschaider May 24, 2014 11:08

Quote:

Originally Posted by alexeym (Post 493869)
Dear Bernhard,

I'm not quite sure that the problem is in desire to build Paraview from sources. To illustrate the problem, I've created test.sh and test1.sh files (it's more or less vanilla OS X 10.9, maybe Macports installs its own version of bash). test.sh is:

Code:

#!/bin/sh

alias lha='ls -lha'

test1.sh is

Code:

#!/bin/sh

lha

Analog of 'source $WM_PROJECT_DIR/etc/bashrc' is 'source test.sh' and analog of paraFoam is ./test1.sh (as during first step alias is created and during second step we are trying to execute created alias). The result is the same as in error messages of the people reported here:

Code:

$ . test.sh
$ ./test1.sh
./test1.sh: line 3: lha: command not found

IIRC I had this problem with 2.1.1 patch but I've create symlink to paraview in $PATH, so the problem was solved (surely paraview.app was installed in binary form).

If I change test.sh to:

Code:

#!/bin/sh

lha() {
    ls -lha
}

export -f lha

then ./test1.sh will return listing of cwd.

Maybe it's worth changing alias to function in future patches? Also there was an issue with driftFluxFoam.

OK. Wasn't aware that the alias doesn't work because I usually use paraview as paraview. Mainly because paraFoam doesn't bring me any additional benefits as only the built-in reader works (the one tht comes with the OpenFOAM-sources NEEDs a paraview-installation from sources). But I'll have a look at converting the alias to a function.

About driftFluxFoam. There is a problem with it not linking, right? Adding -ltwoPhaseMixture to Make/options fixes that. It's not in the patch because the solver has been added only recently and I don't rush out a new version of the patch every time something changes (especially in cases like this where nothing else depends on the compilation failure).

alexeym May 25, 2014 12:41

Quote:

Originally Posted by gschaider (Post 493942)
Mainly because paraFoam doesn't bring me any additional benefits as only the built-in reader works

Well, at least if creates *.foam file for you and pass necessary flags to paraview. Also it's a workflow one gets used to on Linux.

Quote:

(the one tht comes with the OpenFOAM-sources NEEDs a paraview-installation from sources).
Not exactly. By default yes, but paraFoam has -builtin flag for built-in paraview OpenFOAM reader. Also one can edit lines 71 and 73 of paraFoam file to permanently remove the requirement of PV3Readers compilation.

frantov May 26, 2014 06:20

parafoam solved
 
Hi All
problem was solved after reinstalling everything. I think I messed up with the creation of the .sparseimage file.
Thanks a lot
F

gschaider May 26, 2014 19:34

Quote:

Originally Posted by alexeym (Post 494042)
Well, at least if creates *.foam file for you and pass necessary flags to paraview. Also it's a workflow one gets used to on Linux.



Not exactly. By default yes, but paraFoam has -builtin flag for built-in paraview OpenFOAM reader. Also one can edit lines 71 and 73 of paraFoam file to permanently remove the requirement of PV3Readers compilation.

OK. We're entering the territory where differences between solutions are 5 key-strokes and the main reason why people do things one way or another is habit. For me the main reason is that I used the built-in reader before paraFoam had a -builtin-flag. PyFoam adds a .foam-file to every case it touches and for me "paraview --data=foo.foam" is almost as simple as "paraFoam --builtin"

maCrobo June 19, 2014 16:59

Parallel running on Mavericks 10.9.1
 
Has anyone tried parallel running on a single machine?

I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.

I would like to get some feedback on that; has anyone tried and succeeded?

RMacReamoinn June 19, 2014 17:04

Quote:

Originally Posted by maCrobo (Post 497850)
Has anyone tried parallel running on a single machine?

I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.

I would like to get some feedback on that; has anyone tried and succeeded?

I have an MacBook Pro with i7 quad core. I ran one of the tutorials that utilises parallel processing and it ran fine.

maCrobo June 19, 2014 17:39

Quote:

Originally Posted by RMacReamoinn (Post 497851)
I have an MacBook Pro with i7 quad core. I ran one of the tutorials that utilises parallel processing and it ran fine.

What tutorial?

RMacReamoinn June 19, 2014 17:50

If I remember correctly it was the wingMotion tutorial in the incompressible/pimpleDyMFoam/ directory.

alexeym June 20, 2014 01:04

Hi,

Quote:

Originally Posted by maCrobo (Post 497850)
I've started to use the program for a few weeks on Mavericks (10.9.1). Today, I wanted to see how to perform a parallel run on a i7 quad core. I know it is possible, but I get some errors.

Can you post error message(s)? I've run it in parallel on a single machine and it was OK.

maCrobo June 22, 2014 10:28

Well, I'm sorry that I didn't reply sooner, but the problem was not in the program itself but in some cell distortion I got after scaling the mesh with different ratios in different directions.

I took the engineFoam tutorial, scaled its mesh to (0.7 0.7 0.5) to make it closer to my cylinder, split the domain in 4 parts and it diverged. Using 2 subdomains solved the problem.
I know I should have made a new mesh, but I did't know a fast way for it.
As far as the tutorials I made a stupid mistake.

Bye.

dav.dap83 July 5, 2014 15:43

I am encountering some problems in compiling.

Every time it attempts to compile something, it writes:

Code:

ld: library not found for -lPstream
collect2: ld returned 1 exit status


gschaider July 9, 2014 16:47

Quote:

Originally Posted by dav.dap83 (Post 500230)
I am encountering some problems in compiling.

Every time it attempts to compile something, it writes:

Code:

ld: library not found for -lPstream
collect2: ld returned 1 exit status


The problem must have happened before (during compilation of Pstream). A LITTLE bit of context would be helpful

Roskiki August 12, 2014 07:45

Pre-compiled disk images of version 2.3.x for Mac 10.9?
 
Pre-compiled disk images of version 2.3.x for Mac 10.9? :confused:

gschaider August 12, 2014 15:03

Quote:

Originally Posted by Roskiki (Post 505551)
Pre-compiled disk images of version 2.3.x for Mac 10.9? :confused:

None that I know of (but I haven't looked very much for precompiled versions to be honest). Closest thing I know of is found at https://sourceforge.net/projects/ope...am-extend-3.1/ (but of course that is the other fork).

Roskiki August 15, 2014 00:54

Openfoam2.3 on Mac 10.9
 
how to compile ThirPArty-2.3.x on mac 10.9?

how to compute in parallel ?

rdbisme October 22, 2014 06:14

Quote:

Originally Posted by Roskiki (Post 506075)
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.

rdbisme October 22, 2014 13:03

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

gschaider October 22, 2014 15:07

Quote:

Originally Posted by tidusuper91 (Post 515591)
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

rdbisme October 22, 2014 15:21

Quote:

Originally Posted by gschaider (Post 515610)
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...

alexeym October 22, 2014 15:43

Hi,

7z? It's good ;)

rdbisme October 22, 2014 16:54

Quote:

Originally Posted by alexeym (Post 515614)
Hi,

7z? It's good ;)

Yes but the forum doesn't accept .7z files :)

rdbisme October 23, 2014 05:26

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.

gschaider October 23, 2014 08:56

Quote:

Originally Posted by tidusuper91 (Post 515702)
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

Roskiki October 25, 2014 22:03

swak4Foam and ThirdParty-2.3.x on mac 10.10 (Yosemite)
 
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::prefixOSstream::writeQuoted(std::basic_stri ng<char, std::char_traits<char>, std::allocator<char> > const&, bool)", referenced from:
vtable for Foam::DebugOStream in funkyDoCalc.o
"Foam::OSstream::flags(std::_Ios_Fmtflags)", referenced from:
vtable for Foam::DebugOStream in funkyDoCalc.o
"Foam::fileName::operator=(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::prefixOSstream::writeQuoted(std::basic_stri ng<char, std::char_traits<char>, std::allocator<char> > const&, bool)", referenced from:
vtable for Foam::DebugOStream in funkySetLagrangianField.o
"Foam::OSstream::flags(std::_Ios_Fmtflags)", referenced from:
vtable for Foam::DebugOStream 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.

devlaam November 4, 2014 10:45

installation script
 
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.

gschaider November 5, 2014 04:23

Quote:

Originally Posted by devlaam (Post 517335)
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?

devlaam November 5, 2014 11:23

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.

serviet December 4, 2014 06:21

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'.

gschaider December 4, 2014 16:02

Quote:

Originally Posted by serviet (Post 522449)
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

serviet December 5, 2014 04:21

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!

alexeym December 5, 2014 07:04

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)


gschaider December 9, 2014 07:23

Quote:

Originally Posted by alexeym (Post 522617)
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?

alexeym December 9, 2014 07:27

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.
...


gschaider December 9, 2014 07:54

Quote:

Originally Posted by alexeym (Post 523129)
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


All times are GMT -4. The time now is 02:59.