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

Qt version of Paraview 3.8.0 in OpenFOAM 1.7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2010, 14:09
Default Qt version of Paraview 3.8.0 in OpenFOAM 1.7
  #1
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi everyone
It seems that by using makeParaview tool in the ThirdParty package I can build the paraview 3.8.0 within the ThirdPary package. but with the same machine I can not build the paraview 3.8.0 manual by using ccmake to configure and generate. It error message in ccmake is :
CMake Error at CMakeLists.txt:88 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
variable.



CMake Error at VTK/CMakeLists.txt:310 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
variable.



Qt QTGUI library not found.

Qt QTSQL library not found.

Qt QTCORE library not found.

Qt QTGUI library not found.

Qt QTSQL library not found.

that`s Why?

another quiestion is that if anybody have succeed in building OSMesa in RHEL 4? when i built that , I got all share lib by libGL.so and glx can`t build successful with error message:


../../../bin/mklib -o GL -linker 'gcc' \
-major 1 -minor 2 \
-install ../../../lib -lX11 -lXext -lm -lpthread glcontextmodes.o clientattrib.o compsize.o eval.o glxcmds.o glxext.o glxextensions.o indirect.o indirect_init.o indirect_size.o indirect_window_pos.o indirect_transpose_matrix.o indirect_vertex_array.o indirect_vertex_program.o pixel.o pixelstore.o render2.o renderpix.o single2.o singlepix.o vertarr.o xfont.o glx_pbuffer.o glx_query.o glx_texture_compression.o dri_glx.o XF86dri.o ../../../src/mesa/main/dispatch.o ../../../src/mesa/glapi/glapi.o ../../../src/mesa/glapi/glthread.o
mklib: Making Linux shared library: libGL.so.1.2
../../../src/mesa/main/dispatch.o: In function `gl_dispatch_stub_366':
dispatch.c.text+0xdb10): multiple definition of `gl_dispatch_stub_366'
indirect.o:indirect.c.text+0xea10): first defined here
/usr/bin/ld: Warning: size of symbol `gl_dispatch_stub_366' changed from 205 in indirect.o to 85 in ../../../src/mesa/main/dispatch.o

...........

`glAreTexturesResidentEXT':
dispatch.c.text+0x103d0): multiple definition of `glAreTexturesResidentEXT'
indirect.o:indirect.c.text+0xf730): first defined here
/usr/bin/ld: Warning: size of symbol `glAreTexturesResidentEXT' changed from 293 in indirect.o to 87 in ../../../src/mesa/main/dispatch.o
collect2: ld returned 1 exit status
mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../../lib
mv: cannot stat `libGL.so.1.2': No such file or directory
make: *** [../../../lib/libGL.so] Error 1




is there anyone can help ?

thanks
waynezw0618 is offline   Reply With Quote

Old   August 7, 2010, 19:16
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Wayne Zhang,
Quote:
Originally Posted by waynezw0618 View Post
It seems that by using makeParaview tool in the ThirdParty package I can build the paraview 3.8.0 within the ThirdPary package. but with the same machine I can not build the paraview 3.8.0 manual by using ccmake to configure and generate. It error message in ccmake is :
CMake Error at CMakeLists.txt:88 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
variable.

(....)

that`s Why?
You need to install Qt 4.5 or Qt 4.6, including Qt's development tools. And since you seem to be using RHEL 4, you probably better build Qt from source. You can check my signature link at the end of this post for more possible solutions for you ParaView+Qt problems.

As for OSMesa+RHEL4, I'm all out of ideas, since I've rarely managed to build it successfully in Ubuntu and Windows, and I have no experience with RHEL

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 8, 2010, 15:07
Default
  #3
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi

Thanks for you reply. I have rebuilt the Qt with -no-openssl and then resolve the first problem.

