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

paraFoam not compilet due to QT4 not found

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 11, 2012, 13:55
Default paraFoam not compilet due to QT4 not found
  #1
New Member
 
Join Date: Jan 2012
Posts: 2
Rep Power: 0
agavino is on a distinguished road
Hi,

I am trying the installation of OpenFoam 2.0.1 on CentOS.

I have strictly followed the installation steps, and solved a lot of problems with XML, openGL, cmake, ...

I am in the final step compiling the VTK plugins for paraview and have paraFoam running.

When I execute $FOAM_INST_DIR/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake the script gives the following output:
...
+ cmake ../..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Loading ParaView CMake commands
-- Loading ParaView CMake commands - done
-- Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY)
CMake Error at CMakeLists.txt:43 (QT4_WRAP_CPP):
Unknown CMake command "QT4_WRAP_CPP".

-- Configuring incomplete, errors occurred!

I have tried the following:

1) Include /usr/lib63/qt4/bin in the PATH.
2) Recompiling cmake.
3) Recompiling qmake.

Nothing of above has been useful.

It seems QT4 location must be declared somewhere but I don't know where.

Any idea somebody?
agavino is offline   Reply With Quote

Old   January 12, 2012, 09:52
Thumbs up Finally solved
  #2
New Member
 
Join Date: Jan 2012
Posts: 2
Rep Power: 0
agavino is on a distinguished road
I finally fixed the problem following the instructions contained in the thread HowTo Make paraFoam from OpenFOAM15 work on OpenSuse11 by installing Qt435 in home directory.

So I reinstalled QT4 by executing:

$FOAM_INST_DIR/../Thirdparty-2.0.1/qt-everywhere-opensource-src-4.6.4/make confclean
$FOAM_INST_DIR/../Thirdparty-2.0.1/qt-everywhere-opensource-src-4.6.4/.configure
$FOAM_INST_DIR/../Thirdparty-2.0.1/qt-everywhere-opensource-src-4.6.4/gmake (it took 4 h, more or less)
$FOAM_INST_DIR/../Thirdparty-2.0.1/qt-everywhere-opensource-src-4.6.4/gmake install (it took 0.5 h, more or less)

A difference with the Post "How to make...": When I modified PATH within
$FOAM_INST_DIR/etc/bashrc, ParaView did not work properly: the fonts were not displayed. So I kept it unmodified.

Then, reinstalled ParaView:

$FOAM_INST_DIR/../Thirdparty-2.0.1/makeParaview

And finally built paraFoam plugins:

$FOAM_INST_DIR/applications/utilities/postProcessing/graphics/PV3Readers/Allclean
$FOAM_INST_DIR/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake

And I got paraFoam working fine !!!

Last edited by agavino; January 12, 2012 at 13:01. Reason: Update
agavino is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview command not found hardy OpenFOAM Paraview & paraFoam 7 September 18, 2008 04:59
Error starting paraFoam line 67 paraview command not found jango OpenFOAM Installation 4 July 19, 2007 01:39
Problems of running the parallel computations lorraine FLUENT 17 July 6, 2007 08:08
ParaFoam OF 14 decomposed cases philippose OpenFOAM Paraview & paraFoam 4 April 18, 2007 05:17
Problem running paraFoam paraview command not found spdracer22 OpenFOAM Pre-Processing 2 December 7, 2005 06:32


All times are GMT -4. The time now is 18:51.