CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Qt version of Paraview 3.8.0 in OpenFOAM 1.7 (https://www.cfd-online.com/Forums/openfoam-installation/78915-qt-version-paraview-3-8-0-openfoam-1-7-a.html)

waynezw0618 August 5, 2010 13:09

Qt version of Paraview 3.8.0 in OpenFOAM 1.7
 
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


:confused:

is there anyone can help ?

thanks

wyldckat August 7, 2010 18:16

Greetings Wayne Zhang,
Quote:

Originally Posted by waynezw0618 (Post 270443)
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

waynezw0618 August 8, 2010 14:07

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

gwierink August 9, 2010 03:20

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.

waynezw0618 August 9, 2010 11:41

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

ivan_cozza March 3, 2011 04:19

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

gwierink March 3, 2011 04:40

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

ivan_cozza March 3, 2011 05:00

Quote:

Originally Posted by gwierink (Post 297754)
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

gwierink March 3, 2011 05:15

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

wyldckat March 3, 2011 06:38

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

ivan_cozza March 3, 2011 08:53

Quote:

Originally Posted by gwierink (Post 297765)
Hi Ivan,

Have a look at this page, in particular the section below:

Thank you gwierink, it worked perfectly!


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