|
[Sponsors] |
foam-extend-3.1 and CentOS 6.5 CMake Version Trouble |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2014, 16:54 |
foam-extend-3.1 and CentOS 6.5 CMake and QT Version Troubles with FIXES
|
#1 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
I'm testing CentOS 6.5 and was successful in installing OpenFOAM 2.3.0. However, the same cannot be said for foam-extend-3.1.
Is there an easy way to either: 1) update CMake on CentOS 6.5 (I can't find any useful info on Google or the CMake website on how to do this), or 2) get a ThirdParty CMake package such as provided for OpenFOAM 2.3.0 to facilitate the installation of foam-extend-3.1 in CentOS 6.5? Thanks for the help. Last edited by cdm; October 27, 2014 at 19:31. |
|
October 27, 2014, 18:44 |
|
#2 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
Okay, I was able to (mostly) compile foam-extend-3.1 with the following modifications:
1. As root, I installed CMake 2.8 using instructions from here: Code:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6.8.noarch.rpm yum install cmake28 cd /usr/bin mv cmake cmake26 mv ccmake ccmake26 mv cpack cpack26 mv ctest ctest26 ln -s cmake28 cmake ln -s ccmake28 ccmake ln -s cpack28 cpack ln -s ctest28 ctest Code:
sudo yum install binutils-devel module load openmpi-x86_64 4. Created the $HOME/foam/foam-extend-3.1/etc/prefs.sh file with the following settings: Code:
export FOAM_VERBOSE=1 compilerInstall=System export WM_MPLIB=SYSTEMOPENMPI export OPENMPI_DIR=/usr/lib64/openmpi export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin export QT_THIRD_PARTY=1 Everything is compiling fine except for Paraview which requires Qt4 version 4.7.0 and it's only finding 4.6.2. I'll read through some of the other posts here to look into this, but curious why this is the case if using ThirdParty QT... Hopefully this will help anyone else struggling with this. |
|
October 27, 2014, 19:30 |
|
#3 |
Member
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13 |
And ParaView compilation issue has been explained here with a fix outlined here.
1. Go into the file $WM_THIRD_PARTY_DIR/Allmake.stage4 and change any reference to QT version 4.8.5 to 4.8.6 (I just opened the file in a text editor and search/replace "4.8.5" with "4.8.6". 2. Same in the file $WM_PROJECT_DIR/etc/settings.sh. 3. Go to the folder $WM_THIRD_PARTY_DIR/rpmBuild/SPECS/ and copy the file qt-everywhere-opensource-src-4.8.5.spec to qt-everywhere-opensource-src-4.8.6.spec, then open the file and again change all references of "4.8.5" to "4.8.6", save, and close. 4. Re-compile and you should be good to go. |
|
Tags |
centos 6.5, cmake, foam-extend |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 2.3.0 on CentOS 6.5 | entropies | OpenFOAM Installation | 33 | January 4, 2017 06:01 |
foam-extend-3.1 on CentOS 6.5 | philippose | OpenFOAM Installation | 0 | June 23, 2014 07:04 |
Ansys v13.0 on CentOS 6.5 | cvh | ANSYS | 0 | May 23, 2014 14:58 |
Error building ParaVIEW 3.12.0 in CentOS 6.5 | wjm | OpenFOAM Installation | 8 | February 17, 2014 11:17 |