CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

OpenFOAM-1.6-ext Installation QT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2010, 04:55
Default OpenFOAM-1.6-ext Installation QT
  #1
Member
 
Join Date: Nov 2010
Posts: 86
Rep Power: 15
abminternet is on a distinguished road
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
abminternet is offline   Reply With Quote

Old   December 1, 2010, 05:55
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   December 4, 2010, 03:21
Default
  #3
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
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
david is offline   Reply With Quote

Old   December 4, 2010, 07:14
Default
  #4
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Hello,

Which platform are you using for compiling QT?

Martin

Quote:
Originally Posted by david View Post
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
mbeaudoin is offline   Reply With Quote

Old   December 5, 2010, 05:06
Default
  #5
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
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
david is offline   Reply With Quote

Old   December 5, 2010, 11:09
Default
  #6
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
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:
Originally Posted by david View Post
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
mbeaudoin is offline   Reply With Quote

Old   December 6, 2010, 04:46
Default
  #7
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
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
david is offline   Reply With Quote

Old   December 6, 2010, 13:30
Default
  #8
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Quote:
Originally Posted by hjasak View Post
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

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
========================================
The complete log exceed the posts maximum. Any ideas?

My system:
OpenSuse 11.2
system's qmake: 4.6.3

If you need more information don't hesitate to ask me.

Regards

Pablo
pcaron is offline   Reply With Quote

Old   December 6, 2010, 17:23
Default
  #9
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
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 18:05.
david is offline   Reply With Quote

Old   December 7, 2010, 01:24
Default
  #10
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
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

Quote:
Originally Posted by david View Post
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
mbeaudoin is offline   Reply With Quote

Old   December 7, 2010, 02:31
Default
  #11
New Member
 
L.Tuominen
Join Date: Jul 2010
Posts: 8
Rep Power: 15
tuominen is on a distinguished road
Quote:
Originally Posted by david View Post
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
Try deleting $HOME/.config/Paraview directory. I think that helped in my machine.

Lasse
tuominen is offline   Reply With Quote

Old   December 7, 2010, 14:47
Default
  #12
Member
 
David Hora
Join Date: Mar 2009
Location: Zürich, Switzerland
Posts: 63
Rep Power: 17
david is on a distinguished road
Thank you very much, Lasse. That solved the problem

Best regards
David
david is offline   Reply With Quote

Old   December 8, 2010, 09:52
Default
  #13
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Hi Pablo,

Have you solved your problem? If not, can you show the part of the log file where the first error occurs?


Quote:
Originally Posted by pcaron View Post
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
__________________
David A. Boger
boger is offline   Reply With Quote

Old   December 9, 2010, 07:09
Default
  #14
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Quote:
Originally Posted by boger View Post
Hi Pablo,

Have you solved your problem? If not, can you show the part of the log file where the first error occurs?
Hi David,

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
pcaron is offline   Reply With Quote

Old   December 9, 2010, 13:49
Default
  #15
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Paraview errors:

Quote:
Qt QTGUI library not found.
Qt QTSQL library not found.
Qt QTNETWORK library not found.
Qt QTCORE library not found.
CMake Error at VTK/GUISupport/Qt/CMakeLists.txt:123 (QT4_WRAP_CPP):
Unknown CMake command "QT4_WRAP_CPP".
Does someone knows how to fix that?
aerothermal is offline   Reply With Quote

Old   December 9, 2010, 13:58
Default
  #16
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Quote:
Originally Posted by aerothermal View Post
Paraview errors:



Does someone knows how to fix that?
Hi Guilherme, the information you're giving it's not enough to understand the problem.

Can you give us a little more information. What are you trying to do? Compile Paraview? Run Paraview?

Regards

Pablo
pcaron is offline   Reply With Quote

Old   December 9, 2010, 14:02
Default
  #17
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Quote:
Originally Posted by aerothermal View Post
Paraview errors:



Does someone knows how to fix that?
What do you get for "which qmake" and "qmake --version"
__________________
David A. Boger
boger is offline   Reply With Quote

Old   December 9, 2010, 14:24
Default qmake
  #18
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
See the results of qmake queries

Quote:
$which qmake
/usr/bin/qmake

$echo $QT_DIR
/usr

$ qmake --version
Qmake version: 1.07a (Qt 3.3.8b)
Qmake is free software from Trolltech ASA.
aerothermal is offline   Reply With Quote

Old   December 9, 2010, 14:26
Default
  #19
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 15
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
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?
aerothermal is offline   Reply With Quote

Old   December 9, 2010, 14:40
Default
  #20
Senior Member
 
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17
boger is on a distinguished road
Quote:
Originally Posted by aerothermal View Post
See the results of qmake queries
Sounds like your qt is pretty old. Can you update it? apt-get install qt?
__________________
David A. Boger
boger is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 02:42
OpenFOAM 1.6 installation in Ubuntu 9.1 jsm OpenFOAM Installation 4 January 3, 2010 22:53
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 23:16.