CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Installing swak4Foam to OpenFOAM in mac

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2012, 02:18
Unhappy Installing swak4Foam to OpenFOAM in mac
  #1
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
Hi, I'm trying to use OpenFOAM in my MacBookPro (mountain lion).

I've installed OpenFOAM-2.1.x successfully.
Although Tutorial cases can work properly, after I installed swak4Foam, the Example cases of swak4Foam won't work!

I'll explain in more detail.
I made "Libraries" folder in "run" directory and typed

$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

and do
$ wmake all (I attached log file)
in the swak4Foam directory.

There seems to be no error in the log. So in Examples/groovyBC/fillingTheDam/ directory, I made meshes, then the error messgage came out.


$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : blockMesh
Date : Aug 15 2012
Time : 13:54:22
Host : Kaquesangs-Mac.local
PID : 9923
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"

Creating block mesh from
"/Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty
--> FOAM Warning :
From function polyMesh:olyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 881
Found 10 undefined faces in mesh; adding to default patch.

Check topology

Basic statistics
Number of internal faces : 4
Number of boundary faces : 22
Number of defined boundary faces : 22
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.146

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 0 0) (0.584 0.584 0.0146)
nPoints: 4746
nCells: 2268
nFaces: 9176
nInternalFaces: 4432
----------------
Patches
----------------
patch 0 (start: 4432 size: 50) name: leftWall
patch 1 (start: 4482 size: 50) name: rightWall
patch 2 (start: 4532 size: 62) name: lowerWall
patch 3 (start: 4594 size: 46) name: atmosphere
patch 4 (start: 4640 size: 4536) name: defaultFaces

End

$ interFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : interFoam
Date : Aug 15 2012
Time : 13:55:18
Host : Kaquesangs-Mac.local
PID : 9932
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field alpha1



--> FOAM FATAL IO ERROR:
Unknown patchField type groovyBC for patch type wall


Valid patchField types are :

68
(
advective
alphaFixedPressure
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
constantAlphaContactAngle
cyclic
cyclicSlip
directMapped
directMappedField
directMappedFixedInternalValue
directMappedFixedPushedInternalValue
directionMixed
dynamicAlphaContactAngle
empty
epsilonWallFunction
fan
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mixed
nonuniformTransformCyclic
nuSgsUSpaldingWallFunction
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
selfContainedDirectMapped
sliced
slip
symmetryPlane
syringePressure
timeVaryingAlphaContactAngle
timeVaryingMappedFixedValue
timeVaryingTotalPressure
timeVaryingUniformFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
waveTransmissive
wedge
zeroGradient
)


file: /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/0/alpha1::boundaryField::rightWall from line 30 to line 34.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /Users/hoge/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.

FOAM exiting


As I looked into /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)

I guess "wmake all" didn't succeed. But I don't know what was wrong and what should I do.
Please give me some advice!

regard.

p.s.
As my mother tongue isn't English, please forgive grammer mistakes, if any.
Kaquesang is offline   Reply With Quote

Old   August 15, 2012, 02:24
Default log file
  #2
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
sorry, I forgot to attach log file.
Attached Files
File Type: txt log.txt (73.8 KB, 6 views)
Kaquesang is offline   Reply With Quote

Old   August 15, 2012, 08:19
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Kaquesang and welcome to the forum!

If you edit the file "system/controlDict" of the tutorial you're testing and changes the references from "libgroovyBC.so" to "libgroovyBC.dylib" and so on, it still won't work?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2012, 08:44
Default
  #4
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
Thank you for the reply, Bruno!

No, it still won't work...

In /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)
Kaquesang is offline   Reply With Quote

Old   August 15, 2012, 09:08
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
OK, the log is incomplete, because there aren't any error messages. Please run it like this:
Code:
./Allwmake > make.log 2>&1
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2012, 09:27
Default
  #6
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
Oh, I didn't notice of that.

