|
[Sponsors] |
September 30, 2011, 20:26 |
|
#41 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
PS: No patch for the current ThirdParty-2.0.x. Sorry. I recommend downloading ThirdParty-2.0.0 and using the old patch for this. |
||
October 12, 2011, 22:21 |
|
#42 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Sushant,
Thanks for providing the compiled versions of OF on your website. Are they for Lion? It says 10.6 and 10.7 in your signature, but only 10.6 on your website. Also do they have the latest patches applied? Thanks, MD |
|
October 13, 2011, 03:19 |
|
#43 | |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Quote:
The binaries so far are only for 10.6. Sorry for the confusion! I should be able to post a Lion dmg soon, I have just been a little occupied, trying to find a way to make ONE distribution that works for both 10.6/10.7. I need to include BG's FPE patch (v4) but the ones before that are incorporated. Thanks! Sushant
__________________
If you only have a hammer, you tend to see every problem as a nail. Last edited by sushant; October 13, 2011 at 03:25. Reason: patch status |
||
October 13, 2011, 10:41 |
|
#44 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
That would be great!
I will probably wait for your binaries...unless I get restless, then I may try and compile myself. Out of curiosity, are you using the openmpi from Thirdparty now that Lion doesn't include it? What needs to be done to compile it? Is it as simple as ./configure, make, make install? Thanks |
|
October 13, 2011, 12:30 |
|
#45 |
Member
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17 |
Yes. In the site/2.0.x/prefs.sh file just change WM_MPLIB to OPENMPI instead of SYSTEMOPENMPI. Then go into ThirdParty (2.0.0!) and do ./Allwmake, assuming you have a working Gcc45 or Gcc46 (and have the other patches applied). I haven't had any serious issues compiling the supplied openmpi-1.5.3 that way, so I hope your mileage doesn't vary.
__________________
If you only have a hammer, you tend to see every problem as a nail. |
|
October 13, 2011, 13:58 |
|
#46 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Okay, great!
So, last question...I hope. Does the Thirdparty directory in the image on your website contain the 2.0.0 source and have the patches applied? I could do ./Allwmake in the Thirdparty directory from you and it should work? Thanks again, MD |
|
October 14, 2011, 00:50 |
|
#47 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Hello Again,
So I decided that I would try and compile ThirdParty (openmpi) myself and it went pretty well and seemed to work as expected. So, since Thirdparty went so well I decided that I would download clean 2.0.1 and apply the patches and compile...now I am having trouble. I am getting the following error. Code:
from solidEquilibriumDisplacementFoam.C:38: /Users/matt/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/face.H:52:22: fatal error: pointHit.H: No such file or directory compilation terminated. make[2]: *** [Make/darwinIntel64Gcc45DPOpt/solidEquilibriumDisplacementFoam.o] Error 1 make[2]: Target `/Users/matt/OpenFOAM/OpenFOAM-2.0.x/platforms/darwinIntel64Gcc45DPOpt/bin/solidEquilibriumDisplacementFoam' not remade because of errors. make[1]: *** [solidEquilibriumDisplacementFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [stressAnalysis] Error 2 make: Target `application' not remade because of errors. Is this a bug? Am I missing something? It is the only file in the directory that starts with a capital letter...seems inconsistent. There are also a number of other similar errors that look like they could be caused by the same thing, but I haven't tracked each one down yet. I am confused. MD |
|
October 16, 2011, 01:02 |
|
#48 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
I am still having a hard time compiling OpenFOAM on Mac OS X 10.7; I am hoping someone can help me see where I am going wrong. Here is what I did:
On a clean install of 10.7, I first installed XCode Tools 4.2 from the app store. Then installed macports 2.0.3 and installed gcc45 through macports (gcc46 wouldn't install). Selected gcc45 as the default gcc with: Code:
sudo port select gcc mp-gcc45 I started with a case-sensative disk image which I mounted at ~/OpenFOAM using Code:
hdiutil attach "$HOME/OpenFOAM_Images/Mac-OF-2.0.x.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null I edited OpenFOAM-2.0.x/etc/bashrc so that WM_PROJECT_VERSION=2.0.x (in place of OpenFOAM-2.0.1). Sourced the bash file with: Code:
. ~/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc Since I am going to use the Paraview downloaded from Kitware, I deleted the paraview directory from the ThirdParty directory. I applied the following ThirdParty and OpenFOAM patches from this thread. In the ThirdParty-2.0.x and OpenFOAM-2.0.x directorys I applied the following patchs: patch -p1 < ThirdParty-2.0.0-Mac.patch patch -p1 < OpenFOAM-2.0.x-Mac_v4_FPE.patch The ThirdParty patch applied with no issues, however I received the following errors when applying the OpenFOAM patch: Code:
patching file src/parallel/decompose/ptscotchDecomp/Make/options Hunk #1 FAILED at 8. 1 out of 1 hunk FAILED -- saving rejects to file src/parallel/decompose/ptscotchDecomp/Make/options.rej patching file src/parallel/decompose/scotchDecomp/Make/options Hunk #1 FAILED at 12. 1 out of 1 hunk FAILED -- saving rejects to file src/parallel/decompose/scotchDecomp/Make/options.rej Code:
======================================== Build Scotch decomposition library scotch_5.1.11 /Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45/scotch_5.1.11 + cd scotch_5.1.11/src + prefixDIR=/Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45/scotch_5.1.11 + libDIR=/Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45DPOpt/lib + mkdir -p /Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45/scotch_5.1.11 + mkdir -p /Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45DPOpt/lib + configOpt='prefix=/Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45/scotch_5.1.11 libdir=/Users/matt/OpenFOAM/ThirdParty-2.0.x/platforms/DarwinGcc45DPOpt/lib' + makeFile=../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM + '[' '' == darwin ']' + '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM -a '!' -f Makefile.inc ']' + rm -f Makefile.inc + ln -s ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM Makefile.inc + '[' -f Makefile.inc ']' + unset configEnv + '[' gcc '!=' gcc ']' + make realclean mkdir ../bin mkdir ../include mkdir ../lib (cd libscotch ; make realclean) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes (cd scotch ; make realclean) rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst (cd libscotchmetis ; make realclean) rm -f *~ *.o lib*.so rm -f ../bin/* ../include/* ../lib/* + make -j 1 scotch (cd libscotch ; make VERSION=5 RELEASE=1 PATCHLEVEL=10 scotch && make install) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes make CC="gcc" CCD="gcc" \ scotch.h \ scotchf.h \ libscotch.so \ libscotcherr.so \ libscotcherrexit.so gcc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DSCOTCH_VERSION=5 -DSCOTCH_RELEASE=1 -DSCOTCH_PATCHLEVEL=10 dummysizes.c -o dummysizes -lz -lm -lrt ld: library not found for -lrt collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[1]: *** [scotch] Error 2 make: *** [scotch] Error 2 + make realclean (cd libscotch ; make realclean) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes (cd scotch ; make realclean) rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst (cd libscotchmetis ; make realclean) rm -f *~ *.o lib*.so rm -f ../bin/* ../include/* ../lib/* WARNING: required include file 'scotch.h' not found! Thanks, MD |
|
October 16, 2011, 07:02 |
|
#49 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
October 16, 2011, 11:39 |
install OpenFOAM on Lion
|
#50 |
New Member
Flo bucken
Join Date: Mar 2009
Location: Germany
Posts: 8
Rep Power: 17 |
Good evening to everyone,
Iīm trying to install OpenFOAM2.0.x on my mac with LION nearly a week but with no success. Used a lot of webpages with tricks and tips but nothing is working right now. What have I done... 1. Got Xcode4.2 from AppStore 2. Installed gcc4.5.3 with macports. (sudo port install gcc45) 3. and Openmpi with macports (sudo port install openmpi +gcc45) 4. Changed my gcc compiler with: (sudo port select gcc mp-gcc45) When I check my gcc compiler with (gcc -v) this one pops up in my terminal: maggy:OpenFOAM-2.0.x macflo$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.5.3/lto-wrapper Target: x86_64-apple-darwin11 Configured with: ../gcc-4.5.3/configure --prefix=/opt/local --build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,fortran,java --libdir=/opt/local/lib/gcc45 --includedir=/opt/local/include/gcc45 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.5 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.5 --with-gxx-include-dir=/opt/local/include/gcc45/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking --disable-multilib --enable-fully-dynamic-string Thread model: posix gcc version 4.5.3 (GCC) maggy:OpenFOAM-2.0.x macflo$ I hope that my gcc is set right now... 5. A .sparseimage with the name "OpenFOAM" was created. 2GB space. 6. Mounted this image with: (hdiutil attached "$HOME/OpenFOAM/.sparseimage" -mountpoint "$HOME/OpenFOAM" >/dev/null) and created a link with: (ln -sf /Volumes/OpenFOAM) 7. Downloaded OpenFOAM2.0.x and ThirdParty2.0.0 from git, unpacked these files to /Volumes/OpenFOAM/ 8. Download the patches from this side (thx Bernhard). "OpenFOAM.2.0.xMacPatches" for ThirdParty2.0.0 and "OpenFOAM-2.0.x-Mac_v4_FPE.patch.gz" for OpenFOAM2.0.x. 9. Patched OpenFOAM2.0.x and ThirdParty with: (patch -p1 < OpenFOAM-2.0.x-Mac_v4_FPE.patch) maggy:OpenFOAM-2.0.x macflo$ patch -p1 < OpenFOAM-2.0.x-Mac_v4_FPE.patch patching file applications/solvers/combustion/chemFoam/Make/options patching file applications/solvers/combustion/fireFoam/Make/options patching file applications/solvers/compressible/rhoSimplecFoam/Make/options patching file applications/solvers/incompressible/adjointShapeOptimizationFoam/Make/options patching file applications/solvers/incompressible/channelFoam/Make/options patching file applications/solvers/incompressible/pimpleFoam/pimpleDyMFoam/Make/options patching file applications/solvers/incompressible/simpleFoam/MRFSimpleFoam/Make/options patching file applications/solvers/incompressible/simpleFoam/SRFSimpleFoam/Make/options patching file applications/solvers/incompressible/simpleFoam/windSimpleFoam/Make/options patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelDyMFoam/Make/options patching file applications/solvers/lagrangian/icoUncoupledKinematicParcelFoam/Make/options patching file applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options patching file applications/solvers/multiphase/compressibleInterFoam/Make/options patching file applications/solvers/multiphase/compressibleInterFoam/compressibleInterDyMFoam/Make/options patching file applications/solvers/multiphase/interFoam/LTSInterFoam/Make/options patching file applications/solvers/multiphase/interFoam/MRFInterFoam/Make/options patching file applications/solvers/multiphase/interFoam/Make/options patching file applications/solvers/multiphase/interFoam/interDyMFoam/Make/options patching file applications/solvers/multiphase/interFoam/porousInterFoam/Make/options patching file applications/solvers/multiphase/interMixingFoam/Make/options patching file applications/solvers/multiphase/interPhaseChangeFoam/Make/options patching file applications/utilities/mesh/generation/blockMesh/Make/options patching file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options patching file applications/utilities/postProcessing/turbulence/R/Make/options patching file applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options patching file applications/utilities/postProcessing/velocityField/Pe/Make/options patching file applications/utilities/postProcessing/wall/wallHeatFlux/Make/options patching file applications/utilities/postProcessing/wall/wallShearStress/Make/options patching file applications/utilities/postProcessing/wall/yPlusLES/Make/options patching file applications/utilities/postProcessing/wall/yPlusRAS/Make/options patching file applications/utilities/preProcessing/applyBoundaryLayer/Make/options patching file bin/addr2line4Mac.py patching file etc/bashrc patching file etc/config/settings.sh patching file src/OSspecific/POSIX/POSIX.C patching file src/OSspecific/POSIX/clockTime/clockTime.H patching file src/OSspecific/POSIX/fileStat.C patching file src/OSspecific/POSIX/printStack.C patching file src/OSspecific/POSIX/signals/sigFpe.C patching file src/OSspecific/POSIX/signals/sigFpe.H patching file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.C patching file src/OpenFOAM/db/dynamicLibrary/dynamicCode/dynamicCode.H patching file src/OpenFOAM/primitives/Scalar/doubleFloat.H patching file src/conversion/ensight/part/ensightPart.C patching file src/conversion/ensight/part/ensightPartIO.C patching file src/dynamicMesh/fvMeshDistribute/fvMeshDistributeTemplates.C patching file src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C patching file src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H Hunk #1 succeeded at 81 with fuzz 1 (offset -1 lines). patching file src/parallel/decompose/ptscotchDecomp/Make/options patching file src/parallel/decompose/scotchDecomp/Make/options patching file wmake/Makefile patching file wmake/rules/darwinIntel64Gcc/c patching file wmake/rules/darwinIntel64Gcc/c++ patching file wmake/rules/darwinIntel64Gcc/c++Debug patching file wmake/rules/darwinIntel64Gcc/c++Opt patching file wmake/rules/darwinIntel64Gcc/c++Prof patching file wmake/rules/darwinIntel64Gcc/cDebug patching file wmake/rules/darwinIntel64Gcc/cOpt patching file wmake/rules/darwinIntel64Gcc/cProf patching file wmake/rules/darwinIntel64Gcc/general patching file wmake/rules/darwinIntel64Gcc/mplib patching file wmake/rules/darwinIntel64Gcc/mplibOPENMPI patching file wmake/rules/darwinIntel64Gcc45/c patching file wmake/rules/darwinIntel64Gcc45/c++ patching file wmake/rules/darwinIntel64Gcc45/c++Debug patching file wmake/rules/darwinIntel64Gcc45/c++Opt patching file wmake/rules/darwinIntel64Gcc45/c++Prof patching file wmake/rules/darwinIntel64Gcc45/cDebug patching file wmake/rules/darwinIntel64Gcc45/cOpt patching file wmake/rules/darwinIntel64Gcc45/cProf patching file wmake/rules/darwinIntel64Gcc45/general patching file wmake/rules/darwinIntel64Gcc45/mplib patching file wmake/rules/darwinIntel64Gcc45/mplibOPENMPI maggy:OpenFOAM-2.0.x macflo$ I think everything is fine... And also with the patch for ThirdParty was no error. 10. Iīm not sure now what Bernhard with "- A file that goes to ~/OpenFOAM/site/2.0.x/ This tells OF that it should use the system-OpenMPI and gcc 4.5 from MacPorts (the Apple gcc 4.2 chockes on some SubField-stuff)" means. Does this folder creates his by himself? Do I have to generate the folder "site/2.0.x/" with the prefs.sh file by my own??? Iīm not sure... 11. Finally added (. ~/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc) to my .profile-file and started the console again. 12. OK, when I start ./Allwmake in /OpenFOAM/OpenFOAM2.0.x/ a got a lot of errors, something like that: /opt/local/include/gcc45/c++/cwchar:67:11: error: '::mbstate_t' has not been declared /opt/local/include/gcc45/c++/cwchar:141:11: error: '::wint_t' has not been declared /opt/local/include/gcc45/c++/cwchar:143:11: error: '::btowc' has not been declared /opt/local/include/gcc45/c++/cwchar:144:11: error: '::fgetwc' has not been declared /opt/local/include/gcc45/c++/cwchar:145:11: error: '::fgetws' has not been declared /opt/local/include/gcc45/c++/cwchar:146:11: error: '::fputwc' has not been declared /opt/local/include/gcc45/c++/cwchar:147:11: error: '::fputws' has not been declared /opt/local/include/gcc45/c++/cwchar:148:11: error: '::fwide' has not been declared /opt/local/include/gcc45/c++/cwchar:149:11: error: '::fwprintf' has not been declared /opt/local/include/gcc45/c++/cwchar:150:11: error: '::fwscanf' has not been declared and that /Users/macflo/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/HashTableI.H:445:8: error: 'Foam::HashTable<T, Key, Hash>::const_iterator' is not a type /Users/macflo/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude/HashTableI.H:447:11: error: 'iteratorEnd' does not name a type at the end /opt/local/include/gcc45/c++//x86_64-apple-darwin11/bits/gthr.h:170:27: error: expected declaration before end of line make[2]: *** [Make/darwinIntel64Gcc45DPOpt/solidEquilibriumDisplacementFoam.o] Error 1 make[2]: Target `/Users/macflo/OpenFOAM/OpenFOAM-2.0.x/platforms/darwinIntel64Gcc45DPOpt/bin/solidEquilibriumDisplacementFoam' not remade because of errors. make[1]: *** [solidEquilibriumDisplacementFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [stressAnalysis] Error 2 make: Target `application' not remade because of errors. WHAT DID I WRONG. I have absolutely no idea what I have to do now. I hope someone can help me by this... Wish you an nice sunday anyway bambedil |
|
October 16, 2011, 21:08 |
|
#51 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Hi Bernhard,
Thanks so much for your help and all the work you do on OF. I didn't realize there was a git distribution...I did as you suggested and downloaded OpenFOAM-2.0.x from https://github.com/OpenFOAM/OpenFOAM-2.0.x. Then I applied your patch and it worked with no issues, however I am still having trouble compiling....I just realized that scotch is not compiling in ThirdParty. I haven't searched for solutions yet, but will post back if I can't figure it out. Thanks again, MD |
|
October 17, 2011, 12:04 |
|
#52 | ||||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Maybe someone with a Lion-machine can help you here. Try #include "wchar.h" in the beginnining, but I wouldn't be too optimistic (BTW: check the start of the output. Maybe there is something you missed like 'can't include wchar.h') Quote:
Quote:
|
|||||
October 17, 2011, 15:22 |
thx Bernhard
|
#53 |
New Member
Flo bucken
Join Date: Mar 2009
Location: Germany
Posts: 8
Rep Power: 17 |
Good Evening,
first, thank you Berhard for your quick reply. The next few days I gonna start a new try to install open foam on lion. I will let you know how it works. Greeting Florian |
|
October 17, 2011, 22:53 |
|
#54 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Hello All,
Thank you Bernhard and Sushant for your help, I was finally able to get OF to compile on OS X 10.7 (Lion). I think I was making 2 mistakes that were preventing it from working until now:
The only testing I did was to run the damBreak case (both parallel and not), which seems to work fine. However, I have two concerns:
Just out of curiosity, anyone ever try to install OSX on a case sensitive partition to avoid the need for a seperate disk image? bambedil, Looks like the only thing I did differently than you was not install openmpi from macports...not sure if that would cause your problems or not... Also my builds were failing with the same error as you (although I was not getting all the same ones as you). For me it was because scotch was not building in ThirdParty because I was un-taring the directory in ~/Downloads which was messing up the source. MD |
|
October 18, 2011, 05:52 |
|
#55 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
I did that before I had a separate partition. It works but everything that involves disc-access (compiling, startup ...) is much slower. Plus you'll have to make sure that the image-file is not backed up by time-machine (left as an exercise to the reader to figure out why) |
||||
October 21, 2011, 12:32 |
ThirdParty
|
#56 |
New Member
Flo bucken
Join Date: Mar 2009
Location: Germany
Posts: 8
Rep Power: 17 |
Good evening everyone,
in my first post I described my installation process step by step. One thing, which I did wrong was to untar the files in my "Download"-directory. But it didnīt make it better. Still I get error-messages! Here are the first lines of the message: ./Allwmake make: Nothing to be done for `all'. no ThirdParty sources found - skipping + wmakePrintBuild -check no git description found + /bin/rm -f 'OpenFOAM/Make/*/global.?' + wmakeLnInclude OpenFOAM + wmakeLnInclude OSspecific/POSIX + Pstream/Allwmake + wmake libso dummy ... Anyway how do you guys handle the ThirdParty directory? What are you doing with this??? Did you install scotch-libraries by your own? I did it with macports, now Iīm not sure if these library are installed right now Relating to Gschaiders answer. (/opt/local/include/gcc45/c++/cwchar:67:11: error: '::mbstate_t' has not been declared) I looked in my cwchar-file. it looks like this: /** @file include/cwchar * This is a Standard C++ Library file. You should @c \#include this file * in your programs, rather than any of the @a *.h implementation files. * * This is the C++ version of the Standard C Library header @c wchar.h, * and its contents are (mostly) the same as that header, but are all * contained in the namespace @c std (except for names which are defined * as macros in C). */ // // ISO C++ 14882: 21.4 // #pragma GCC system_header #include <bits/c++config.h> #include <cstddef> #if _GLIBCXX_HAVE_WCHAR_H #include <wchar.h> #endif #ifndef _GLIBCXX_CWCHAR #define _GLIBCXX_CWCHAR 1 // Need to do a bit of trickery here with mbstate_t as char_traits // assumes it is in wchar.h, regardless of wchar_t specializations. #ifndef _GLIBCXX_HAVE_MBSTATE_T extern "C" { typedef struct { int __fill[6]; } mbstate_t; } #endif _GLIBCXX_BEGIN_NAMESPACE(std) using ::mbstate_t; _GLIBCXX_END_NAMESPACE // Get rid of those macros defined in <wchar.h> in lieu of real functions. #undef btowc #undef fgetwc #undef fgetws #undef fputwc #undef fputws #undef fwide #undef fwprintf #undef fwscanf #undef getwc #undef getwchar #undef mbrlen #undef mbrtowc #undef mbsinit #undef mbsrtowcs #undef putwc #undef putwchar #undef swprintf #undef swscanf #undef ungetwc #undef vfwprintf #if _GLIBCXX_HAVE_VFWSCANF # undef vfwscanf #endif #undef vswprintf #if _GLIBCXX_HAVE_VSWSCANF # undef vswscanf #endif #undef vwprintf #if _GLIBCXX_HAVE_VWSCANF # undef vwscanf #endif #undef wcrtomb #undef wcscat #undef wcschr #undef wcscmp #undef wcscoll #undef wcscpy #undef wcscspn #undef wcsftime #undef wcslen #undef wcsncat #undef wcsncmp #undef wcsncpy #undef wcspbrk #undef wcsrchr #undef wcsrtombs #undef wcsspn #undef wcsstr #undef wcstod #if _GLIBCXX_HAVE_WCSTOF # undef wcstof #endif #undef wcstok #undef wcstol #undef wcstoul #undef wcsxfrm #undef wctob #undef wmemchr #undef wmemcmp #undef wmemcpy #undef wmemmove #undef wmemset #undef wprintf #undef wscanf #if _GLIBCXX_USE_WCHAR_T _GLIBCXX_BEGIN_NAMESPACE(std) using ::wint_t; using ::btowc; using ::fgetwc; using ::fgetws; using ::fputwc; using ::fputws; using ::fwide; using ::fwprintf; using ::fwscanf; using ::getwc; using ::getwchar; using ::mbrlen; using ::mbrtowc; using ::mbsinit; using ::mbsrtowcs; using :utwc; using :utwchar; #ifndef _GLIBCXX_HAVE_BROKEN_VSWPRINTF using ::swprintf; #endif using ::swscanf; using ::ungetwc; using ::vfwprintf; #if _GLIBCXX_HAVE_VFWSCANF using ::vfwscanf; #endif #ifndef _GLIBCXX_HAVE_BROKEN_VSWPRINTF using ::vswprintf; #endif #if _GLIBCXX_HAVE_VSWSCANF using ::vswscanf; #endif using ::vwprintf; #if _GLIBCXX_HAVE_VWSCANF using ::vwscanf; #endif using ::wcrtomb; using ::wcscat; using ::wcscmp; using ::wcscoll; using ::wcscpy; using ::wcscspn; using ::wcsftime; using ::wcslen; using ::wcsncat; using ::wcsncmp; using ::wcsncpy; using ::wcsrtombs; using ::wcsspn; using ::wcstod; #if _GLIBCXX_HAVE_WCSTOF using ::wcstof; #endif using ::wcstok; using ::wcstol; using ::wcstoul; using ::wcsxfrm; using ::wctob; using ::wmemcmp; using ::wmemcpy; using ::wmemmove; using ::wmemset; using ::wprintf; using ::wscanf; using ::wcschr; using ::wcspbrk; using ::wcsrchr; using ::wcsstr; using ::wmemchr; #ifndef __CORRECT_ISO_CPP_WCHAR_H_PROTO inline wchar_t* wcschr(wchar_t* __p, wchar_t __c) { return wcschr(const_cast<const wchar_t*>(__p), __c); } inline wchar_t* wcspbrk(wchar_t* __s1, const wchar_t* __s2) { return wcspbrk(const_cast<const wchar_t*>(__s1), __s2); } inline wchar_t* wcsrchr(wchar_t* __p, wchar_t __c) { return wcsrchr(const_cast<const wchar_t*>(__p), __c); } inline wchar_t* wcsstr(wchar_t* __s1, const wchar_t* __s2) { return wcsstr(const_cast<const wchar_t*>(__s1), __s2); } inline wchar_t* wmemchr(wchar_t* __p, wchar_t __c, size_t __n) { return wmemchr(const_cast<const wchar_t*>(__p), __c, __n); } #endif _GLIBCXX_END_NAMESPACE #if _GLIBCXX_USE_C99 #undef wcstold #undef wcstoll #undef wcstoull _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC extern "C" long double (wcstold)(const wchar_t * restrict, wchar_t ** restrict) throw (); #endif #if !_GLIBCXX_USE_C99_DYNAMIC using ::wcstold; #endif #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC extern "C" long long int (wcstoll)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); extern "C" unsigned long long int (wcstoull)(const wchar_t * restrict, wchar_t ** restrict, int) throw (); #endif #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC using ::wcstoll; using ::wcstoull; #endif _GLIBCXX_END_NAMESPACE _GLIBCXX_BEGIN_NAMESPACE(std) using ::__gnu_cxx::wcstold; using ::__gnu_cxx::wcstoll; using ::__gnu_cxx::wcstoull; _GLIBCXX_END_NAMESPACE #endif #endif //_GLIBCXX_USE_WCHAR_T #ifdef __GXX_EXPERIMENTAL_CXX0X__ # if defined(_GLIBCXX_INCLUDE_AS_TR1) # error C++0x header cannot be included from TR1 header # endif # if defined(_GLIBCXX_INCLUDE_AS_CXX0X) # include <tr1_impl/cwchar> # else # define _GLIBCXX_INCLUDE_AS_CXX0X # define _GLIBCXX_BEGIN_NAMESPACE_TR1 # define _GLIBCXX_END_NAMESPACE_TR1 # define _GLIBCXX_TR1 # include <tr1_impl/cwchar> # undef _GLIBCXX_TR1 # undef _GLIBCXX_END_NAMESPACE_TR1 # undef _GLIBCXX_BEGIN_NAMESPACE_TR1 # undef _GLIBCXX_INCLUDE_AS_CXX0X # endif #endif #endif Is there something different to your cwchar-file? Wish you all a nice weekend and hopefully I get OF2 running Florian |
|
October 21, 2011, 20:44 |
|
#57 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Florian,
Right away, it looks like it can't find your ThirdParty directory. What is it named? It should have the same version number as your OpenFOAM directory. Since you are using ThirdParty-2.0.0 and OpenFOAM-2.0.x you need to rename ThirdParty-2.0.0 to ThirdParty-2.0.x. I installed scotch from ThirdParty. Hope that helps. MD Last edited by mgdenno; October 21, 2011 at 20:45. Reason: Add information |
|
October 22, 2011, 11:46 |
|
#58 |
New Member
Flo bucken
Join Date: Mar 2009
Location: Germany
Posts: 8
Rep Power: 17 |
HI MD,
I renamed my ThirdParty-folder to 2.0.x. Now it works. Fine, the output is now: ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== Build Scotch decomposition library scotch_5.1.11 /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45/scotch_5.1.11 scotch header in /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45/scotch_5.1.11/include scotch libs in /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib ======================================== Build PTScotch decomposition library scotch_5.1.11 (uses MPI) /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45/scotch_5.1.11 ptscotch header in /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45/scotch_5.1.11/include/openmpi-system ptscotch libs in /Users/macflo/OpenFOAM/ThirdParty-2.0.x/platforms/darwinIntel64Gcc45DPOpt/lib/openmpi-system ======================================== Build malloc optional component was not found ======================================== Build Tecio optional component was not found ======================================== Done ThirdParty Allwmake ======================================== I think this problem is fixed... THX MD after this my terminal says: + wmakePrintBuild -check no git description found + /bin/rm -f OpenFOAM/Make/darwinIntel64Gcc45DPOpt/global.C + wmakeLnInclude OpenFOAM What exactly is the meaning of: "no git description found" Anyway my "cwchar"-problem is still there. Any idea whats going on with my gcc-complier? Thx in advanced Florian |
|
October 24, 2011, 06:41 |
|
#59 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Never mind that
No. Have you tried compiling a simple "Hello world"-example with it? If THAT doesn't work then your installation has a problem |
|
October 25, 2011, 06:05 |
|
#60 |
New Member
Flo bucken
Join Date: Mar 2009
Location: Germany
Posts: 8
Rep Power: 17 |
Hallo,
I did a small research about this cwchar-poblem. It seems to be that some libraries are missing on my mac. It could be that this has something to do with gnu c libraries and specially with the glibc. But if I want to compile this glibc-library on lion the terminal say: ../configure checking build system type... x86_64-apple-darwin11.2.0 checking host system type... x86_64-apple-darwin11.2.0 checking for gcc... gcc checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes configure: running configure fragment for add-on libidn configure: running configure fragment for add-on nptl *** The GNU C library is currently not available for this platform. *** So far nobody cared to port it and if there is no volunteer it *** might never happen. So, if you have interest to see glibc on *** this platform visit *** http://www.gnu.org/software/libc/porting.html *** and join the group of porters Iīm usind gcc4.5.3. I donīt find gnu c library for mac... Greetings |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent @ Mac OSx | ignazio | FLUENT | 12 | July 25, 2017 08:03 |
foamToTecplot360 on mac osx 10.6 SL | mohanamuraly | OpenFOAM | 0 | April 27, 2011 01:26 |
Mac OSX and Homebrew | egp | OpenFOAM Installation | 1 | February 15, 2011 11:21 |
OpenFOAM13 for Mac OSX Darwin 104 | hjasak | OpenFOAM Installation | 70 | September 24, 2010 06:06 |
OpenFOAM on mac OSX | Nick Colam | Main CFD Forum | 3 | January 27, 2009 01:06 |