|
[Sponsors] |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 15, 2011, 09:07 |
|
#41 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Yes I added #include <stddef.h> to a file, so the compilation doesn't stop at 5% but at 49%.
Otherwise I'm still getting error: Quote:
Regards, Attila |
||
November 16, 2011, 03:38 |
|
#42 | ||||
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Unfortunately the compilation doesn't still work. I attach the log file.
The errors are: Quote:
This is my options file: Quote:
Quote:
The 'cannot find' files are: Quote:
Regards, Attila Last edited by Attesz; November 16, 2011 at 04:07. Reason: adding info |
|||||
November 16, 2011, 07:24 |
|
#43 | |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Quote:
how can I do this? I'm getting the same error message... Thanks, Attila |
||
November 16, 2011, 07:32 |
|
#44 |
Senior Member
Attesz
Join Date: Mar 2009
Location: Munich
Posts: 368
Rep Power: 17 |
Well.. I forget to add / to the end of line 7
COMPILED!! Can't believe it! I will write the instructions to prevent the other beginners to waste a lot of time for this! So David, thank you very much for your help! I wish you the best, Attila |
|
November 16, 2011, 13:37 |
|
#45 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
Yay! That's a relief. Quite an ordeal - I'm glad you got it up and running. Now, go do some good science with it!
-Dave
__________________
~~~ Follow me on twitter @DavidGaden |
|
January 13, 2012, 13:38 |
|
#46 | ||
Member
Diego Angeli
Join Date: Mar 2009
Posts: 31
Rep Power: 17 |
Hello FOAMers,
I've been configuring my new flaming laptop these days and I went through the usual pains of compiling both the vanilla and extend OF versions on a Kubuntu 11.10 64 bit system. I thought it would be good to share my experience with the build of 1.6-ext, so I'm revamping this useful thread and bringing forth some status update with respect to what it was discussed before. Luckily enough, and thanks to this and other threads scattered around the CFD-online and the OF-extend forums, I managed to sort out the compilation of both the ThirdParty tools and 99% of all the 1.6-ext package. Although there is only a minor glitch still unsolved, I'm fine with the result. Here are some comments on what I did 0) First of all, let me say that Bruno's tutorial is very useful for setting up both dependencies and the environment. Also this guide from Hakan Nilsson After cloning the git repository I also created my own git branch to keep the master copy clean and do my tricks safely: Code:
git checkout -b myFixes I had to modify the $WM_DIR/rules/linux64Gcc/c++ file according to the instruction at this link And, as David suggested here I modified the Make/options file for the scotchDecomp library Quote:
2) The only issue regarding gcc-4.6 was on the mesquite library, which was rather well known. Rather than following the advice of Chris (on this thread) who suggested to revert to gcc-4.5 for compilation of mesquite, I followed the advice on this post of the extend forum Quote:
3) I managed to compile and install Paraview: here are three key tips: a) Initially, the compilation of ParaView typically stops at 5%. As also explained by David for other packages (for which seemingly now all problems are fixed), the AllMake.stage4 script fails, but it will have downloaded all the necessary .tar.gz files to ThirdParty/rpmBuild/SOURCES. When AllMake runs, it unpacks these .tar.gz files into source directories in ThirdParty/rpmBuild/BUILD. The hack to be done here is then quite ugly: one has to edit the tar.gz archive itself! Here it is: - open the $WM_PROJECT_DIR/ThirdParty/rpmBuild/SOURCES/ParaView-3.10.1.tar.gz - extract (or directly edit, if the archiving program allows for it) the file ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx - added Code:
#include <stddef.h> - (if needed) add the modified file to the archive, being careful to place it in the right position - save the archive. When the AllMake script is run again, the compilation now (as many of you reported) stops at 49% b) as Stanislav suggests in this thread , in the /opt/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SPECS/ParaView-3.10.1.spec file, line 153, statement Code:
addCMakeVariable OPENGL_gl_LIBRARY:STRING= c) Two posts after, Stanislav offers the solution to the third and last issue: the AllMake.stage4 script exits with errors and no rpm is built. One should go manually into the ParaView build directory and do the following: Code:
./AllMake.stage4 # first try cd rpmBuild/BUILD/ParaView-3.10.1/buildObj/ make install cd ../../../../ ./AllMake.stage4 Code:
cp -r rpmBuild/BUILDROOT/ParaView-3.10.1-linux64GccDPOpt.x86_64/opt/OpenFOAM/OpenFOAM-1.6.ext/ThirdParty/packages/ParaView-3.10.1/platforms/linux64GccDPOpt/* ./packages/ParaView-3.10.1/platforms/linux64GccDPOpt/ Code:
# [ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.10.1/platforms/$WM_OPTIONS ] && { # _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.10.1/platforms/$WM_OPTIONS/etc/ParaView-3.10.1.sh Code:
[ -z "$PARAVIEW_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS ] && { _foamSource $WM_THIRD_PARTY_DIR/packages/ParaView-3.8.1/platforms/$WM_OPTIONS/etc/ParaView-3.8.1.sh 4) Once I finally ran the cavity tutorial to test the installation, the only annoying thing was that the PV3FoamReader (correctly compiled and built) does not actually work: in fact, I had to select manually the reader to be used for the cavity.OpenFOAM file in a dialog when opening the results with ParaView. I wanted to dig more into this, so I opened the Plugins->Manage Plugins menu in ParaView and I discovered that there was a problem in the libPV3FoamReader_SM plugin. Here it is Code:
libPV3FoamReader_SM Error /opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/paraview_plugins/libPV3FoamReader_SM.so Load Error, Plugin verification data mismatch in '/opt/OpenFOAM/OpenFOAM-1.6-ext/lib/linux64GccDPOpt/paraview_plugins/libPV3FoamReader_SM.so' /opt/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64GccDPOpt/lib/libparmetis.so: undefined symbol: ompi_mpi_comm_world Code:
sed -i -e 's=\.OpenFOAM=\.foam=' $WM_PROJECT_DIR/bin/paraFoam Regards, diego Last edited by diego_angeli; January 17, 2012 at 05:53. |
|||
Tags |
11.10, ext, of extended |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1 installation problem on Fedora 14 | armonica | OpenFOAM Installation | 16 | March 31, 2011 14:16 |
Error in apt-get update for installation of OpenFoam 1.7.1 on Ubuntu 10.10 | StuntedChicken | OpenFOAM Installation | 1 | January 9, 2011 11:43 |
New openfoam installation | fivos | OpenFOAM Installation | 5 | April 1, 2009 04:58 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |