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

CMake Error about testCCompilerc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2008, 22:37
Default Hello,everybody! I'm trying t
  #1
New Member
 
wenwu
Join Date: Mar 2009
Posts: 3
Rep Power: 17
wu_wen is on a distinguished road
Hello,everybody!
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
done
--------------------------------------------------------------------------------

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

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

Wuwen
wu_wen is offline   Reply With Quote

Old   September 19, 2008, 01:14
Default ATTENTION: I'm with the Suse1
  #2
New Member
 
wenwu
Join Date: Mar 2009
Posts: 3
Rep Power: 17
wu_wen is on a distinguished road
ATTENTION:
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
wu_wen is offline   Reply With Quote

Old   September 19, 2008, 15:56
Default Hi Wenzu, First, fire up Ya
  #3
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
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.

Regards,
José Santos
santos is offline   Reply With Quote

Old   September 19, 2008, 23:06
Default thank you!I install the 'libqt
  #4
New Member
 
wenwu
Join Date: Mar 2009
Posts: 3
Rep Power: 17
wu_wen is on a distinguished road
thank you!I install the 'libqt4-devel' package,and pass though all the problems!



Wu wen
wu_wen is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
buildParaView33cvs cmake ERROR bjr OpenFOAM Installation 8 February 23, 2009 23:49
"Error: Floating point error: invalid number" MI Kim FLUENT 2 January 4, 2007 10:00
Cmake 243 not 242 unoder OpenFOAM Installation 4 August 29, 2006 12:30
Fatal error error writing to tmp No space left on device maka OpenFOAM Installation 2 April 3, 2006 08:48
Error: Internal error at line 743 in file 'amgif.c H.S.Fang FLUENT 2 January 7, 2002 01:57


All times are GMT -4. The time now is 10:00.