OK, I did
Code:
./Allwmake > make.log 2>&1
I attached the log file.
There seems to be an error as below
Code:
groovyBCJumpFvPatchField.H:46:35: fatal error: fixedJumpFvPatchField.H: No such file or directory
compilation terminated.
Attached Files
File Type: zip make.log.zip (18.1 KB, 5 views)
Kaquesang is offline   Reply With Quote

Old   August 15, 2012, 09:45
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
You can check if that file exists by running:
Code:
ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
If it's not found, then there is something strange happening with your installation of OpenFOAM 2.0.x.

By the way, in the first post you mention OpenFOAM 2.1.x... does this mean you have both 2.0.x and 2.1.x installed in your machine?
If you do have both, then how are you making sure that only the correct one is loaded?
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2012, 10:04
Default
  #8
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
Code:
ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
ls: /Users/yuuki_sumi_h15/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fixedJumpFvPatchField.H: No such file or directory
Hmm...it seems that I have to reinstall OpenFOAM.

Quote:
Originally Posted by wyldckat View Post
By the way, in the first post you mention OpenFOAM 2.1.x... does this mean you have both 2.0.x and 2.1.x installed in your machine?
Sorry, "2.1.x" was wrong, my OpenFOAM version is "2.0.x" and the only one.
Kaquesang is offline   Reply With Quote

Old   August 15, 2012, 10:14
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Kaquesang View Post
Code:
ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
ls: /Users/yuuki_sumi_h15/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fixedJumpFvPatchField.H: No such file or directory
If you compare with the outputs from your first post, this path shows up: "/Volumes/Mac-OF-2.0.x/", which is very different from "/Users/yuuki_sumi_h15/OpenFOAM/".

I don't know which instructions you've followed, so I don't know how you've defined the environment variable "FOAM_INST_DIR" or if you've created a symbolic/hard link between the two paths.

Check these instructions for ideas: http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac
__________________
wyldckat is offline   Reply With Quote

Old   August 15, 2012, 10:30
Default
  #10
New Member
 
Yuki SUMI
Join Date: Jul 2012
Posts: 7
Rep Power: 13
Kaquesang is on a distinguished road
I'm sorry to confuse you.
Actually, /Users/yuuki_sumi_h15/OpenFOAM/ is a symbolic link to /Volumes/Mac-OF-2.0.x/

Anyway, now I know that something was wrong with installation of OpenFOAM itself.
I'll try to reinstall it, referring http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

If I make some progress, I'll report here.

Thank you for your help!
Kaquesang is offline   Reply With Quote

Old   October 7, 2012, 09:34
Default
  #11
New Member
 
Join Date: Oct 2012
Posts: 1
Rep Power: 0
JL_CFD is on a distinguished road
Quote:
Originally Posted by Kaquesang View Post
Hi, I'm trying to use OpenFOAM in my MacBookPro (mountain lion).

I've installed OpenFOAM-2.1.x successfully.
Although Tutorial cases can work properly, after I installed swak4Foam, the Example cases of swak4Foam won't work!

I'll explain in more detail.
I made "Libraries" folder in "run" directory and typed

$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

and do
$ wmake all (I attached log file)
in the swak4Foam directory.

There seems to be no error in the log. So in Examples/groovyBC/fillingTheDam/ directory, I made meshes, then the error messgage came out.


$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : blockMesh
Date : Aug 15 2012
Time : 13:54:22
Host : Kaquesangs-Mac.local
PID : 9923
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"

Creating block mesh from
"/Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty
--> FOAM Warning :
From function polyMesh:olyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 881
Found 10 undefined faces in mesh; adding to default patch.

Check topology

Basic statistics
Number of internal faces : 4
Number of boundary faces : 22
Number of defined boundary faces : 22
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.146

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 0 0) (0.584 0.584 0.0146)
nPoints: 4746
nCells: 2268
nFaces: 9176
nInternalFaces: 4432
----------------
Patches
----------------
patch 0 (start: 4432 size: 50) name: leftWall
patch 1 (start: 4482 size: 50) name: rightWall
patch 2 (start: 4532 size: 62) name: lowerWall
patch 3 (start: 4594 size: 46) name: atmosphere
patch 4 (start: 4640 size: 4536) name: defaultFaces

End

$ interFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : interFoam
Date : Aug 15 2012
Time : 13:55:18
Host : Kaquesangs-Mac.local
PID : 9932
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field alpha1



--> FOAM FATAL IO ERROR:
Unknown patchField type groovyBC for patch type wall


Valid patchField types are :

68
(
advective
alphaFixedPressure
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
constantAlphaContactAngle
cyclic
cyclicSlip
directMapped
directMappedField
directMappedFixedInternalValue
directMappedFixedPushedInternalValue
directionMixed
dynamicAlphaContactAngle
empty
epsilonWallFunction
fan
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mixed
nonuniformTransformCyclic
nuSgsUSpaldingWallFunction
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
selfContainedDirectMapped
sliced
slip
symmetryPlane
syringePressure
timeVaryingAlphaContactAngle
timeVaryingMappedFixedValue
timeVaryingTotalPressure
timeVaryingUniformFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
waveTransmissive
wedge
zeroGradient
)


file: /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/0/alpha1::boundaryField::rightWall from line 30 to line 34.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /Users/hoge/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.

FOAM exiting


As I looked into /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)

I guess "wmake all" didn't succeed. But I don't know what was wrong and what should I do.
Please give me some advice!

regard.

p.s.
As my mother tongue isn't English, please forgive grammer mistakes, if any.
I am trying to install openfoam 2.0.x on mountain lion and after installation when I run ./Allwmake, I get the following error message:

./Allwmake: line 4: wmakeCheckPwd: command not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

Could you please let me know how to solve this problem.

Many thanks.
JL_CFD is offline   Reply With Quote

Old   January 19, 2013, 16:33
Default
  #12
New Member
 
Cristiano Sousa
Join Date: Jan 2013
Location: Portugal
Posts: 5
Rep Power: 13
Beatgodes is on a distinguished road
Hi

I'm having some errors when compiling swak4foam for OF2.1.1.

I already tested OF and it works perfectly.

My machine is a Mac OSX 10.7.5. My make log is in the annex

Thank you
Attached Files
File Type: gz make.log.tar.gz (10.4 KB, 8 views)
Beatgodes is offline   Reply With Quote

Old   January 20, 2013, 14:32
Default
  #13
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Beatgodes View Post
Hi

I'm having some errors when compiling swak4foam for OF2.1.1.

I already tested OF and it works perfectly.

My machine is a Mac OSX 10.7.5. My make log is in the annex

Thank you
You are using the Apple-gcc and not the one from MacPorts, right?

The error
Code:
lnInclude/ExpressionResultI.H:234: error: no matching function for call to dynamicCast(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&)
reminds me of a problem that the gcc 4.2 has with dynamicCast. Try replacing that with the regular dynamic_cast (other option would be to compile OF with a MacPorts-compiler from a higher version and after that swak4Foam).

If changing dynamicCast to dynamic_cast fixes the problem please report it and I will put it into the development version
__________________
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   January 20, 2013, 14:43
Default
  #14
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 15
ajl42 is on a distinguished road
Hi,

I'm using mac os x ML and gcc-mp-4.6 and get the same errors in the make log file as post 12. Both our log files have lots of cannot find file errors early in the log.

Thanks for all the great help,

Andy.
ajl42 is offline   Reply With Quote

Old   January 20, 2013, 15:55
Default
  #15
New Member
 
Cristiano Sousa
Join Date: Jan 2013
Location: Portugal
Posts: 5
Rep Power: 13
Beatgodes is on a distinguished road
@gschaider

I am using llvm-gcc42.

Using

Code:
perl -e "s/dynamicCast/dynamic_cast/g;" -pi $(find . -type f)
I substituted all occurrences of dynamicCast.

