CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFOAM-1.6-ext Installation QT (https://www.cfd-online.com/Forums/openfoam/82633-openfoam-1-6-ext-installation-qt.html)

abminternet December 1, 2010 04:55

OpenFOAM-1.6-ext Installation QT
 
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

hjasak December 1, 2010 05:55

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

david December 4, 2010 03:21

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 December 4, 2010 07:14

Hello,

Which platform are you using for compiling QT?

Martin

Quote:

Originally Posted by david (Post 285958)
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 December 5, 2010 05:06

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 December 5, 2010 11:09

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 (Post 286046)
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 December 6, 2010 04:46

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

pcaron December 6, 2010 13:30

Quote:

Originally Posted by hjasak (Post 285550)
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

david December 6, 2010 17:23

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 December 7, 2010 01:24

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 (Post 286258)
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


tuominen December 7, 2010 02:31

Quote:

Originally Posted by david (Post 286161)
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

david December 7, 2010 14:47

Thank you very much, Lasse. That solved the problem :)

Best regards
David

boger December 8, 2010 09:52

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 (Post 286241)
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


pcaron December 9, 2010 07:09

Quote:

Originally Posted by boger (Post 286536)
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

aerothermal December 9, 2010 13:49

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?

pcaron December 9, 2010 13:58

Quote:

Originally Posted by aerothermal (Post 286753)
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

boger December 9, 2010 14:02

Quote:

Originally Posted by aerothermal (Post 286753)
Paraview errors:



Does someone knows how to fix that?

What do you get for "which qmake" and "qmake --version"

aerothermal December 9, 2010 14:24

qmake
 
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 December 9, 2010 14:26

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?

boger December 9, 2010 14:40

Quote:

Originally Posted by aerothermal (Post 286764)
See the results of qmake queries

Sounds like your qt is pretty old. Can you update it? apt-get install qt?


All times are GMT -4. The time now is 00:21.