|
[Sponsors] |
January 12, 2014, 12:48 |
extend-3.0 Installation problems
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
I have a problem while compilate the new extend-3.0 version. 1. Installation in the default folder is okay (/home/name/foam/...) 2. Installation in my folder /home/name/OpenFOAM/OpenFOAM-extend-3.0 gives problems. Third-Party is compiling well but after starting compiling the FOAM I have one problem at the beginning. Code:
gcc -m64 -Wall -O3 -fPIC dirToString.c -o /home/shorty/OpenFOAM/OpenFOAM-extend-3.0/wmake/bin/linux64Gcc46/dirToString flex wmkdep.l gcc -m64 -Wall -O3 -fPIC lex.yy.c -o /home/shorty/OpenFOAM/OpenFOAM-extend-3.0/wmake/bin/linux64Gcc46/wmkdep lex.yy.c:1391:17: warning: 'yyunput' defined but not used [-Wunused-function] lex.yy.c:1432:16: warning: 'input' defined but not used [-Wunused-function] + wmakePrintBuild -check same version as previous build + wmakeLnInclude foam + wmakeLnInclude meshTools + wmakeLnInclude OSspecific/POSIX + Pstream/Allwmake + wmake libso dummy SOURCE=IPread.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/IPread.o SOURCE=Pstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/Pstream.o SOURCE=OPwrite.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/OPwrite.o OPwrite.C:29:19: fatal error: error.H: No such file or directory compilation terminated. Pstream.C:26:21: fatal error: Pstream.H: No such file or direct They are available. I did exactly the same as in step 1. Only the folder is different. I changed the bashrc file to the correct location. Any hints are appreciated Regards Tobi |
|
January 12, 2014, 13:31 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Tobi,
Quote:
Best regards, Bruno
__________________
|
||
January 12, 2014, 13:44 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Mmm... did you do these steps:
|
|
January 12, 2014, 13:46 |
|
#5 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Quote:
I did exactly the steps you said.
PS: but it is not a very critical problem because I have the extend version working in the original directory! |
||
January 12, 2014, 15:04 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
OK, pretty simple issue... before running Allwmake, run this command:
Code:
ln -s foam src/OpenFOAM edit: Nope, that alone did not solve the problem. You'll need to also run this command: Code:
sed -i -e "s=libfoam=libOpenFOAM=" src/OpenFOAM/Make/files Code:
sed -i -e 's=foam=OpenFOAM=' applications/utilities/postProcessing/graphics/PV4FoamReader/PV4FoamReader/CMakeLists.txt Last edited by wyldckat; January 12, 2014 at 16:31. Reason: see "edit:" and "edit 2" |
|
February 19, 2014, 05:06 |
|
#8 | |
New Member
Ola Widlund
Join Date: Jun 2011
Location: Sweden
Posts: 13
Rep Power: 15 |
Hi Bruno and Tobias,
I had the same issue, and I was glad to find your thread here at the forum. Has any of you reported this as a bug? Otherwise I can do it in the next few days. Both names of subdirectories and lib names ought to have fixed names, rather than using the WM_PROJECT variable. The way it is now, the WM_PROJECT variable only has one valid value, "foam", otherwise the installation is broken. Best regards, Ola Quote:
|
||
February 19, 2014, 09:22 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Ola,
Feel free to report the issue you're referring to. A related bug report was this one: http://sourceforge.net/apps/mantisbt...iew.php?id=195 - but it only refers to linking issues with the plug-in for ParaView. Best regards, Bruno
__________________
|
|
February 20, 2014, 15:26 |
|
#10 | |
New Member
Ola Widlund
Join Date: Jun 2011
Location: Sweden
Posts: 13
Rep Power: 15 |
Hi again,
I have looked at the code base, and reconsidered... The same issue is present also in the OpenCFD release. Since this is the way it has always been done, there's no point in proposing a change just because I think it should be different... The fundamental thing is that the WM_PROJECT variable is used in many places to create the path to the src/foam subdirectory (src/OpenFOAM in the OpenCFD release). As a consequence, the WM_PROJECT variable should never be changed in etc/bashrc. What I wanted, like Tobi, was to have a different name for the installation directory. This is for compatibility with the version selection in our cluster configuration. I can deal with this in other ways, so it's not a big problem. /Ola Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Problems with coedge curves and surfaces | tommymoose | ANSYS Meshing & Geometry | 6 | December 1, 2020 12:12 |
OpenFoam 2.0.0 installation | Jan_Peters | OpenFOAM Installation | 86 | April 27, 2012 06:32 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
installation problems on upgrade from win 3.26 to | mic | Siemens | 5 | June 20, 2007 10:40 |
Problems on 64bit Installation | Dietmar Schmidt | Siemens | 4 | April 18, 2007 07:36 |