[Bf-committers] OS X 10.3.2 SCons, redux part 2

Christian Plessl bf-committers@blender.org
Sun, 11 Jan 2004 14:14:49 +0100


--Apple-Mail-9-1030408818
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

After some trial-and-error debugging and this very useful thread on 
bf-committers (thanks to everyone!) I managed to build Blender on Mac 
OS X 10.3.2 using the scons build framework.

There have been several issues:

1) Path to precompiled libraries is wrong in SConstruct
resolved by chaning darwin_precomp path correctly

2) objc was missing in platform_libs

3) precompiled libraries for darwin come without libpng and libjpeg, 
unfortunately. These two need to be installed still via fink. Thus the 
platform_librarypath had to be adjusted.

4) to get blender build with the default python installation shipped 
with Mac OS X it needs to be linked against the Python framework 
(-framework Python flag). There is no libpython. I have simply 
commented out the link_env.Append (LIBS=python_lib)  line.

Suggestion: Why not include libjpeg and libpng in the precompiled 
libraries for Mac OS X. This would allow to build blender without any 
additional libraries installed.

I have attached a patch for SConstruct against the current cvs version.

Best regards,
  Christian



--Apple-Mail-9-1030408818
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="SConstruct.diff"
Content-Disposition: attachment;
	filename=SConstruct.diff

Index: SConstruct
===================================================================
RCS file: /cvsroot/bf-blender/blender/SConstruct,v
retrieving revision 1.7
diff -r1.7 SConstruct
60c60
<     darwin_precomp = '#../lib/darwin-6.8-powerpc'
---
>     darwin_precomp = '#../lib/darwin-6.1-powerpc'
85c85
<     platform_libs = ['z', 'GL', 'GLU', 'png', 'jpeg', 'stdc++'] 
---
>     platform_libs = ['z', 'GL', 'GLU', 'png', 'jpeg', 'stdc++', 'objc'] 
87c87
<     platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
---
>     platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries', '/sw/lib']
313c313
< link_env.Append (LIBS=python_lib)
---
> #link_env.Append (LIBS=python_lib)
319a320
>     link_env.Append (LINKFLAGS=' -framework Python')

--Apple-Mail-9-1030408818
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed




--
Christian Plessl <plessl@tik.ee.ethz.ch>
--Apple-Mail-9-1030408818--