Problem is still not solved though: other errors show up
Attached Files
File Type: gz make.log.tar.gz (4.0 KB, 1 views)
Beatgodes is offline   Reply With Quote

Old   January 20, 2013, 17:39
Default
  #16
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ajl42 View Post
I'm using mac os x ML and gcc-mp-4.6 and get the same errors in the make log file as post 12. Both our log files have lots of cannot find file errors early in the log.
The "can not find" errors are no problem. They are from the makeDeps-utilitiy. The real problem is what the compiler says.

Anyway: when you encounter a problem rerun ./Allwmake and report THAT log. That way irrelevant messages from makeDeps are not there anymore and I don't have to wade through the successful compiler calls to get through the problem

Quote:
Originally Posted by Beatgodes View Post
@gschaider

I am using llvm-gcc42.

Using

Code:
perl -e "s/dynamicCast/dynamic_cast/g;" -pi $(find . -type f)
I substituted all occurrences of dynamicCast.

Problem is still not solved though: other errors show up
Another thing: you wouldn't believe how many people call the files make.log and how many clutter my Download-folder. So at least add something to the name that identifies it. Like beatgodes-make.log.

That or try to identify the compiler call that is problematic and post it here (that makes it easier to help)
__________________
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   January 20, 2013, 17:54
Default
  #17
New Member
 
Cristiano Sousa
Join Date: Jan 2013
Location: Portugal
Posts: 5
Rep Power: 13
Beatgodes is on a distinguished road
in case you are still looking for my make.log: i recompiled it and the produced make log is small

Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
abort: no repository found in '/Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1' (.hg not found)!
Bison is version 2.7
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 1 Patch 1
No change to swak4FoamParsers/foamVersion4swak.H
make: *** No rule to make target `lnInclude/SubsetValueExpressionParser.tab.hh', needed by `plugins/SampledSurfaceValuePluginFunction.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `groovyBCPointPatchFields.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `solveTransportPDE.dep'.  Stop.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `patch/patchExpressionFunctionObject.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `expressionToPoint.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakImplicitSources.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `groovyFlowRateInletVelocityFvPatchVectorField.dep'.  Stop.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `mqCellAspectRatioPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `lcLocalAveragePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `randomExponentialPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `fvcSurfCoeffLaplacianFunctionPlugin.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakCompressibleTurbulencePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakIncompressibleTurbulencePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `setValueMaximumPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `LagrangianCloudSourcePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `courantCompressiblePluginFunction.dep'.  Stop.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_stack.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_location.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_position.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_stack.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_location.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_position.hh', needed by `funkySetBoundaryField.dep'.
make[1]: Failed to remake makefile `funkySetBoundaryField.dep'.
make[1]: Target `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetBoundaryField' not remade because of errors.
make: *** [funkySetBoundaryField] Error 2
g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64GccDPOpt -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -lpthread -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib/openmpi-system -lPstream Make/darwinIntel64GccDPOpt/funkyDoCalc.o -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib \
	     -lfiniteVolume 	-lmeshTools 	-L/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib 	-lswak4FoamParsers -lOpenFOAM -ldl  -g -arch x86_64 -lpthread -lm -o /Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc
g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100 -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/cfdTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/cfdTools/general/lnInclude 	 -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude 	 -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -lpthread -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib/openmpi-system -lPstream Make/darwinIntel64GccDPOpt/replayTransientBC.o -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib \
	     -lfiniteVolume -lmeshTools -lOpenFOAM -ldl  -g -arch x86_64 -lpthread -lm -o /Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC
make[1]: Failed to remake makefile `funkySetFields.dep'.
make[1]: Target `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetFields' not remade because of errors.
make: *** [funkySetFields] Error 2
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2
collect2: ld terminated with signal 11 [Segmentation fault: 11]
make[1]: *** [/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC] Error 1
make: *** [replayTransientBC] Error 2
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/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)
Beatgodes is offline   Reply With Quote

