CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Installing OF 1.6 on Mac OS X

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 22, 2010, 05:44
Default
  #121
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Daniele Trimarchi View Post
Hello foamers, I'm really struggling with compiling Paraview.
I'm following the useful installation guide provided by Elvis, and (it seems that OF works now).
Then I try to follow the Paraview installation guide, but I'm quite lost when applying the patches. I try to copy the whole content:

[
diff --git a/Applications/Client/CreateBundle.sh
....
VTK_USE_RPATH=ON
]

in a text file, that I called Paraview.patch.v1, in ~/Tool/Paraview
Then I patch it, with:
cd Paraview3
patch -p1 < ../Paraview.patch.v1

So, I get the message:
patching file Applications/Client/CreateBundle.sh.in
patch: **** malformed patch at line 7: PluginsDir="/$ParaView_App/Contents/Plugins"

so I try to modify my .bash_profile, typing:
export ParaView_App=/Applications/ParaView.app/

and, since it was not working, I also try to modify the path in the patch file:
PluginsDir="/Applications/ParaView.app/Contents/Plugins"

Best regards and thank you,

Daniele
You're refering to the patch in Posting Nr 100 Installing OF 1.6 on Mac OS X in this thread (use the permalinks that are found in the upper right corner when referring to a posting in a lengthy thread), right? Seems to me that the message-board-software messed up that patch. There should be a newline after the second @@ (and all the other second @@s)

Can't comment on the rest, as I don't use that patch

Bernhard
gschaider is offline   Reply With Quote

Old   March 23, 2010, 10:10
Default Paraview Help..! /2/
  #122
New Member
 
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 7
Daniele Trimarchi is on a distinguished road
Hi Bernard, thank you for your reply. Unfortunately it does not seems to be working. So I might ask you, reading your answer, how did you manage to have paraview working? I'll be happy to follow any other procedure, if it solves the problem!

I also have the precompiled version of Paraview, which works, but crashes when reading OpenFOAM files.

Thank you,
Daniele
Daniele Trimarchi is offline   Reply With Quote

Old   March 23, 2010, 12:26
Default
  #123
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Daniele Trimarchi View Post
Hi Bernard, thank you for your reply. Unfortunately it does not seems to be working. So I might ask you, reading your answer, how did you manage to have paraview working? I'll be happy to follow any other procedure, if it solves the problem!
The problem is that my current setup is very specific: I'm using Paraview 3.6.2, 64-Bit, with Cocoa instead of X11 and a non-apple compiler. And there are some points where the compilation fails and I have to manually do some stuff (use the Apple-compiler for the Cocoa-ObjectiveC-files). To make a decent write-up of what has to be done I'd have to go through the whole thing from start to finish and frankly I currently don't have the time for that right now. I'll attach you the makeParaview I'm using, but as I said it is only half the truth.

