|
[Sponsors] |
December 1, 2010, 05:55 |
OpenFOAM-1.6-ext Installation QT
|
#1 |
Member
Join Date: Nov 2010
Posts: 86
Rep Power: 16 |
Hi all,
I have been trying to install OpenFOAM 1.6-ext for a while now, and i have had no success with stage4 of the Thirdparty directory. At first I realized QT wasn't being installed so the whole thing just skipped. I modified the script because the line that installed QT was commented, so i uncommented it. Is there any reason why it should be commented? and if yes, then how should I install QT then?? with the uncommented line I get the following error: /usr/bin/ld: warning: libQtCLucene.so.4, needed by /opt/software/openfoam/extend/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource- src-4.7.0/lib/libQtHelp.so, not found (try using -rpath or -rpath-link) after that there is just a bunch of effor messages, related with QCLUCENE i guess, and then it ends saying it couldn't build the rpm. Any suggestions? I would pretty much appreciate it |
|
December 1, 2010, 06:55 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Yes, my fault - the compilation of qt takes forever and the nightly test loop tries to do it every night, which I don't like
I would advise you to install system qt and then do the following trick. Try: which qmake For me, this gives /usr/bin/qmake. I can then set QT_DIR environment variable to /usr and qmake will be found properly and used to build Paraview. Martin is doing some hot-fixes in the ThirdParty package to improve things - have to say, he has done an amazing job and I'm happy we switched the way ThirdParty is done in the release. Please bear with us for a while until this gets fully automated; people already say it is much better than it used to be. Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
December 4, 2010, 04:21 |
|
#3 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
Had the same problem. My solution was
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/$USER/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.0/lib/ before starting the compilation of qt David |
|
December 4, 2010, 08:14 |
|
#4 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello,
Which platform are you using for compiling QT? Martin |
|
December 5, 2010, 06:06 |
|
#5 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
Hi Martin
It's Ubuntu 10.04. Everything compiles and paraview runs fine but there seems to be a problem with the reader. I get the following error if I open a case: david@freitag:~/OpenFOAM/david-1.6-ext/run/tutorials/incompressible/simpleFoam/pitzDaily$ paraFoam created temporary 'pitzDaily.OpenFOAM' ERROR: In /home/david/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1065 vtkProcessModule (0x19e6830): Object type: vtkPV3FoamReader, could not find requested method: "SetRefresh" or the method was called with incorrect arguments. while processing Message 1 = Invoke Argument 0 = id_value {114} Argument 1 = string_value {SetRefresh} Argument 2 = int32_value {0} ERROR: In /home/david/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.8.1/Servers/Common/vtkProcessModule.cxx, line 1066 vtkProcessModule (0x19e6830): Aborting execution for debugging purposes. Aborted setRefresh is present in vtkPV3FoamReader of 1.7.x but not in 1.6-ext or 1.6.x. After adding the function, paraview complains about the missing SetUseVTKPolyhedron. Regards David |
|
December 5, 2010, 12:09 |
|
#6 | |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Hello David,
Ubuntu 10.04 was one of my test OS while developing the new ThirdParty packaging. I am using the same pitzDaily test case for testing ParaView, and I did not notice such problem the last time I tried it. > vtkProcessModule (0x19e6830): Object type: vtkPV3FoamReader, could not > find requested method: "SetRefresh" > or the method was called with incorrect arguments. > setRefresh is present in vtkPV3FoamReader of 1.7.x but not in 1.6-ext or 1.6.x. I fail to understand your problem: If the method "vtkPV3FoamReader::SetRefresh()" is not present in the source code of 1.6-ext, then how could the reader compiled for 1.6-ext ask for this method in the first place??? I would suggest that your 1.7.x and 1.6-ext installation are somehow mixed-up. It seems to me you are loading the reader compiled for 1.7.x instead of the reader compiled for 1.6-ext. Martin Quote:
|
||
December 6, 2010, 05:46 |
|
#7 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
I tried to recompile the comlete stuff in a clean environment to be sure that there is nothing that could be mixed-up. Unfortunately without success, same error message. I never had such problems before and I was suprised that I couldn't find anything in the forum about it. In the worst case I will have to do it the old way.
David |
|
December 6, 2010, 14:30 |
|
#8 | |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Quote:
Dear Hrvoje, I tried the QT_DIR trick. After I changed the QT_DIR it started compiling paraview but it failed installing. Here is the last part of log file corresponding to AllMake Code:
INFO: relinking /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/ooo3/share/uno_packages/cache/uno_packages/LRUgAW_/mysql-connector-ooo.oxt -> /usr/lib64/ooo3/share/extension/install/mysql-connector-ooo.oxt (was /usr/lib64/ooo3/share/extension/install/mysql-connector-ooo.oxt/) ERROR: link target doesn't exist (neither in build root nor in installed system): /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/bin -> /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/bin Add the package providing the target to neededforbuild and Requires ERROR: link target doesn't exist (neither in build root nor in installed system): /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/include -> /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/include Add the package providing the target to neededforbuild and Requires ERROR: link target doesn't exist (neither in build root nor in installed system): /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/lib -> /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/lib64 Add the package providing the target to neededforbuild and Requires ERROR: link target doesn't exist (neither in build root nor in installed system): /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt3 -> /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/lib/qt3 Add the package providing the target to neededforbuild and Requires error: Estado de salida erróneo de /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.g7ZEbt (%install) Errores de construcción RPM: Estado de salida erróneo de /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.g7ZEbt (%install) Installing package: ParaView-3.8.1 Uninstalling ParaView-3.8.1 using RPM: ParaView-3.8.1-linux64GccDPOpt.x86_64 Installing ParaView-3.8.1 using RPM file: /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm error: la apertura de /home/pablo/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm falló: No existe el fichero o el directorio Done installing package ParaView-3.8.1 ======================================== Done ThirdParty AllMake: Stage4 ======================================== ======================================== Done ThirdParty Allwmake ======================================== My system: OpenSuse 11.2 system's qmake: 4.6.3 If you need more information don't hesitate to ask me. Regards Pablo |
||
December 6, 2010, 18:23 |
|
#9 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
Hi Martin
It succeeded with paraview-3.8.0 (and qt 4.6.3). Has it really been tested with 3.8.1? Not only the compilation, also the loading of a case? Is there anyone else who tried to compile it on Ubuntu 10.04? Feedback would be nice. Best regards David Last edited by david; December 6, 2010 at 19:05. |
|
December 7, 2010, 02:24 |
|
#10 |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 |
Yes it was tested on 5 different OSes, including Ubuntu 10.04 and OpenSuSE 11.3.
It was tested only with ParaView 3.8.1, and yes, cases were loaded and visualized using paraFoam. None of the test platforms had any traces of OF 1.7.x source code. Again, there is no way a source code compiled for 1.6-ext could ask for methods only present in 1.7.x source code. Check your ThirdParty directory settings. Check your paraview plugins directories. Martin |
|
December 7, 2010, 03:31 |
|
#11 | |
New Member
L.Tuominen
Join Date: Jul 2010
Posts: 8
Rep Power: 16 |
Quote:
Lasse |
||
December 7, 2010, 15:47 |
|
#12 |
Member
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17 |
Thank you very much, Lasse. That solved the problem
Best regards David |
|
December 8, 2010, 10:52 |
|
#13 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Hi Pablo,
Have you solved your problem? If not, can you show the part of the log file where the first error occurs?
__________________
David A. Boger |
|
December 9, 2010, 08:09 |
|
#14 | |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
Quote:
Yes, I solved the problem, yesterday I don't know what was wrong with system's QT. I uncommented the line corresponding to qt-every... in the script AllMake.stage4. So, I'm using qt-4.7.0 from the ThirdParty directory. It's seems to be an issue (bug?) in the script. After I compile the Qt the Paraview step complains about missing QT_DIR definition. Reloading all variables (. ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc) again solved the problem. Everything is working now!! Thanks for your reply. Regards Pablo |
||
December 9, 2010, 14:49 |
|
#15 | |
Senior Member
|
Paraview errors:
Quote:
|
||
December 9, 2010, 14:58 |
|
#16 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
||
December 9, 2010, 15:02 |
|
#17 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
What do you get for "which qmake" and "qmake --version"
__________________
David A. Boger |
|
December 9, 2010, 15:24 |
qmake
|
#18 | |
Senior Member
|
See the results of qmake queries
Quote:
|
||
December 9, 2010, 15:26 |
|
#19 |
Senior Member
|
I am trying to compile the AllMake.stage4
I have Paraview from 1.7.1 and 1.5dev versions. Do I need to compile it for 1.6ext? |
|
December 9, 2010, 15:40 |
|
#20 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
Sounds like your qt is pretty old. Can you update it? apt-get install qt?
__________________
David A. Boger |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.6 installation in Debian 5.06 lenny IA64 | icingfish | OpenFOAM Installation | 8 | October 8, 2010 03:42 |
OpenFOAM 1.6 installation in Ubuntu 9.1 | jsm | OpenFOAM Installation | 4 | January 3, 2010 23:53 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
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 |