CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   CMake Error about testCCompilerc (

wu_wen September 18, 2008 22:37

Hello,everybody! I'm trying t
I'm trying to install OpenFOAM-1.5 on Suse10.3, 64bit Linux. I'm a obsolutely fresh man about Linux and OpenFOAM, so lots of problems trouble me.

1. Where should I type the "qmake --version" as the README file says? I always get the "command not found", and I'm really puzzled...What's more, does it mean that Suse10.3 have the Qt4.3.1 and I could never worry about the problem above?

2.I came cross the same problem as Soeren met a few days ago.(see more in OpenFOAM Message Board: OpenFOAM: Installation: Installation of OpenFoam 1.5 /Compilation paraview)
Following ur advice, I installed the mpfr with YaST and the install DVD this morning, and fortunately, the problem disappeared.
But another one arises as :

wuwen@wuwen:~/OpenFOAM/ThirdParty> buildParaView3.3-cvs
Building ParaView3.3-cvs
MPI support : OFF
Python support : OFF
MESA support : OFF
Source : /home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs
Target : /home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc
-- Check for working C compiler: /home/wuwen/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/wuwen/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- broken
CMake Error: The C compiler "/home/wuwen/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles /CMakeTmp'
/home/wuwen/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake -E cmake_progress_report /home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/home/wuwen/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp/testCCompiler.c
/home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp/testCCompiler.c:4:19: error: stdio.h: No such file or directory
/home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp/testCCompiler.c: In function 'main':
/home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp/testCCompiler.c:12: warning: incompatible implicit declaration of built-in function 'printf'
gmake[1]: Leaving directory `/home/wuwen/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles /CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] error 1
gmake: *** [cmTryCompileExec/fast] error 2

CMake will not be able to correctly generate this project.
-- Configuring done
make: *** No targets specified and no makefile found. Stop

What's the problem essentially about, and what should I do?

Thanks For Any Help! Waiting for ur advice...


wu_wen September 19, 2008 01:14

ATTENTION: I'm with the Suse1
I'm with the Suse10.3!

I've find the key to this problem with Ubuntu:

"To compile programs you need to install the package build-essential.
You can do this with Synaptic or from a terminal window:

$ sudo apt-get install build-essential"

What should I do with Suse?
Also, the "qmake --version" problem ?

Thank u all

santos September 19, 2008 15:56

Hi Wenzu, First, fire up Ya
Hi Wenzu,

First, fire up Yast (look for it in the menu) and then the 'Software Management' module. You are supposed to use it to install/remove software in your openSUSE system.

'apt' is a command-line package manager normally used in Debian-based systems, such as Ubuntu. An equivalent to 'apt' in openSUSE would be 'zypper'.

To solve your problem, I think you need to install 'libqt4-devel' package, it contains the missing qmake file. When you are at it, make sure 'make' is installed.

Josť Santos

wu_wen September 19, 2008 23:06

thank you!I install the 'libqt
thank you!I install the 'libqt4-devel' package,and pass though all the problems!

Wu wen

All times are GMT -4. The time now is 09:01.