Patch: Re: [Bf-committers] SCons on OS X
Christian Plessl
bf-committers@blender.org
Tue, 9 Mar 2004 21:32:19 +0100
--Apple-Mail-7--374591442
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Hello.
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
unfortunately.
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,
Christian
--Apple-Mail-7--374591442
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.26
diff -r1.26 SConstruct
113c113
< darwin_precomp = '#../lib/darwin-6.8-powerpc'
---
> darwin_precomp = '#../lib/darwin-6.1-powerpc'
149c149
< platform_libs = ['stdc++']
---
> platform_libs = ['stdc++', 'objc']
151c151
< platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
---
> platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries', '/sw/lib']
930c930,931
< if user_options_dict['USE_QUICKTIME'] == 1:
---
> link_env.Append (LINKFLAGS=' -framework Python')
> if user_options_dict['USE_QUICKTIME'] == 1:
--Apple-Mail-7--374591442
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--
Christian Plessl <plessl@tik.ee.ethz.ch>
--Apple-Mail-7--374591442--