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

Problems when compiling OF1.7.0 on CentOS

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 29, 2010, 09:03
Default Problems when compiling OF1.7.0 on CentOS
  #1
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 69
Rep Power: 8
bhh is on a distinguished road
Hi,

I have problems compiling OF1.7.0 on CentOS. My system is:
CentOS-5.4 32 bit operating system (Red Hat Enterprise Linux 5.4)
c++ version is 4.4.0.

The problems may be viewed in the attached screenshots.

Can anybody help?

rgds
Bjorn
Attached Images
File Type: jpg Screenshot.jpg (41.3 KB, 17 views)
File Type: jpg Screenshot-1.jpg (63.3 KB, 14 views)
bhh is offline   Reply With Quote

Old   June 29, 2010, 09:26
Default install correct gcc
  #2
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 122
Rep Power: 9
eelcovv is on a distinguished road
Hi,
I had the same problem, and solved it by downloading and installing the correct versions of cmake and gcc. I used cmake 2.6.4 and gcc 4.3.3. Make sure you set the path and LD_LIBRARY_PATH variables to your gcc executable and library path, resp.


If you want to include python; there is a bug when you set the PYTHON_PATH variable in the makeParaview script.
Fix it by editing the tools/makeParaViewFunctions file with pythonInclude and pythonBin to with your path to your python include dir and library dir.

Eelco
eelcovv is offline   Reply With Quote

Old   June 29, 2010, 09:32
Default
  #3
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
The first one looks like you don't have Cmake installed. You can just do 'yum install cmake', or download it and install it in your userspace.

The second screenshot doesn't give much information; it looks like it failed very early on, because it cannot find the openfoam library. You could have a problem with cpp and separators, which has just been fixed. If you look in the file OpenFOAM-1.7.0/wmake/rules/linux64Gcc/general. Does CPP have the option traditional-cpp?
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   June 30, 2010, 02:53
Default
  #4
bhh
Member
 
Bjorn H. Hjertager
Join Date: Mar 2009
Posts: 69
Rep Power: 8
bhh is on a distinguished road
Hi Laurence aand Eelco,

Thanks for your help. I downloaded cmake and I moved somwhat foreward, but now it complains about the qt version I have 4.3.3 and it needs version 4..5.0 or higher. Any suggestion how to install this?

rgds
Bjorn
bhh is offline   Reply With Quote

Old   June 30, 2010, 04:41
Default
  #5
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
What does it say? Qt-4.3.* should work fine?

You can either download qt-x11-opensource-src-4.5.3 from here:
ftp://ftp.trolltech.no/qt/source/

Or if you can yum:
yum install libqt4-devel

If you install it in your userspace, you'll have to add qt to your path I guess.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan 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
problems with compiling self defined class Victor OpenFOAM 6 June 21, 2010 02:54
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Dissimilarity in compiling new BC in 32bit OpenSuSE 103 versus 64bit CentOS 50 versus 64bit SLED 100 sponiar OpenFOAM Running, Solving & CFD 3 February 26, 2008 07:31
Problems compiling UDFs under SuSE 10.2 George FLUENT 1 February 21, 2007 09:36
Problems on Compiling UDF in FLUENT Strawberi-KeatKeat FLUENT 1 October 4, 2006 01:50


All times are GMT -4. The time now is 12:27.