Patch: Re: [Bf-committers] SCons on OS X

Christian Plessl
Tue, 9 Mar 2004 21:32:19 +0100

Content-Transfer-Encoding: 7bit
Content-Type: text/plain;


On 09.03.2004, at 19:45 Uhr, Douglas Bischoff wrote:
> 2) Linking seems to be broken on OS X. The final linking pass calls:
> gcc " -framework Carbon" " -framework AGL" " -framework QuickTime" 
> etc. etc. etc.
> The linker doesn't like the quotes around these calls, and errors out. 
> I tried several permutations of the SConstruct file trying to 
> eliminate this, but none seemed to work.

I have submitted a patch to this mailing list that should fix these 
issues back in january, but the patch has not been commited to cvs 

I have attached a patch against the current cvs checkout.

The patch modifies SConstruct such that blender is linked against the 
Python Framework that is shipped with OS X 10.3.2. Additionally blender 
is also linked against the 'objc' library, this seems to be required.

The patch assumes, that libjpeg and libpng are installed with fink in 
/sw. I think it would be even  better so include a precompiled version 
of libjpeg and libpng, such that blender can be built on OS X right out 
of the box, without any additional installation.

> 3) The SConstruct script has a "to do" which talks about finding the 
> "actual location of ../lib" on the User's machine. Currently, a CVS 
> checkout of lib/ will get you ../lib/darwin-6.1-powerpc as a default. 
> The default in the SConstruct should probably point to THAT since it 
> will always be there unless the user has renamed the directory for 
> some reason. (Even those of us who used to use a symlink will still 
> ahve the 6.1 file there).

Also addressed by the patch. It makes sense to use 
../lib/darwin-6.1-powerpc as the path for precompiled libs, since this 
is the path where the libraries are located per default if they are 
checked out from cvs.

Best regards,

Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
Content-Disposition: attachment;

Index: SConstruct
RCS file: /cvsroot/bf-blender/blender/SConstruct,v
retrieving revision 1.26
diff -r1.26 SConstruct
<     darwin_precomp = '#../lib/darwin-6.8-powerpc'
>     darwin_precomp = '#../lib/darwin-6.1-powerpc'
<     platform_libs = ['stdc++'] 
>     platform_libs = ['stdc++', 'objc'] 
<     platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
>     platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries', '/sw/lib']
<     if user_options_dict['USE_QUICKTIME'] == 1:
>     link_env.Append (LINKFLAGS=' -framework Python')
> if user_options_dict['USE_QUICKTIME'] == 1:

Content-Transfer-Encoding: 7bit
Content-Type: text/plain;

Christian Plessl <>