[webkit-dev] How to build webkit as "fat binary"
list3679321 at karelia.com
Mon Nov 28 14:27:04 PST 2005
Yes, I'm linking to Universal SDK now after some messing around.
This is a modified line 87 of build-webkit script. Note ARCHS and
$result = system "xcodebuild", "-project", "$dir.xcodeproj",
"DEPLOYMENT_POSTPROCESSING=YES", "ARCHS=i386 ppc", "SDKROOT=/
I'm getting close, but this build line fails:
/usr/bin/g++-4.0 -o /Volumes/BigData/build/WebCore.build/Deployment/
WebCore.build/DerivedSources -F/Volumes/BigData/build/Deployment -F/
WebKit.framework/Frameworks -filelist /Volumes/BigData/build/
WebCore.LinkFileList -framework ApplicationServices -framework Carbon
i386 -Wl,-single_module -compatibility_version 1 -current_version 1 -
Versions/A/WebCore -Wl,-S -dynamiclib -mmacosx-version-min=10.3 -
lxml2-WebCore -Wl,-exported_symbols_list,WebCore.exp -isysroot /
ld: can't open: WebCore.exp (No such file or directory, errno = 2)
This reference to WebCore.exp seems to come from this environmental
variable set, as found in the build transcript:
setenv OTHER_LDFLAGS " -lxml2-WebCore -Wl,-
I do find the file WebCore.exp in the WebCore source directory, so
maybe it's a relative path issue?
On Nov 28, 2005, at 12:50 PM, Bill Kocik wrote:
> Are you able to build other universal binaries?
> The error you cite below looks like the one that occurs when Xcode
> isn't set up to do it. When installing Xcode, you have to do a custom
> installation and select the universal SDK in order to compile
> universal binaries. It's not installed by default.
> To see if your Xcode installation is set up for it, look and see if
> you have anything here: /Developer/SDKs/MacOSX10.4u.sdk
> On 11/28/05, Dan Wood <list3679321 at karelia.com> wrote:
>> It appears from some bugs posted on bugzilla (e.g. 5086) that WebKit
>> is supposed to be able to build for i386 architecture, but I am not
>> having any luck doing so. I'm trying to build WebKit as 'fat binary'
>> -- having both i386 and Intel architectures. But I am having no luck.
>> For instance, It's not building dftables, which is needed right off
>> the bat:
>> Deployment/dftables.build/Objects-normal/i386/dftables -L/Volumes/
>> BigData/build/Deployment -F/Volumes/BigData/build/Deployment -
>> dftables.build/Objects-normal/i386/dftables.LinkFileList -arch i386 -
>> /usr/bin/ld: warning fat file: /usr/lib/gcc/i686-apple-
>> darwin8/4.0.1/../../../libSystem.dylib does not contain an
>> architecture that matches the specified -arch flag: i386 (file
>> Am I missing something here? Is this a bug in TOT? One would think
>> that intel compatibility would be a no-brainer at this stage in the
>> Dan Wood
>> webkit-dev mailing list
>> webkit-dev at opendarwin.org
> Bill Kocik
> webkit-dev mailing list
> webkit-dev at opendarwin.org
More information about the webkit-dev