Previous Thread  Next Thread

chat icon sh: gcc-4.2: command not found - MacBook Pro

ron333

Posted: Sat Nov 19, 2011 2:19 pm
Joined: 19 Nov 2011
Posts: 3
Hi,

I have looked at the recent post on sh: "gcc-4.2: command not found" but it seemed not to apply to my situation.

Info: Mac OS X 10.7.2 - MacBook Pro Intel Core i7 XCode 4.2.1

blender ron333$ python scons/scons.py -j 2

Got the following:
scons: Building targets ...
Compiling ==> 'avi.c'
Compiling ==> 'avirgb.c'
sh: gcc-4.2: command not found
sh: gcc-4.2: command not found
scons: *** [/Users/ron333/blender-build/build/darwin/source/blender/avi/intern/avi.o] Error 127
scons: *** [/Users/ron333/blender-build/build/darwin/source/blender/avi/intern/avirgb.o] Error 127

In user-config.py is the following:
# OSX 10.6/7 with Xcode 4.x
MAC_MIN_VERS = '10.6'
MACOSX_DEPLOYMENT_TARGET = '10.6'
MACOSX_SDK='/Developer/SDKs/MacOSX10.6.sdk'
LCGDIR = '#../lib/darwin-9.x.universal'
CC = 'gcc-4.2'
CXX = 'g++-4.2'

I would appreciate your help. I am new at this.
Reply with quote


webhead

Posted: Sat Nov 19, 2011 2:55 pm
Joined: 07 Jul 2011
Posts: 39
Do you have a full install of xcode?
Reply with quote


ron333

Posted: Sat Nov 19, 2011 5:04 pm
Joined: 19 Nov 2011
Posts: 3
webhead wrote:
Do you have a full install of xcode?


How do I do a full install of Xcode?
How do I make sure that I have a full install of Xcode?
Reply with quote


stiv

Posted: Sat Nov 19, 2011 7:24 pm
Joined: 05 Aug 2003
Posts: 3645
Quote:
CC = 'gcc-4.2'
CXX = 'g++-4.2'


Assuming you *some* version of gcc installed, you can change those variables to match your system. This is the whole point of the user-config.py file.
Reply with quote


webhead

Posted: Sat Nov 19, 2011 9:30 pm
Joined: 07 Jul 2011
Posts: 39
ron333 wrote:
webhead wrote:
Do you have a full install of xcode?


How do I do a full install of Xcode?
How do I make sure that I have a full install of Xcode?



you can download Xcode 4 from apple, just follow the links from here:

http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Mac#Building_2.5_for_OSX
Reply with quote


ron333

Posted: Sat Nov 19, 2011 11:05 pm
Joined: 19 Nov 2011
Posts: 3
stiv wrote:
Quote:
CC = 'gcc-4.2'
CXX = 'g++-4.2'


Assuming you *some* version of gcc installed, you can change those variables to match your system. This is the whole point of the user-config.py file.


Stiv, thanks very much! What I did was edit user-config.py so that
CC= 'gcc'
CXX = 'g++'

Now it compiles fine! By the way, I got Xcode from the App store with no problems. Smile
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group