Quote:
Originally Posted by Daniele Trimarchi View Post
I also have the precompiled version of Paraview, which works, but crashes when reading OpenFOAM files.
The old build-in OF-reader is no good (if I remember it correctly it doesn't like zipped files for instance).

Bernhard

makeParaViewMacBG.gz
gschaider is offline   Reply With Quote

Old   March 31, 2010, 08:55
Default
  #124
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Wouldn't it be nice if someone of you uploaded the compiled version of OpenFoam? I could give you some space on my virtual hd…
lovecraft22 is offline   Reply With Quote

Old   May 12, 2010, 06:58
Default
  #125
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Quote:
Originally Posted by Don456 View Post
Hi,

I also tried to compile OF 1.6 on Mac os. After some installing of needed stuff everything worked well until I got:

make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/darwinIntelDPOpt/dependencies'. Stop.

Has anyone an idea how I can solve that problem?

I tried to compile under 10.6 and as well under 10.5 (32 bit).

Greetings Felix
Hi, OF_friends,
I am trying to install OF-1.6 in Solaris 10, and meet the just same errors like:
HTML Code:
+ wmake libso finiteVolume
make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/SunOS64GccDPOpt/dependencies'.  Stop.
The compiler version is:
HTML Code:
shm% g++ -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --prefix=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64 --with-local-prefix=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64 --with-system-zlib --enable-languages=c,c++ --with-pkgversion=OpenFOAM --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-mpfr=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/mpfr-2.4.1/platforms/SunOS64 --with-gmp=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gmp-4.2.4/platforms/SunOS64
Thread model: posix
gcc version 4.3.3 (OpenFOAM)
"wclean; rmdepall" are also used in the $FOAM_SRC/finiteVolume-directory, but the same error is met.

"echo $FOAM_SRC", the terminal prompts,
HTML Code:
/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src
Any suggestions? Thanks in advance.
Greetings,
chiven
chiven is offline   Reply With Quote

Old   May 12, 2010, 13:01
Default
  #126
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by chiven View Post
Hi, OF_friends,
I am trying to install OF-1.6 in Solaris 10, and meet the just same errors like:
HTML Code:
+ wmake libso finiteVolume
make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/SunOS64GccDPOpt/dependencies'.  Stop.
Any suggestions? Thanks in advance.
Greetings,
chiven
That's an oldie'but'goodie: in the Make/files-file of that library there are some lines commented out with //. Some preprocessors don't know how to handle that. Just delete these lines and it should work

Bernhard
gschaider is offline   Reply With Quote

Old   May 13, 2010, 03:04
Default
  #127
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, Bernhard, have a nice day. you are right, it is because the Make/files-file include some lines commented out with //, and it does work after delete those lines. Thanks a lot.

What a pity, I met another error when compiler into the directory of '/home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/solvers/combustion/PDRFoam'
HTML Code:
g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -IXiModels/XiModel -IXiModels/XiEqModels/XiEqModel -IXiModels/XiGModels/XiGModel -IPDRModels/dragModels/PDRDragModel -IlaminarFlameSpeed/SCOPE -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/engine/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/sampling/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/basic/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/reactionThermo/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels/compressible/RAS/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/triSurface/lnInclude -IlnInclude -I. -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude   -fPIC Make/SunOS64GccDPOpt/XiModel.o Make/SunOS64GccDPOpt/newXiModel.o Make/SunOS64GccDPOpt/fixed.o Make/SunOS64GccDPOpt/algebraic.o Make/SunOS64GccDPOpt/transport.o Make/SunOS64GccDPOpt/XiEqModel.o Make/SunOS64GccDPOpt/newXiEqModel.o Make/SunOS64GccDPOpt/Gulder.o Make/SunOS64GccDPOpt/instabilityXiEq.o Make/SunOS64GccDPOpt/SCOPEBlendXiEq.o Make/SunOS64GccDPOpt/SCOPEXiEq.o Make/SunOS64GccDPOpt/XiGModel.o Make/SunOS64GccDPOpt/newXiGModel.o Make/SunOS64GccDPOpt/KTS.o Make/SunOS64GccDPOpt/instabilityG.o Make/SunOS64GccDPOpt/PDRkEpsilon.o Make/SunOS64GccDPOpt/PDRDragModel.o Make/SunOS64GccDPOpt/newPDRDragModel.o Make/SunOS64GccDPOpt/basic.o Make/SunOS64GccDPOpt/basicXiSubXiEq.o Make/SunOS64GccDPOpt/basicXiSubG.o Make/SunOS64GccDPOpt/SCOPELaminarFlameSpeed.o Make/SunOS64GccDPOpt/PDRFoam.o -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt \
             -lengine -lmeshTools -lcompressibleRASModels -lbasicThermophysicalModels -lreactionThermophysicalModels -lspecie -llaminarFlameSpeedModels -lfiniteVolume -ldynamicFvMesh -lOpenFOAM -liberty -lnsl -lsocket -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/dummy -lPstream   -lm -o /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
Undefined                       first referenced
 symbol                             in file
Foam::compressible::turbulenceModel::typeName     Make/SunOS64GccDPOpt/PDRkEpsilon.o  (symbol belongs to implicit dependency /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libcompressibleTurbulenceModel.so)
ld: fatal: Symbol referencing errors. No output written to /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
collect2: ld returned 1 exit status
make: *** [/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam] Error 1
Would you please further give me some comments on this problems?

with best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 14, 2010, 06:11
Default
  #128
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by chiven View Post
Hi, Bernhard, have a nice day. you are right, it is because the Make/files-file include some lines commented out with //, and it does work after delete those lines. Thanks a lot.

What a pity, I met another error when compiler into the directory of '/home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/solvers/combustion/PDRFoam'
HTML Code:
g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-

<snipped>

  -lm -o /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
Undefined                       first referenced
 symbol                             in file
Foam::compressible::turbulenceModel::typeName     Make/SunOS64GccDPOpt/PDRkEpsilon.o  (symbol belongs to implicit dependency /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libcompressibleTurbulenceModel.so)
ld: fatal: Symbol referencing errors. No output written to /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
collect2: ld returned 1 exit status
make: *** [/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam] Error 1
Would you please further give me some comments on this problems?

with best regards,
Chiven
That is another classic: the loader for dynamic libs doesn't automatically load the general turbulence lib. Just go to the Make/options of the solver and add the line that is marked with + in the following example (without the + of cource)
Code:
 EXE_LIBS = \
     -lengine \
+    -lcompressibleTurbulenceModel \
     -lcompressibleRASModels \
     -lcompressibleLESModels \
Bernhard
gschaider is offline   Reply With Quote

Old   May 14, 2010, 09:32
Default
  #129
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, Bernhard, thanks a lot and have a nice weekend. I have compiled the OF successfully with Allwmake command.
However, when I try to run the cavity tutorial case of icoFoam, I meet an error like,
HTML Code:
ld.so.1: icoFoam: fatal: libfiniteVolume.so: open failed: No such file or directory
Killed
Then I went to the directory of /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume, run 'wmake', and meet the error:
HTML Code:
Make/SunOS64GccDPOpt/timeActivatedExplicitSource.o Make/SunOS64GccDPOpt/timeActivatedExplicitCellSource.o Make/SunOS64GccDPOpt/timeActivatedExplicitMulticomponentPointSource.o Make/SunOS64GccDPOpt/pointSourceProperties.o Make/SunOS64GccDPOpt/pointSourcePropertiesIO.o -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt \
              -lOpenFOAM -liberty -lnsl -lsocket -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/dummy -lPstream   -lm -o OpenFOAM.out
Undefined                       first referenced
 symbol                             in file
main                                /home_shm/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/bin/../lib/gcc/sparc-sun-solaris2.10/4.3.3/sparcv9/crt1.o
Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool) Make/SunOS64GccDPOpt/wallDist.o
Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::coordinateSystem::coordinateSystem(Foam::word const&, Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::directMappedPolyPatch::typeName     Make/SunOS64GccDPOpt/directMappedVelocityFluxFixedValueFvPatchField.o
Foam::directMappedPatchBase::typeName     Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::topoSetSource::New(Foam::word const&, Foam::polyMesh const&, Foam::dictionary const&) Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/MRFZone.o
Foam::coordinateSystem::~coordinateSystem() Make/SunOS64GccDPOpt/porousZone.o
Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::triSurface::write(Foam::fileName const&, bool) const Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellSet::~cellSet()           Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::faceSet::~faceSet()           Make/SunOS64GccDPOpt/MRFZone.o
Foam::patchWave::~patchWave()       Make/SunOS64GccDPOpt/wallDist.o
Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::directMappedPatchBase::calcMapping() const Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::triSurfaceTools::delaunay2D(Foam::List<Foam::Vector2D<double> > const&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/MRFZone.o
Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&) Make/SunOS64GccDPOpt/nearWallDist.o
Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&) Make/SunOS64GccDPOpt/wallDist.o
Foam::directMappedPatchBase::sampleMesh() const Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::wallPoint::greatPoint         Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const Make/SunOS64GccDPOpt/porousZone.o
typeinfo for Foam::directMappedPatchBase Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::triSurfaceTools::calcInterpolationWeights(Foam::triSurface const&, Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<double, 3u> >&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellDistFuncs::getPatchIDs(Foam::word const&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::operator>>(Foam::Istream&, Foam::wallPoint&) Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::triSurface::~triSurface()     Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
typeinfo for Foam::directMappedPolyPatch Make/SunOS64GccDPOpt/directMappedVelocityFluxFixedValueFvPatchField.o
Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&) Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::coordinateSystem::coordinateSystem(Foam::dictionary const&, Foam::objectRegistry const&) Make/SunOS64GccDPOpt/porousZone.o
ld: fatal: Symbol referencing errors. No output written to OpenFOAM.out
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
 
I am sorry to bother you again and thank you very much again.
Chiven
chiven is offline   Reply With Quote

Old   May 15, 2010, 03:19
Default
  #130
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
I use find-command to check that the libfiniteVolume.so-file is including in /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/ and the ld.so.1-file is including in /usr/lib/sparcv9/.
I am wondering why it is 'No such file or directory'.
Chiven
chiven is offline   Reply With Quote

Old   May 15, 2010, 11:57
Default
  #131
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Chiven,

Congratulations on getting OpenFOAM built in Solaris I personally have no experience with Solaris, but I do have some experience in building OpenFOAM in Linux.

Now, as for the problems you're having:
Quote:
Originally Posted by chiven View Post
Then I went to the directory of /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume, run 'wmake', and meet the error:
Running only wmake is for applications only. For building libraries, you must run:
Code:
wmake libso
But since you have managed to get all of OpenFOAM built, then the problem should be elsewhere, so it shouldn't be necessary to rebuild libfiniteVolume.so.

So, lets check the following possibilities:
  1. Make sure you have the OpenFOAM environment active. For that, you can run any of the following commands:
    • To check if the wmake variable that has the full path to your OpenFOAM folder:
      Code:
      echo $WM_PROJECT_DIR
      It should show you this:
      Code:
      /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6
    • To check if the libraries are in the usual search path:
      Code:
      echo $LD_LIBRARY_PATH
      Somewhere in the middle of the text it outputs, it should have this:
      Code:
      /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt
      If it does, then check points 2 and 3 below.
    • Run:
      Code:
      env | sort
      or
      Code:
      export
      Either one of these should show you the list of variables active in the shell/terminal environment. You should be able so see a lot of references to OpenFOAM folders.
  2. Check if the library files have the proper prefix and extension. For that, run:
    Code:
    ls -l $FOAM_LIBBIN/lib*.so
    If no files are listed, then run:
    Code:
    ls -l $FOAM_LIBBIN/
    And check what prefixes and extensions do the files have. Standard is to have "lib" as prefix and ".so" as extension.
    Er, then again, you probably already checked this:
    Quote:
    Originally Posted by chiven View Post
    I use find-command to check that the libfiniteVolume.so-file is including in /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/
  3. Now, if the proper prefix and extensions exist, then the problem lies in the security system that Solaris could have in effect, which neutralizes the environment variable LD_LIBRARY_PATH. If this is the case, then you should check with the system's administrator of the machine you're using, as to which variables should you be using in Solaris as substitute for LD_LIBRARY_PATH.
As for point 3, I've searched a little bit, and found this: Where to set LD_LIBRARY_PATH on solaris?
I've got a hunch that the Solaris system you are using doesn't use LD_LIBRARY_PATH, but instead uses LD_LIBRARY_PATH_64. If this is the case, try this before running blockMesh or icoFoam:
Code:
export LD_LIBRARY_PATH_64=LD_LIBRARY_PATH
If icoFoam works with this, then edit the file $WM_PROJECT_DIR/etc/settings.sh, and change where it has LD_LIBRARY_PATH to LD_LIBRARY_PATH_64.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 15, 2010, 22:44
Default
  #132
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, Bruno, have a nice day and thanks for the comments.

You are right, it is because Solaris uses LD_LIBRARY_PATH_64, so it works after run
HTML Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"$LD_LIBRARY_PATH_64"
However, a new error is met:
HTML Code:
shm% icoFoam
ld.so.1: icoFoam: fatal: /home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/lib/libstdc++.so.6: wrong ELF class: ELFCLASS32
Fortunately, it is solved by adding a new LD through
HTML Code:
setenv LD_LIBRARY_PATH_64 "/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
But, at this time, another error is encountered:
HTML Code:
shm% icoFoam
ld.so.1: icoFoam: fatal: relocation error: file /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libOpenFOAM.so: symbol _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l: referenced symbol not found
Killed
I searched in google, the same error was also met by other people shown in follows, and I cannot find the solution way.
HTML Code:
> ld.so.1: mongod: fatal: relocation error: file /opt/mongodb-sunos5-
> x86_64-1.2.4/bin/mongod: symbol
> _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l:
> referenced symbol not found
It is a very hard time to use OF in Solaris system.
Best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 18, 2010, 06:59
Default
  #133
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Hi, I found '_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13b asic_ostreamIT_T0_ES6_PKS3_l' is defined in libstdc++.so in the directory of '/home_shm/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/lib/sparcv9'.
HTML Code:
shm% nm -A *.* | grep _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libgomp.la: invalid file type
nm: libgomp.spec: invalid file type
nm: libssp.la: invalid file type
nm: libssp_nonshared.la: invalid file type
libstdc++.a[complex_io.o]: [112]        |             0|           0|NOTY |GLOB |0    |UNDEF  |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.a[misc-inst.o]: [134] |             0|           0|NOTY |GLOB |0    |UNDEF  |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.a[ostream-inst.o]: [300]      |             0|         836|FUNC |WEAK |0    |73     |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libstdc++.la: invalid file type
libstdc++.so: [7920]    |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.so.6: [7920]  |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.so.6.0.10: [7920]     |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libsupc++.la: invalid file type
Now the point is how to let it known. Thanks a lot in advance.
with best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 18, 2010, 07:41
Default
  #134
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Chiven,

The only hypothesis that comes to mind is to swap the path to the system's sparcv9 libraries. In other words, run this after starting a new terminal with the OpenFOAM environment set:
Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Without knowing more about Solaris, this is only how far I can go

Good luck, best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 20, 2010, 01:16
Default
  #135
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 8
chiven is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Chiven,

The only hypothesis that comes to mind is to swap the path to the system's sparcv9 libraries. In other words, run this after starting a new terminal with the OpenFOAM environment set:
Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Without knowing more about Solaris, this is only how far I can go

Good luck, best regards,
Bruno

Hi, Bruno, thank you.
It works after running
HTML Code:
setenv LD_LIBRARY_PATH_64 "$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/SunOS64/lib/sparcv9":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Till now, I have installed OpenFOAM in Solaris with old FJMPI, RedHat with new FJMPI, Altix of IA64 with OpenMPI and Suse10.3 successfully.
Many difficults are met, and solved with so many OF friends' helps. Thanks a lot.
If anyone meets questions when using these platform, please feel free to discuss with me.
Enjoy,
Chiven
chiven is offline   Reply With Quote

Old   June 18, 2010, 06:50
Default
  #136
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
jose_rodrig is on a distinguished road
Quote:
Originally Posted by elvisjohndowson View Post
Hi,
I'm trying to build paraview-3.6.1 from the ThirdParty-1.6 folder, but I get the following errors. I have installed gsed and gawk. I also installed doxygen from cvs and built it, after making a small modification to qtools/qglobal.h, to change the max allowed OS X version to 10.6 as follows
# if (MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_6)

[ 21%] Building C object VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftbase.o
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from /Users/elvis/Tool/OpenFOAM/ThirdParty-1.6.x-patches/paraview-3.6.1/VTK/Utilities/vtkfreetype/src/base/ftmac.c:85,
from /Users/elvis/Tool/OpenFOAM/ThirdParty-1.6.x-patches/paraview-3.6.1/VTK/Utilities/vtkfreetype/src/base/ftbase.c:35:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h:147: error: format string argument not a string type
make[3]: *** [VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftbase.o] Error 1
make[2]: *** [VTK/Utilities/vtkfreetype/CMakeFiles/vtkfreetype.dir/all] Error 2
make[1]: *** [Servers/ServerManager/CMakeFiles/HTMLDocumentation.dir/rule] Error 2
make: *** [HTMLDocumentation] Error 2


Best regards,

Elvis
Hi,

I'm getting the same error as Elvis (as quoted) and I can't get around it. I started the endeavor of build OF and paraview this week and so my knowledge on this building and compiling is still a bit fuzzy.

So, I have a couple of questions for you guys:

1) - Isn't it possible to use one of the builds of paraview already supplied by Kitware on this site http://www.paraview.org/paraview/res.../software.html and some how link it to the OpenFOAM reader? They work nicely on mac OS 10.6 but I can't get it linked to the OF reader. Any thoughts in this?