Old   January 20, 2013, 18:33
Default
  #18
New Member
 
Cristiano Sousa
Join Date: Jan 2013
Location: Portugal
Posts: 5
Rep Power: 13
Beatgodes is on a distinguished road
did a clean build because the seg fault didn't smell right

Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
abort: no repository found in '/Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1' (.hg not found)!
Bison is version 2.7
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 1 Patch 1
No change to swak4FoamParsers/foamVersion4swak.H
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswak4FoamParsers.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libgroovyBC.dylib' is up to date.
SOURCE=clearExpressionFieldFunctionObject.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/clearExpressionFieldFunctionObject.o
SOURCE=clearExpressionField.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/clearExpressionField.o
SOURCE=createSampledSurface.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/createSampledSurface.o
SOURCE=manipulatePatchField.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/manipulatePatchField.o
SOURCE=createSampledSurfaceFunctionObject.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/createSampledSurfaceFunctionObject.o
manipulatePatchField.C: In member function ‘void Foam::manipulatePatchField::manipulatePoint(const TField&, const Foam::Field<bool>&)’:
manipulatePatchField.C:143: error: request for member ‘boundaryMesh’ in ‘dynamic_cast<const Foam::fvMesh&>(this->.obr_)’, which is of non-class type ‘const Foam::fvMesh&’
SOURCE=createSampledSet.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/createSampledSet.o
SOURCE=createSampledSetFunctionObject.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/createSampledSetFunctionObject.o
make: *** [Make/darwinIntel64GccDPOpt/manipulatePatchField.o] Error 1
make: *** Waiting for unfinished jobs....
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleSwakFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakTopoSources.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakSourceFields.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libgroovyStandardBCs.dylib' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakRandomFunctionPlugin.dylib' is up to date.
SOURCE=fvcGradFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcGradFunctionPlugin.o
SOURCE=fvcDivFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcDivFunctionPlugin.o
SOURCE=fvcSnGradFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcSnGradFunctionPlugin.o
SOURCE=fvcInterpolationFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o
fvcGradFunctionPlugin.C: In member function ‘void Foam::fvcGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcGradFunctionPlugin.C:114: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcSnGradFunctionPlugin.C: In member function ‘void Foam::fvcSnGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcSnGradFunctionPlugin.C:124: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcDivFunctionPlugin.C: In member function ‘void Foam::fvcDivFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcDivFunctionPlugin.C:121: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcInterpolationFunctionPlugin.C: In member function ‘void Foam::fvcInterpolationFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcInterpolationFunctionPlugin.C:124: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
make: *** [Make/darwinIntel64GccDPOpt/fvcGradFunctionPlugin.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/darwinIntel64GccDPOpt/fvcSnGradFunctionPlugin.o] Error 1
make: *** [Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o] Error 1
make: *** [Make/darwinIntel64GccDPOpt/fvcDivFunctionPlugin.o] Error 1
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakVelocityFunctionPlugin.dylib' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetFields' is up to date.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)
Beatgodes is offline   Reply With Quote

Old   January 20, 2013, 18:55
Default
  #19
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 15
ajl42 is on a distinguished road
Hi Bernhard,
I've rerun ./Allwmake. Thank you for your help, sorry for cutting and pasting but I can't upload the file at this time not sure why.

Best wishes,

