|
[Sponsors] |
June 26, 2010, 14:21 |
OpenFOAM 1.7.0 installation problem
|
#1 |
New Member
Join Date: Jan 2010
Posts: 10
Rep Power: 16 |
Hello,
I am having problems with the new 1.7.0 installation. The problem starts when I get the following while compiling argList.C for libOpenFoam.so: lnInclude/dictionaryTemplates.C: In member function 'TFoam::dictionary::lookupOrDefault(const Foam::word&, const T&, bool, bool) const [with T = Foam::Switch]': global/argList/argList.C:396: instantiated from here lnInclude/dictionaryTemplates.C:44: error: call of overloaded 'Switch(Foam:: pTraits<Foam::Switch>)' is ambiguous lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int) lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool) lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&) Any suggestions? Many thanks, Steve |
|
June 26, 2010, 17:53 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Steve,
That's odd... I'm currently building OpenFOAM 1.7 and there was no error there for me! I'm using Ubuntu 9.10 x86_64 with Ubuntu's gcc 4.4.1. So, here are a few questions, to try to figure out what happened with your build:
Best regards, Bruno
__________________
|
|
June 26, 2010, 22:55 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
The build fails on openSUSE 11.3 RC1 too, complaining about missing separators in option files everywhere. I'm trying to figure out what's going on...
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
June 26, 2010, 23:55 |
|
#4 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Dear all,
OpenFOAM is developed and tested on Linux, but should work with other POSIX systems. OpenFOAM-1.7.0 and ThirdParty-1.7.0 have been tested on standard Ubuntu 10.04 and OpenSuSE 11.2 Linux distributions. OpenFOAM has been tested in ubuntu and OpenFOAMSUSE, Who can tell me which system is better . Because before I use OpenSUSE, but I noticed that ubuntu sometime can recognized more CPU numbers than OpenSUSE. My professor buys two same computers for I and my classmate. I install OpenSUSE, the system can display 8 CPUs, but my calssmate's computer installed Ubuntu, and can display 16 CPUs, I don't know why. Maybe this is some high tecnique of CPU, some Linux system can't use this surficiently. If now Ubuntu is also compatible with OpenFOAM perfectly, I intend to install Ubuntu. |
|
June 26, 2010, 23:57 |
|
#5 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
And if someboy can share some attentation when installing 1.7 should be payed, That would be very good. Or the installation is the same with 1.6 ?
|
|
June 27, 2010, 00:17 |
|
#6 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Well, I would think twice before basing the choice only on the pre-packaged version of OpenFOAM. I would not change openSUSE for ubuntu without a technical reason: I think openSUSE is cleaner and better engineered, even if someone says ubuntu is easier to use (try to configure something at server level and I think you'll change your mind). Additionally openSUSE has some advantage based on the fact it is the base for SUSE Linux Enterprise: commercial applications certified for SLE usually work without any problem on openSUSE.
I think the small effort of compiling OF (you'll have to do the same on ubuntu as soon as 1.7.x comes out) is well repaid :-) On openSUSE 11.2, the installation is straightforward: follow the instructions in the README, and after some time it's ready. OpenSUSE 11.3 is still in release candidate, and I'm trying to have the instructions ready for when it comes out :-)
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. Last edited by alberto; June 27, 2010 at 00:18. Reason: Added comment |
|
June 27, 2010, 04:12 |
|
#7 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello everyone,
Great to see that there is a brand new version of OpenFOAM now :-)! All that needs to happen is to see a "-dev" version of this release, and I will be jumping around :-)! Anyway, the compilation problem some people seem to be having with OpenFOAM-1.7 has basically been addressed at the following post, and the solution has also been mentioned in the post..... I stumbled upon this issue since GCC-4.4 (I think.... !) OpenFOAM-1.5-dev SVN15xx with gcc-4.4.2 Hope this helps.....! Have a great Sunday! Philippose |
|
June 27, 2010, 11:19 |
|
#8 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
New version 's source pack is so samll compared with 1.6 .
|
|
June 27, 2010, 11:27 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi panda60,
This way the download footprint is also a lot smaller! I would say it's ecologically more sensible well, only up to a certain point... But also useful for when the files fail to download properly, which happens occasionally! The actual reason for it being smaller is that this time they don't pack in it the code documentation, which stood for a lot of megabytes of the package.... around 70-75MB when packed, if I'm not mistaken. Best regards, Bruno
__________________
|
|
June 29, 2010, 02:35 |
|
#10 |
Senior Member
Jiang
Join Date: Oct 2009
Location: Japan
Posts: 186
Rep Power: 17 |
Dear wyldckat,
Thanks for your explanation. And I will install version-1.7 in OpenSUSE11.2 quickly. And now I can't download the user's Guide 1.7 in the home page. The pdf file has not been put ? |
|
June 29, 2010, 02:51 |
|
#11 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
It's in the main package, in the usual subdirectory "doc".
About the doxygen code documentation, there are the scripts to generate it.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
June 30, 2010, 11:30 |
|
#12 | |
New Member
Charles McCreary
Join Date: Jun 2010
Posts: 12
Rep Power: 16 |
Alas, I cannot get OpenFOAM to compile on CentOS release 5.5 (Final). I compiled gcc 4.4.4, set PATH to the gcc bin directory, modified OpenFOAM-1.5-dev/wmake/rules/linuxGcc/general to add the -P flag (although I think with 4.4.4 cpp that is not required), and I still get:
Quote:
|
||
June 30, 2010, 12:23 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Charles and welcome to the forum!
Might I suggest following Linnemann's instructions: http://www.cfd-online.com/Forums/ope...-released.html Best regards, Bruno
__________________
|
|
July 4, 2010, 23:24 |
|
#14 | |
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 21 |
Quote:
__________________
~ Daniel WEI ------------- Boeing Research & Technology - China Beijing, China |
||
December 1, 2010, 16:30 |
error: call of overloaded ‘Switch
|
#15 |
New Member
Gary Howell
Join Date: Dec 2010
Posts: 1
Rep Power: 0 |
I'm also seeing the problem quoted by Stevek.
Am working with redhat linux .. upgraded from gcc 4.1.2 gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) to 4.5 Thread model: posix gcc version 4.5.1 (GCC) -------------------------------- On working a bit more, found that I could recover from wmake errors by repeating the compile command on the command line. The problem was that inside the wmake the older flavor of g++ was being used. The flavor of g++ was not taken from the etc/cshrc script which had been sourced before the compile. The solution was to edit my path so that the path to the newer g++ occurred before the system g++. Presumably the path change setenv PATH pathtonewgcc:$PATH could be included in the chsrc file before sourcing it. Next to recompile with a working mpich library .. The initial error is lnInclude/dictionaryTemplates.C: In member function ‘T Foam::dictionary::lookupOrDefault(const Foam::word&, const T&, bool, bool) const [with T = Foam::Switch]’: global/argList/argList.C:396: instantiated from here lnInclude/dictionaryTemplates.C:44: error: call of overloaded ‘Switch(Foam:Traits<Foam::Switch>)’ is ambiguous lnInclude/Switch.H:140: note: candidates are: Foam::Switch::Switch(int) lnInclude/Switch.H:134: note: Foam::Switch::Switch(bool) lnInclude/Switch.H:62: note: Foam::Switch::Switch(const Foam::Switch&) make: *** [Make/linux64Gcc43DPOpt/argList.o] Error 1 Last edited by howellg; December 3, 2010 at 16:20. Reason: solved problem |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.0 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 1 | May 26, 2011 04:09 |
Installation paraFoam - still problem | nhl | OpenFOAM Installation | 7 | June 22, 2010 10:22 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Problem in installation of OpenFOAM | sachin | OpenFOAM Installation | 7 | January 22, 2008 02:40 |
Installation problem with GCC | Norma McKee (Mckee) | OpenFOAM Installation | 10 | March 4, 2007 08:09 |