2) - I tried to run the ./makeParaView to compile a different version of ParaView (3.8.0 instead of 3.6.1) simply by changing the version variable on the /WM_PROJECT_DIR/etc/apps/paraview3/bashrc but with no success. It kept sending this error:

-QMAKESPEC has not been set, so configuration cannot be deduced.

and then

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

What should be here the problem? Any ideas? Does anybody succeed in compiling paraview on mac with no further problems when loading a OF casefile?

I am using the same compiler as I used to build OF 1.6: gcc43 from macports

The system i m using is:
-mac OX X 10.6.3 64 bits
-OF 1.6 compiled with gcc43 from macports
-qt4-mac also from macports
-cmake 2.8.1


That is all
THX
Jose
jose_rodrig is offline   Reply With Quote

Old   June 18, 2010, 08:47
Default
  #137
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by jose_rodrig View Post
Hi,

I'm getting the same error as Elvis (as quoted) and I can't get around it. I started the endeavor of build OF and paraview this week and so my knowledge on this building and compiling is still a bit fuzzy.

So, I have a couple of questions for you guys:

1) - Isn't it possible to use one of the builds of paraview already supplied by Kitware on this site http://www.paraview.org/paraview/res.../software.html and some how link it to the OpenFOAM reader? They work nicely on mac OS 10.6 but I can't get it linked to the OF reader. Any thoughts in this?

2) - I tried to run the ./makeParaView to compile a different version of ParaView (3.8.0 instead of 3.6.1) simply by changing the version variable on the /WM_PROJECT_DIR/etc/apps/paraview3/bashrc but with no success. It kept sending this error:

-QMAKESPEC has not been set, so configuration cannot be deduced.

and then

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

What should be here the problem? Any ideas? Does anybody succeed in compiling paraview on mac with no further problems when loading a OF casefile?

I am using the same compiler as I used to build OF 1.6: gcc43 from macports

The system i m using is:
-mac OX X 10.6.3 64 bits
-OF 1.6 compiled with gcc43 from macports
-qt4-mac also from macports
-cmake 2.8.1


That is all
THX
Jose
No idea about that specific error (maybe I solved it once, but forgot it). Just some random tips:
- set the CMAKE setting that produces verbose Makefiles. That way when you get an error you also have the compiler call that triggered it and can retry it by hand
- there is a handful of ObjectiveC-files in Paraview (the Cocoa-interface). In my experience these can only be compiled with an Apple-compiler (that means: compilation fails. You retry the last printed compiler call but replace gcc-mp-4.3 with /usr/bin/gcc-4.2. After that succeeds restart make)

Bernhard
gschaider is offline   Reply With Quote

Old   June 18, 2010, 10:21
Default
  #138
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
jose_rodrig is on a distinguished road
Quote:
Originally Posted by gschaider View Post
- set the CMAKE setting that produces verbose Makefiles.
How do I do that?
jose_rodrig is offline   Reply With Quote

