CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Problems when compiling OF1.7.0 on CentOS (https://www.cfd-online.com/Forums/openfoam-bugs/77628-problems-when-compiling-of1-7-0-centos.html)

bhh June 29, 2010 10:03

Problems when compiling OF1.7.0 on CentOS
 
2 Attachment(s)
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

eelcovv June 29, 2010 10:26

install correct gcc
 
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

l_r_mcglashan June 29, 2010 10:32

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?

bhh June 30, 2010 03:53

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

l_r_mcglashan June 30, 2010 05:41

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.


All times are GMT -4. The time now is 02:20.