[webkit-dev] How to build webkit as "fat binary"

Dan Wood 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",  
@options, "INSTALL_PATH=\@executable_path/../Frameworks",  

I'm getting close, but this build line fails:

/usr/bin/g++-4.0 -o /Volumes/BigData/build/WebCore.build/Deployment/ 
WebCore.build/Objects-normal/i386/WebCore -L/Volumes/BigData/build/ 
Deployment -L/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  
-framework Cocoa -framework JavaScriptCore -licucore -lxslt -arch  
i386 -Wl,-single_module -compatibility_version 1 -current_version 1 - 
install_name @executable_path/../Frameworks/WebCore.framework/ 
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:
>> Folks,
>> 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:
>>      /usr/bin/gcc-4.0 -o /Volumes/BigData/build/JavaScriptCore.build/
>> Deployment/dftables.build/Objects-normal/i386/dftables -L/Volumes/
>> BigData/build/Deployment -F/Volumes/BigData/build/Deployment -
>> filelist /Volumes/BigData/build/JavaScriptCore.build/Deployment/
>> dftables.build/Objects-normal/i386/dftables.LinkFileList -arch i386 -
>> mmacosx-version-min=10.3
>> /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  
>> ignored)
>> 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
>> game....
>> Dan Wood
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at opendarwin.org
>> http://www.opendarwin.org/mailman/listinfo/webkit-dev
> --
> Bill Kocik
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/webkit-dev

More information about the webkit-dev mailing list