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

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

ron333
Posts: 3
Joined: Sat Nov 19, 2011 1:44 pm
Location: Boston, MA

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

Postby ron333 » Sat Nov 19, 2011 2:19 pm

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.

webhead
Posts: 39
Joined: Thu Jul 07, 2011 5:30 pm

Postby webhead » Sat Nov 19, 2011 2:55 pm

Do you have a full install of xcode?

ron333
Posts: 3
Joined: Sat Nov 19, 2011 1:44 pm
Location: Boston, MA

Postby ron333 » Sat Nov 19, 2011 5:04 pm

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?

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Sat Nov 19, 2011 7:24 pm

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.

webhead
Posts: 39
Joined: Thu Jul 07, 2011 5:30 pm

Postby webhead » Sat Nov 19, 2011 9:30 pm

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

ron333
Posts: 3
Joined: Sat Nov 19, 2011 1:44 pm
Location: Boston, MA

Postby ron333 » Sat Nov 19, 2011 11:05 pm

stiv wrote:
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. :)


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 1 guest