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

Installation of foam-extend-3.0

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   February 13, 2014, 10:13
Default Installation of foam-extend-3.0
  #1
New Member
 
Join Date: May 2011
Posts: 28
Rep Power: 6
dowlee is on a distinguished road
Hi, I am installing foam-extend-3.0 under my debian-6.0 (sqeeze, 64bit) operating system. When I chosen the system installed QT4 in default, then a error triggered by QT4,as follows,

------------------- -------------------------------------------
CMake Error at /home/liweiwei/foam/foam-extend-3.0/ThirdParty/packages/cmake-2.8.12/platforms/linux64GccDPOpt/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find Qt4: Found unsuitable version "4.6.3", but required is at
least "4.7.0" (found /usr/bin/qmake)
Call Stack (most recent call first):
/home/liweiwei/foam/foam-extend-3.0/ThirdParty/packages/cmake-2.8.12/platforms/linux64GccDPOpt/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:313 (_FPHSA_FAILURE_MESSAGE)
/home/liweiwei/foam/foam-extend-3.0/ThirdParty/packages/cmake-2.8.12/platforms/linux64GccDPOpt/share/cmake-2.8/Modules/FindQt4.cmake:1393 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
VTK/GUISupport/Qt/CMakeLists.txt:57 (find_package)
-----------------------------------------------------------

then in the foam/foam-extend-3.0/etc/prefs.sh, I comment "export QT_THIRD_PARTY=1" and uncomment "export QT_DIR=path_to_system_installed_qt" and "export QT_BIN_DIR=$QT_DIR/bin". But during the installation, another error exsits as follows.

-----------------------------------------------------------
/usr/bin/ld: cannot find -lXrender
collect2: ld returned 1 exit status
make[1]: *** [../../../../lib/libQtWebKit.so.4.7.4] Error 1
make[1]: Leaving directory `/home/liweiwei/foam/foam-extend-3.0/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/WebCore'
make: *** [sub-webkit-make_default-ordered] Error 2
error: Bad exit status from /home/liweiwei/foam/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.S6IXF7 (%build)

RPM build errors:
Bad exit status from /home/liweiwei/foam/foam-extend-3.0/ThirdParty/rpmBuild/tmp/rpm-tmp.S6IXF7 (%build)
Installing package: qt-everywhere-opensource-src-4.7.4
Uninstalling qt-everywhere-opensource-src-4.7.4 using RPM: qt-everywhere-opensource-src-4.7.4-linux64GccDPOpt.x86_64
Installing qt-everywhere-opensource-src-4.7.4 using RPM file: /home/liweiwei/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/qt-everywhere-opensource-src-4.7.4-linux64GccDPOpt.x86_64.rpm
error: open of /home/liweiwei/foam/foam-extend-3.0/ThirdParty/rpmBuild/RPMS/x86_64/qt-everywhere-opensource-src-4.7.4-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package

WARNING:
WARNING: Skipping the installation of ParaView-4.0.1.
WARNING: Please make sure the QT_BIN_DIR environment variable properly
WARNING: initialized in the file prefs.sh or prefs.csh
WARNING: The command $QT_BIN_DIR/qmake needs to be valid
WARNING:
========================================
Done ThirdParty AllMake: Stage4
========================================
---------------------------------------------------------

Should I update QT4 to the version of 4.7.4 in my system directly? But openfoam-1.6-ext is already installed in my debian OS. If I update it, Will this impact openfoam-1.6-ext?
dowlee is offline   Reply With Quote

Old   February 14, 2014, 05:29
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,762
Rep Power: 21
hjasak will become famous soon enough
I think I've seen this recently - we had to change the version of qt for PV-4.0.1.

Let me have a look; alternatively, please just update the qt version or download binary Paraview. I mostly use the built-in-reader because it supports decomposed run post-processing.

Apologies for inconvenience; the rest of the code should work fine.
Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 18, 2014, 14:43
Default
  #3
New Member
 
Join Date: May 2011
Posts: 28
Rep Power: 6
dowlee is on a distinguished road
Thanks very much. I don`t have root privilege for my office PC. So I don`t update the QT. But Before I have already installed of-1.6-ext, I use foam-extend-3.0 to run the simulation, then use paraFoam in of-1.6-ext to do post-process.
dowlee is offline   Reply With Quote

Old   March 2, 2014, 06:46
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@dowlee: Just a reminder that you can update your current "foam-extend-3.0" folder (as of 17th of February), you should be able to build Qt 4.8.5 and ParaView 4.0.1 with success. To update, try running these commands:
Code:
cd $WM_PROJECT_DIR
git pull

cd ThirdParty
./AllMake.pre > log.AllMake 2>&1

cd ..
source etc/bashrc
./Allwmake > make.log 2>&1
Best regards,
Bruno
wyldckat 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
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


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