Andy.
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Bison is version 2.7
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 1 Patch x
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=CommonValueExpressionDriver.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 -IMake/darwinIntel64Gcc46DPOpt -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/CommonValueExpressionDriver.o
CommonValueExpressionDriver.C:1309:7: error: template argument required for 'class lessOp'
CommonValueExpressionDriver.C: In member function 'Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const':
CommonValueExpressionDriver.C:1374:37: error: missing template arguments before '(' token
CommonValueExpressionDriver.C: In member function 'Foam::word Foam::CommonValueExpressionDriver::getHex(const void*) const':
CommonValueExpressionDriver.C:1389:35: warning: use of old-style cast [-Wold-style-cast]
CommonValueExpressionDriver.C: In member function 'Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const':
CommonValueExpressionDriver.C:1375:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/darwinIntel64Gcc46DPOpt/CommonValueExpressionDriver.o] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libgroovyBC.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakFunctionObjects.dylib] Error 1
'/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleSwakFunctionObjects.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakTopoSources.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakSourceFields.dylib] Error 1
ld: library not found for -lgroovyBC
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libgroovyStandardBCs.dylib] Error 1
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakMeshQualityFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakLocalCalculationsFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakRandomFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakFvcSchemesFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakThermoTurbFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakTransportTurbFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakVelocityFunctionPlugin.dylib] Error 1
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 -IMake/darwinIntel64Gcc46DPOpt -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkyDoCalc.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkyDoCalc
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2
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 -IMake/darwinIntel64Gcc46DPOpt -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkySetBoundaryField.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetBoundaryField
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetBoundaryField] Error 1
make: *** [funkySetBoundaryField] Error 2
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 -IMake/darwinIntel64Gcc46DPOpt -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkySetFields.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetFields
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetFields] Error 1
make: *** [funkySetFields] Error 2
make[1]: `/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/replayTransientBC' is up to date.
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/ajl/OpenFOAM/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)
ajl42 is offline   Reply With Quote

Old   January 21, 2013, 12:07
Default
  #20
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Beatgodes View Post
did a clean build because the seg fault didn't smell right

Code:
SOURCE=createSampledSurfaceFunctionObject.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/createSampledSurfaceFunctionObject.o
manipulatePatchField.C: In member function ‘void Foam::manipulatePatchField::manipulatePoint(const TField&, const Foam::Field<bool>&)’:
manipulatePatchField.C:143: error: request for member ‘boundaryMesh’ in ‘dynamic_cast<const Foam::fvMesh&>(this->.obr_)’, which is of non-class type ‘const Foam::fvMesh&’

'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleSwakFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakTopoSources.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakSourceFields.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libgroovyStandardBCs.dylib' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakRandomFunctionPlugin.dylib' is up to date.
SOURCE=fvcGradFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcGradFunctionPlugin.o
SOURCE=fvcDivFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcDivFunctionPlugin.o
SOURCE=fvcSnGradFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcSnGradFunctionPlugin.o
SOURCE=fvcInterpolationFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o
fvcGradFunctionPlugin.C: In member function ‘void Foam::fvcGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcGradFunctionPlugin.C:114: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcSnGradFunctionPlugin.C: In member function ‘void Foam::fvcSnGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcSnGradFunctionPlugin.C:124: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcDivFunctionPlugin.C: In member function ‘void Foam::fvcDivFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcDivFunctionPlugin.C:121: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
fvcInterpolationFunctionPlugin.C: In member function ‘void Foam::fvcInterpolationFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcInterpolationFunctionPlugin.C:124: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)
What makes it harder to read all this is that WM_NCOMPPROCS is set and therefor the error messages are sometimes not alligned with the compiler calls. Anyway. Looks like most of the problems come from g++ 4.2:

in manipulatePatchField.C: is that one of the files were you inserted the "official" dynamic_cast (but I'm unsure whether dynamicCast fares better). Try fixing this by adding

#include "fvMesh.H"

at the start of that file. The other stuff happens in a library that is not really essential (a plugin that allows comparing discretization schemes) so I think for the time being you can ignore it
__________________
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

Tags
mac, openfoam 2.0.x, swak4foam, warning message, wmake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[swak4Foam] Installing swak4Foam with openFoam v3.0+ RebelLion OpenFOAM Community Contributions 0 March 11, 2016 20:10
[OpenFOAM.org] Installing OpenFOAM 3.0.x on Mac OS X with Homebrew o.kotsur OpenFOAM Installation 56 February 19, 2016 17:44
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


All times are GMT -4. The time now is 03:20.