OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Cmake - The C compiler "/usr/bin/gcc" is not able to compile a simple test program.


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
Kun
Newbie


Joined: 02 Sep 2011
Posts: 13

PostPosted: Fri Sep 02, 2011 9:46 pm    Post subject:
Cmake - The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
Reply with quote

Hi huys,

I'm trying to build OSG for iOS but when I try to use cmake -G Xcode i got an error message:

-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /Applications/CMake 2.8-5.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/Kun/OpenSceneGraph-2.9.16/CMakeFiles/CMakeTmp


I dont know whats the problem because the actual version of cmake is installed and the gcc is also actual because the compiler will be installed automatically with the installation of Xcode or?

U got a solution?


Thank you!

Cheers,
Tobi
Back to top
View user's profile Send private message
Kun
Newbie


Joined: 02 Sep 2011
Posts: 13

PostPosted: Mon Sep 19, 2011 7:35 pm    Post subject:
Cmake - The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
Reply with quote

Hi huys,

I'm trying to build OSG for iOS but when I try to use cmake -G Xcode i got an error message:

-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at /Applications/CMake 2.8-5.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /Users/Kun/OpenSceneGraph-2.9.16/CMakeFiles/CMakeTmp


I dont know whats the problem because the actual version of cmake is installed and the gcc is also actual because the compiler will be installed automatically with the installation of Xcode or?

U got a solution?


Thank you!

Cheers,
Tobi

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42398#42398







------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
sth
Appreciator


Joined: 04 Mar 2009
Posts: 407

PostPosted: Tue Sep 20, 2011 1:50 pm    Post subject:
Cmake - The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
Reply with quote

Hi,

Am 02.09.11 23:46, schrieb Tobias WeiƟhaar:
Quote:
I dont know whats the problem because the actual version of cmake is installed and the gcc is also actual because the compiler will be installed automatically with the installation of Xcode or?

it seems that xcode4 is incompatible with cmake when building for ios.
There are several reports in this forum, and even a cmake-bug-report:

http://cmake.org/Bug/view.php?id=12288

You can try the hand-maintained xcode-project from
https://github.com/stmh/osg/tree/iphone

Don't know how to fix that.

cheers,

Stephan


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
tomhog
Appreciator


Joined: 30 Apr 2009
Posts: 166

PostPosted: Wed Apr 04, 2012 10:17 pm    Post subject:
Reply with quote

Hi Guys

I have just run into this myself, the issue is caused by CMake looking for XCode in the old /Developer folder. The very latest xcode installed from the app store (4.3.2) now stores xcode and all it's SDKs etc in an app bundle in the /Applications folder.

I've found a fix for cmake which requires building from source,

https://github.com/Kitware/CMake/pull/15

I think it is applied the latest master branch of the CMake git repository. I've downloaded and built it but I'm still getting the error.

I'm going to keep digging as this as just put a halt to my project.

(Why oh why did I update XCode Sad )

Cheers
Tom
Back to top
View user's profile Send private message
Erik den Dekker
Guest





PostPosted: Thu Apr 05, 2012 2:23 pm    Post subject:
Cmake - The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
Reply with quote

Hi Tom,


On 05-04-2012, at 00:18, Thomas Hogarth wrote:

Quote:
Hi Guys

I have just run into this myself, the issue is caused by CMake looking for XCode in the old /Developer folder. The very latest xcode installed from the app store (4.3.2) now stores xcode and all it's SDKs etc in an app bundle in the /Applications folder.

Does the patch from http://forum.openscenegraph.org/viewtopic.php?t=10120 help you?


Erik


------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Use cmake-provided module for FreeType Alberto Luaces Submission 8 Fri Apr 11, 2014 2:52 pm View latest post
No new posts osg android: Frequent updating scene ... CityDever General 1 Thu Apr 10, 2014 4:29 am View latest post
No new posts Test Mail Bacttrack General 3 Wed Apr 09, 2014 6:25 am View latest post
No new posts Compile Fix for GUIActionAdapter robertosfield Submission 0 Tue Apr 08, 2014 11:52 am View latest post
No new posts About osg "hacking"... mp3butcher General 2 Tue Mar 25, 2014 12:34 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP