[webkit-help] Need help linking webkit (javascriptcore)

Jerry Evans jerry at NovaDSP.com
Tue Jun 1 12:25:35 PDT 2010


You are missing references to Windows DLL files. I'd guess the gdiXX, 
userXX, and win_mmXX libs. Explicitly set them in the IDE.

See here: http://msdn.microsoft.com/en-us/library/ms633587%28VS.85%29.aspx

The WTF stuff comes from the ... WTF stuff in the Webkit source tree.

J.

On 01/06/2010 20:11, M V wrote:
> I am trying to build webkit on vista 64 bit with Visual C++ 2005 
> express edition and Windows SDK for vista. I'm getting linking errors 
> for 11 symbols which are part of various libraries oleaut32.lib, 
> winmm.lib etc when building javacore. I have included the folder 
> having the libraries in the Projects and Solutions -> VC++ 
> directories-> Lib files. I have also modified corewin_express.vsprops 
> file to include the additional dependencies and have these library 
> files listed there, but am still unable to link. I even tried to add 
> them under Project Properties->linker->input->additional dependencies 
> but had no luck.
>
> I'm attaching the build log from javascriptcore here. I get the same 
> errors whether I build from cygwin or visual c++ 2005 express edition.
>
> Any help is much appreciated.
>
> Thanks
> M
>
> Performing Pre-Build Event...
> /usr/bin/bash
> Performing Pre-Link Event...
> Linking...
>     Creating library C:\cygwin\home\mins\Webkit\WebKitBuild\lib\JavaScriptCore.lib and object C:\cygwin\home\mins\Webkit\WebKitBuild\lib\JavaScriptCore.exp
> JSStringRefBSTR.obj : error LNK2019: unresolved external symbol __imp__SysStringLen at 4 referenced in function _JSStringCreateWithBSTR
> JSStringRefBSTR.obj : error LNK2019: unresolved external symbol __imp__SysAllocStringLen at 8 referenced in function _JSStringCopyBSTR
> WTF_debug.lib(CurrentTime.obj) : error LNK2019: unresolved external symbol __imp__timeEndPeriod at 4 referenced in function "double __cdecl WTF::currentTime(void)" (?currentTime at WTF@@YANXZ)
> WTF_debug.lib(CurrentTime.obj) : error LNK2019: unresolved external symbol __imp__timeBeginPeriod at 4 referenced in function "double __cdecl WTF::currentTime(void)" (?currentTime at WTF@@YANXZ)
> WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__DefWindowProcW at 16 referenced in function "long __stdcall WTF::ThreadingWindowWndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?ThreadingWindowWndProc at WTF@@YGJPAUHWND__@@IIJ at Z)
> WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__RegisterWindowMessageW at 4 referenced in function "void __cdecl WTF::initializeMainThreadPlatform(void)" (?initializeMainThreadPlatform at WTF@@YAXXZ)
> WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExW at 48 referenced in function "void __cdecl WTF::initializeMainThreadPlatform(void)" (?initializeMainThreadPlatform at WTF@@YAXXZ)
> WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__RegisterClassExW at 4 referenced in function "void __cdecl WTF::initializeMainThreadPlatform(void)" (?initializeMainThreadPlatform at WTF@@YAXXZ)
> WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__PostMessageW at 16 referenced in function "void __cdecl WTF::scheduleDispatchFunctionsOnMainThread(void)" (?scheduleDispatchFunctionsOnMainThread at WTF@@YAXXZ)
> WTF_debug.lib(OwnPtrWin.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject at 4 referenced in function "void __cdecl WTF::deleteOwnedPtr(struct HBITMAP__ *)" (?deleteOwnedPtr at WTF@@YAXPAUHBITMAP__@@@Z)
> WTF_debug.lib(OwnPtrWin.obj) : error LNK2019: unresolved external symbol __imp__DeleteDC at 4 referenced in function "void __cdecl WTF::deleteOwnedPtr(struct HDC__ *)" (?deleteOwnedPtr at WTF@@YAXPAUHDC__@@@Z)
> C:\cygwin\home\mins\Webkit\WebKitBuild\bin\JavaScriptCore.dll : fatal error LNK1120: 11 unresolved externals
> Project : warning PRJ0018 : The following environment variables were not found:
> $(PRODUCTION)
>
>
>
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20100601/957819fe/attachment.html>


More information about the webkit-help mailing list