Old   June 18, 2010, 12:21
Default
  #139
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
jose_rodrig is on a distinguished road
Hi, Bernard

I managed to set CMAKE the way you suggested and I also eliminated the prob with QMAKESPEC.

Now, I get this error message:

CMake Error in Applications/ParaView/CMakeLists.txt:
Cannot find source file "classes.nib". Tried extensions .c .C .c++ .cc
.cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

-- Build files have been written to: /Volumes/OpenFOAM/ThirdParty-1.6/paraview-3.8.0/platforms/darwinIntel64
Starting make
make: *** No targets specified and no makefile found. Stop.

----------
$ cmake -DCMAKE_VERBOSE_MAKEFILE=on
CMake Error: The source directory "/Volumes/OpenFOAM/ThirdParty-1.6" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Any idea what could this be? I actually find a lot of files named "CMakeLists.txt". However I cant find any "classes.nib" in my whole disc.

Is this because of the gcc43 compiler? I cant even find a compiler call before it stops!

cheers
Jose
jose_rodrig is offline   Reply With Quote

Old   June 19, 2010, 00:30
Default
  #140
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi Josť,

Just in case, did you try the built-in OF reader in PV 3.8? ("touch case.foam" in your case directory and open case.foam from PV)

T
7islands is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 12:54
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 08:46
MAC + SOLA for free surface T Main CFD Forum 1 April 11, 2001 13:43


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