[webkit-help] Help needed with Building Webkit on MAC, Xcode 4.3
sm webkit
smwebkit at gmail.com
Fri Mar 9 10:13:32 PST 2012
Can some one please help? I am getting the following error when compiling
webkit
Undefined symbols:
"_WTFInvokeCrashHook", referenced from:
_JSNode_getChildNodes in JSNode.o
_JSNode_initialize in JSNode.o
_JSNode_finalize in JSNode.o
_JSNodeList_item in JSNodeList.o
_JSNodeList_length in JSNodeList.o
_JSNodeList_getProperty in JSNodeList.o
_JSNodeList_initialize in JSNodeList.o
_JSNodeList_finalize in JSNodeList.o
_createStringWithContentsOfFile in minidom.o
_createStringWithContentsOfFile in minidom.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
my environment is the same as below.
On Thu, Mar 8, 2012 at 4:37 PM, sm webkit <smwebkit at gmail.com> wrote:
> Hi All,
> I am new to the forum and I am trying to build webkit and running into
> errors:
> I am using MAC OSX 10.7.3
>
> Here are the steps that I taken so far:
> 1. Downloaded and installed Xcode 4.3 through the app store - no errors.
> 2. Downloaded and Installed Java Developer 2012-001 11M3616.dmg - no
> errors.
> 3. ran "svn checkout http://svn.webkit.org/repository/webkit/trunkWebKit" - Ended with "Checked out revision 110175" - no errors.
> 4. ran ./build-webkit from within webkit/tools/scripts - this ended with
> following errors:
>
> Ld "/Users/sm/Documents/SM/webkit 2/Source/WebKit2/build/Release/jsc"
> normal x86_64
> cd /Users/sm/WebKit/Source/JavaScriptCore
> setenv MACOSX_DEPLOYMENT_TARGET 10.7
> /Developer/usr/bin/g++-4.2 -arch x86_64
> "-L/Users/sm/Documents/SM/webkit 2/Source/WebKit2/build/Release"
> "-F/Users/sm/Documents/SM/webkit 2/Source/WebKit2/build/Release" -filelist
> "/Users/sm/Documents/SM/webkit
> 2/Source/WebKit2/build/JavaScriptCore.build/Release/jsc.build/Objects-normal/x86_64/jsc.LinkFileList"
> -Xlinker --no-demangle -mmacosx-version-min=10.7 -dead_strip -framework
> JavaScriptCore -ledit -o "/Users/sm/Documents/SM/webkit
> 2/Source/WebKit2/build/Release/jsc"
>
> Undefined symbols:
>
> "__ZN3JSC16JSVariableObject14deletePropertyEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierE",
> referenced from:
> __ZN12GlobalObject6s_infoE in jsc.o
>
> "__ZN3JSC14JSGlobalObject3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE",
> referenced from:
> __ZN12GlobalObject6s_infoE in jsc.o
>
> "__ZN3JSC8JSObject12defaultValueEPKS0_PNS_9ExecStateENS_22PreferredPrimitiveTypeE",
> ref
>
>
>
> Can some please help resolve the above errors?
>
>
> A few other questions:
> Can I use XCode 4.3 to build a debug version of Webkit ?
> 1. I opened the project i.e webkit/source/webkit/WebKit.xcodeproj in XCode
> 4.3
> 2. Then from XCode Menu chose Product>Build and it failed with errors:
> make: *** No rule to make target
> `/Users/sm/Library/Developer/Xcode/DerivedData/WebKit-fdyheeitodcqgiboagvagmdaztes/Build/Products/Debug/WebKit.framework/Versions/A/Headers/DOM.h',
> needed by `all'. Stop.
> Command /bin/sh failed with exit code 2
>
>
> I read through the documentation at :
> http://www.webkit.org/building/debug.html
> But the following is not very clear to me:
> "
> Each WebKit component -- JavaScriptCore, WebCore, and WebKit2 -- contains
> its own Xcode project that depends on the build location specified in the
> project itself. In Xcode 4, choose Xcode > Preferences > Locations, click
> Locations, click the Advanced button, and ensure that the build location is
> Locations Specified by Targets.
> "
>
> What is the locations Specified by Target? where can I find this location?
>
> Also is there a particular order in which Webkit is built in XCode for
> instance first Webore, then Javascript then..etc.
>
> My Final goal is to be able to build Webkit completely from the source and
> then step through the code in Debug mode before I even start writing any
> code.
>
> Please help
> Thanks
> SM.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120309/c43d28da/attachment.html>
More information about the webkit-help
mailing list