|
[Sponsors] |
April 24, 2009, 05:38 |
|
#21 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
And I can add to Jaswi's comment:
In the OpenFOAM-1.5-dev folder, there is a file Allwmake. Execute this instead of the one in src, as this will compile everything you need, including ThirdParty stuff and applications/utilities. Best regards, Niels |
|
April 24, 2009, 06:35 |
I've a problem too
|
#22 |
New Member
Danilo
Join Date: Mar 2009
Location: Munich, Germany
Posts: 10
Rep Power: 17 |
Hi,
I'm also in trouble with the installation of OpenFOAM 1.5-dev on my Pc (there is the 1.5 already installed on the server). I installed everything and IcoFoam works properly, but if i try to execute the foamInstallationTest i receive the following message: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: scramjet.td.mw.tum.de OS: Linux version 2.6.25.20-0.1-default ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /nfs/home/bruno/OpenFOAM yes yes $WM_PROJECT_USER_DIR /nfs/home/bruno/OpenFOAM/bruno-1.5-dev yes no $WM_THIRD_PARTY_DIR /nfs/home/bruno/OpenFOAM/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR ...home/bruno/OpenFOAM/OpenFOAM-1.5-dev yes yes yes $FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes $FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no $WM_DIR ...runo/OpenFOAM/OpenFOAM-1.5-dev/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes $FOAM_USER_LIBBIN ...AM/bruno-1.5-dev/lib/linux64GccDPOpt yes yes no $MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- WARNING: gcc version does not match gcc supplied with this release of OpenFOAM Supplied version: 4.3.1 User version : Minimum required: 4.2.0 gcc WARNING: Conflicting installations: OpenFOAM settings : /usr/bin/gcc current path : CRITICAL ERROR gzip 1.3.12 /usr/bin/gzip tar 1.19 /bin/tar icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- ...scramjet.td.mw.tum.de Successful yes Pinging_localHost Successful yes Test_rsh: Unsuccessful_connection_refused* yes Test_ssh: Successful yes (*) Only one of rsh or ssh is required by the OpenFOAM enviroment. ------------------------------------------------------------------------------- I try to change the path of the compiler (before it was pointing to a server directory), but it doesn't still work. Thanks in advance Danilo |
|
April 24, 2009, 07:04 |
|
#23 |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
My dear friend
These types of errors are most basic and most often asked for. My Advice for installation (NOTE : not compilation): 1) always check your .bashrc (in your home ) for which folder you are sourcing from. 2) Once you switch versions in the .bashrc, please save and exit all shells. Each shell has its own environment and changes in one's ENV does not applies to another. Read some basic stuff how the environment is set, it will help you to be more productive. Kind Regards Jaswi |
|
April 24, 2009, 11:06 |
|
#24 | |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Quote:
because i have SuSe11.0(32bit) and QT 4.4.0. I have downloaded ThirdParty.General.gtgz and ThirdParty.linuxGcc.gtgz from OpenFOAM website. Before ThirdParty to be compiled what else should I do? 1. Add line ". $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" in ~/.bashrc. 2. add line " export WM_32=on" in "~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc" 3. comment out the line MESSAGE(SEND_ERROR “Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).” 4. compile ThirdParty 5. compile OF-1.5-dev Are the steps right? I am waiting for your answer and advices online. Thanks a lot for your patience. |
||
April 26, 2009, 09:44 |
|
#25 | |
Senior Member
Join Date: Mar 2009
Posts: 248
Rep Power: 18 |
Quote:
Please do not mix non-compatible packages. You will only make the problem difficult. First of all tell me exactly what do you want to do. INSTALL - If you want to install the OpenFOAM - It takes only 5 minutes to do it, provided you follow the steps COMPILE - If you want to compile , then it will be couple of hours of time provided you have all the other libraries available. The method is very simple if you follow the advice and above all distinguish between three main components of the OpenFOAM pacakge. They are : -- Third Party Source and Binaries -- OpenFOAM Src , which is then compiled into libraries -- OpenFOAM Applications i.e. the Solvers and Utilities I request you to read the README completely from top to bottom. It clearly says what will work with which version of Qt . Any deviation is bound to fail and waste your time . The OpenSOURCE software contains these README files to convey important infomation but poeple take them in the same sense as README or Licence files for the commerical software. We are just used to scrolling down to end and click YES. Will not work in this case my friend. You have to carefull read the README file and then follow the instructions . Those instructions are correct and they have been tested atleast a hundred times by other people. Finally I would once again ask, what is the real goal. Install or Compile . Decide on it and we can take on from there. You will be able to do it yourself with very little guidance from the forum and laugh at it once done. Kind Regards Jaswi P.S: I am not sure removing the error message is the right way to solve this problem. May be somebody have tried that before and it worked , but I will not adviuce anybody to do that. |
||
April 26, 2009, 12:07 |
|
#26 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Jaswi and Hy
First of all, Hy, you should just follow Jaswi's recommendations step by step, as it will definitely work. I followed his excellent guide the first time I needed to compile dev-version, and it went smoothly. Secondly, elsewhere on this forum, people has actually reported successful compilation of paraFoam using another version of QT than the one specified by opencfd. However, if it is not to much of a pain, you might consider to get the correct version, as opencfd must have had some good reasons for being that specific. It can be downloaded here: http://www.qtsoftware.com/ if the version is not in your repository. It is straight forward to compile, however as with OpenFOAM it does also take quite some time. Best regards, Niels |
|
April 27, 2009, 07:30 |
|
#27 |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Dear Jaswinder and Niels,
first of all i want to thank you both gratefully. Actually i want to compile OF-1.5.x or OF-1.5-dev. On weekend i have tried to compile OF-1.5.x. It seems everything is OK. After running the "foamInstallTest" i have the following: Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: ttdws92 OS: Linux version 2.6.25.20-0.1-pae ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/hongyi/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/hongyi/OpenFOAM/hongyi-1.5.x yes no $WM_THIRD_PARTY_DIR /home/hongyi/OpenFOAM/ThirdParty yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/hongyi/OpenFOAM/OpenFOAM-1.5.x yes yes yes $FOAM_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes yes $FOAM_USER_APPBIN ...1.5.x/applications/bin/linuxGccDPOpt yes yes no $WM_DIR ...hongyi/OpenFOAM/OpenFOAM-1.5.x/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...OAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt yes yes yes $FOAM_USER_LIBBIN ...nFOAM/hongyi-1.5.x/lib/linuxGccDPOpt yes yes no $MPI_ARCH_PATH ...penmpi-1.2.6/platforms/linuxGccDPOpt yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- gcc 4.3.1 .../OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux/bin/gcc gzip 1.3.12 /usr/bin/gzip tar 1.19 /bin/tar icoFoam 1.5.x .../OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoFoam ------------------------------------------------------------------------------- Checking networking... ------------------------------------------------------------------------------- Action Result Crit ------------------------------------------------------------------------------- Pinging_ttdws92 Successful yes Pinging_localHost Successful yes Test_rsh: Unsuccessful_connection_refused* yes Test_ssh: Successful yes (*) Only one of rsh or ssh is required by the OpenFOAM enviroment. ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. I think it is OK? right? But now i have another problem about paraFoam. I have tried to run a case in tutorial. e.g. cavity under icoFoam. blockMesh icoFoam paraFoam everything is ok, however, after i gave the paraFoam, i can see the GUI of paraFoam, but i cannot see anything about simulation, either mesh or results. Any ideas? Hongyi |
|
April 27, 2009, 08:29 |
|
#28 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Hongyi
Yes, it does seem to have compiled successfully. With respect to paraFoam, two possible explanations comes to mind: 1. Make sure, that the PV3FoamReader is compiled succesfully. Quote from README: " The PV3FoamReader module is an OpenFOAM utility that can be compiled in the usual manner as follows: + cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader + ./Allwclean + ./Allwmake" 2. Did you reinstall QT to get the correct version, or did you compile it using to "incorrect" version? If bullet 1 does not help, you might need to get the correct version. Good luck, Niels |
|
April 27, 2009, 09:28 |
|
#29 | |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Quote:
i have recompiled PV3FoamReader and there was no problem. But actually i have the wrong QT(4.4.0), and i have commented out the 94th. line in "ThirdParty/ParaView3.3-cvs/CMakeLists.txt" which introduced in other thread. It doesnot work. It seems i have to reinstall correct QT. Dear Niels, can you tell me how i can uninstall the QT 4.4.0 and reinstall QT 4.3.5? And where can i download the QT4.3.5? Forgive my stupid questions. Hongyi |
||
April 27, 2009, 09:32 |
|
#30 |
New Member
Join Date: Apr 2009
Posts: 29
Rep Power: 17 |
Hi Hongyi,
since you are using SUSE you may use YaST to uninstall Qt. Qt-4.3.4/4.3.5 Please have a look at these two pages: 1.) http://www.linuxfromscratch.org/blfs...ble/x/qt4.html 2.) http://doc.trolltech.com/4.3/install-x11.html |
|
April 27, 2009, 10:55 |
|
#31 | |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Quote:
Because the SuSe 11.0 absolutely needs QT4.4.x. So I think that uninstall QT4.4.0 is not an easy job. Have you tried or has anybody already done it? Hongyi |
||
April 27, 2009, 11:02 |
|
#32 |
New Member
Join Date: Apr 2009
Posts: 29
Rep Power: 17 |
Well, I am not quite sure whether SUSE >>absolutely<< needs Qt-4.4.x. Maybe you just have to try...
I have done the same on Ubuntu 8.10 and it worked perfectly. |
|
April 27, 2009, 11:03 |
|
#33 | |
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17 |
Quote:
Gavin |
||
April 27, 2009, 11:54 |
|
#34 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Dear All,
I am running OF on Suse 11.1 with KDE 3 for a while now. It compiles pretty much out of the box - including paraview 3.4.0 (using qt 4.4.4). Good luck. Henrik |
|
April 27, 2009, 12:28 |
|
#35 | |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Quote:
Did you recompile the PV3FoamReader according the introduction in openFoam website? if yes how can you avoid compilation error? (paraView 3.3 needs QT4.3.x) if no what extra have you done? Hongyi |
||
April 27, 2009, 12:51 |
|
#36 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Hongyi,
Yes, PV3.3 insists for having qt4.3, but it can be convinced to compile with a qt4.4 See here http://albertopassalacqua.com/?p=260 Just comment out the line where it stops and all will be fine. Alternatively, you can compile Paraview 3.4. There, I think, qt 4.4 is just flagged as a warning, but you need to change the settings in etc/apps/paraview3/bashrc to pick it up correctly. Henrik |
|
April 28, 2009, 03:43 |
|
#37 | |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Quote:
advice by alberto "comment out the line ....." doesnot help me. I can run a case, i can open paraFoam, but after that i cannot see anathing. The button "apply" has been always grey whatever i have tried. Any ideas? Where can i get Paraview 3.4? Is its compilation difficult? Hongyi |
||
April 28, 2009, 04:52 |
|
#38 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Hongyi,
the source for PV3.4 is available from it's website http://www.paraview.org/paraview/res.../software.html PV 3.4 is as difficult to compile as PV3.3. But, you must adapt (at least) these two files:
Currently I cannot link your error description to anything I have seen and I doubt it is related to the PV version. A screendump using ImageMagick's "import" might help. Please make sure that you compiled PV3 AND the reader. Did they both compile without errors? |
|
April 28, 2009, 05:54 |
|
#39 |
Member
Hy Yu
Join Date: Mar 2009
Location: Hessen, Germany
Posts: 34
Rep Power: 17 |
Hi Henrik,
I think that i have compiled the paraview and its reader. I have tried several times and every time without errors. About one point i am not sure is that according Alberto's advices : 1. buildParaView3.3-cvs 2. compile PV3FoamReader 3 . compile OF-1.5.x In my case i can only do so: 1. compile ThirdParty 2. compile OF-1.5.x 3. delete ThirdParty/ParaView3.3-cvs/platforms, run "buildParaView3.3-cvs" 4. recompile PV3Reader After compilation i run "FoamInstallationTest", it seems everything is OK. However, i can not see anything in ParaFoam. Hongyi |
|
April 28, 2009, 06:02 |
|
#40 |
Senior Member
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18 |
Hongyi,
that's all fine, but you could avoid 4 if you swap 2 and 3. Does paraview cooperate with your graphics? Start paraview on it's own and load some example or a STL-geometry. Henrik |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Installation problems | indy | OpenFOAM Installation | 7 | April 3, 2009 10:40 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Installation problems | shellbell1999 | OpenFOAM Installation | 9 | April 6, 2006 14:29 |
1 fetal error in OpenFOAM12 installation | andycong | OpenFOAM Installation | 3 | February 26, 2006 04:09 |