But for the last , I still can`t not make the osmesa correctly in redhat, but fine in Opensuse, osmesa is very usefull of off screen rendering. it is needed to built paraview with tool pvbatch.

wayne
waynezw0618 is offline   Reply With Quote

Old   August 9, 2010, 04:20
Default
  #4
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Wayne,

I have no experience with Red Hat itself, but in Fedora and Scientific Linux (both Red Hat based) yum finds libosmesa:

Code:
[root@pc7368 wierink_g]# yum search libosmesa
Loaded plugins: kernel-module
sl5base                   100% |=========================| 1.1 kB    00:00
sl5kernel                 100% |=========================|  951 B    00:00
sl5nonfree                100% |=========================|  951 B    00:00
sl5others                 100% |=========================|  951 B    00:00
sl5psi                    100% |=========================|  951 B    00:00
sl5update                 100% |=========================|  951 B    00:00
============================== Matched: libosmesa ==============================
mesa-libOSMesa.i386 : Mesa offscreen rendering libraries
mesa-libOSMesa.x86_64 : Mesa offscreen rendering libraries
mesa-libOSMesa-devel.i386 : Mesa offscreen rendering development package
mesa-libOSMesa-devel.x86_64 : Mesa offscreen rendering development package
[root@pc7368 wierink_g]#
Have you searched with yum for libosmesa and tried to install it? I guess it would be good to install libosmesa and libosmesa-devel.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   August 9, 2010, 12:41
Default
  #5
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
Hi

Thanks, I am user of machine but NOT root.

but I have resolve the problem



Thanks

It works fine right now.
pvbatch --use-offscreen-rendering mypythonsrcipt.py

Last edited by waynezw0618; August 9, 2010 at 13:00.
waynezw0618 is offline   Reply With Quote

Old   March 3, 2011, 05:19
Default
  #6
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi Foamers,
I'm trying to install OF 1.7.x with Paraview 3.8.0 on a Suse Linux Enterprise Server 11 SP 1, that has as default QT 4.4.
I have problems as there aren't packages of QT 4.5.x or higher for this Distro (damned commercial distros!!!), and I don't know how to compile and install a correct version of QT in my system to be used by OF and Paraview only.
Could anyone give me some help?
Thanks, Ivan
ivan_cozza is offline   Reply With Quote

Old   March 3, 2011, 05:40
Default
  #7
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Ivan,

Can you compile QT from source?

Code:
wget ftp://ftp.trolltech.no/qt/source/qt-x11-opensource-src-4.5.3.tar.gz
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 3, 2011, 06:00
Default
  #8
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Quote:
Originally Posted by gwierink View Post
Hi Ivan,

Can you compile QT from source?

Code:
wget ftp://ftp.trolltech.no/qt/source/qt-x11-opensource-src-4.5.3.tar.gz
Hi gwierink,
I've already downloaded a QT 4.6.3 source pack, but I've not allready compiled it. The question is, how can I use this version without overriding the system version and how can I tell OF to use this version and not the system one?
Thanks,
Ivan
ivan_cozza is offline   Reply With Quote

Old   March 3, 2011, 06:15
Default
  #9
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Ivan,

Have a look at this page, in particular the section below:
Quote:
Now we also have to install Paraview 3.8.0 and the PV3FoamReader module, which requires qt to be installed: cd $HOME/OpenFOAM/ThirdParty-1.7.x
mkdir qt-everywhere-opensource-src-4.6.3
mkdir linuxSrc; cd linuxSrc
wget http://get.qt.nokia.com/qt/source/qt...c-4.6.3.tar.gz
tar xzf qt-everywhere-opensource-src-4.6.3.tar.gz
cd qt-everywhere-opensource-src-4.6.3
./configure -prefix $HOME/OpenFOAM/ThirdParty-1.7.x/qt-everywhere-opensource-src-4.6.3 -opensource -stl 2>&1 | tee log_configure
(-stl might be needed for the GUI. It SHOULD have been activated by default, but there is a problem)
#(choose OpenSource editon and accept conditions)
make 2>&1 | tee log_make #Check this file for error messages! This takes several hours!
make install 2>&1 | tee log_make_install #Check this file for error messages!
Add the following to the end of your $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/apps/paraview3/bashrc file:
export PATH=$WM_THIRD_PARTY_DIR/qt-everywhere-opensource-src-4.6.3/bin:$PATH
export LD_LIBRARY_PATH=$WM_THIRD_PARTY_DIR/qt-everywhere-opensource-src-4.6.3/lib:$LD_LIBRARY_PATH
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   March 3, 2011, 07:38
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Here's another tutorial on how to build ParaView 3.8.0 with a custom Qt 4.6: Building ParaView 3.8.0 with custom Qt 4.6.3

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 3, 2011, 09:53
Default
  #11
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Quote:
Originally Posted by gwierink View Post
Hi Ivan,

Have a look at this page, in particular the section below:
Thank you gwierink, it worked perfectly!
ivan_cozza 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 on cluster: version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie OpenFOAM 10 April 19, 2021 19:06
[OpenFOAM] Problem with paraFoam on a linux-64 bit bunni ParaView 4 April 14, 2010 21:55
OpenFOAM Version 1.1 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 11, 2005 06:33
OpenFOAM Version 1.0.2 Released Admin (Admin) OpenFOAM Announcements from ESI-OpenCFD 0 January 12, 2005 07:33
OpenFOAM Version 1.0 Released Admin (Admin) OpenFOAM Announcements from ESI-OpenCFD 0 December 14, 2004 11:58


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