Aram Hăvărneanu | 1 Jun 2010 01:02
Picon
Gravatar

Enabling Flat Frame Mode (no scrollbars)

Hello, I'm embedding WebKit (Cairo port) in my Windows application. It
works fine. I'd like to enable `flat frame' mode.

My code is:

    IWebPreferences *Preferences;
    hr = pWebView->preferences(&Preferences);
    if (FAILED(hr))
        goto exit;

    IWebPreferencesPrivate *PrivatePreferences = 0;
    hr = Preferences->QueryInterface(IID_IWebPreferencesPrivate, (void
**)&PrivatePreferences);
    if (FAILED(hr))
        goto exit;
    hr = PrivatePreferences->setFrameSetFlatteningEnabled(TRUE);
    if (FAILED(hr))
        goto exit;

The code runs fine nothing seems to happen. What am I doing wrong here?

Thanks,

--

-- 
Aram Hăvărneanu
_______________________________________________
webkit-help mailing list
webkit-help <at> lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
(Continue reading)

anil v | 1 Jun 2010 06:13
Picon

issues with websocket usage

Hi All,

   I am trying to use websockets with latest webkit version ( webkit-1.2.0) but websockets are not working while executing the attached html I am getting error as TypeReference error: WebSocket is not defined.

Can any one help how to use websockets ?


Best Regards,
Anil.V

<div>
	</div>
Deepak Mundra | 1 Jun 2010 07:59

Disabling Drag feature on webview

Dear All,

How can i disable Drag feature in webkit (dragging image and text
using mouse) .. I can see a flag DRAG_SUPPORT. But how to disable it ?

Thanks
Deepak.
Nayan | 1 Jun 2010 14:18
Picon

Re: Disabling Drag feature on webview

You can disable drag support by setting ENABLE_DRAG_SUPPORT to 0, in JavaScriptCore/wtf/Platform.h

On Tue, Jun 1, 2010 at 11:29 AM, Deepak Mundra <deepak.m-sO5GaSBJYqRaMqea7chP6w@public.gmane.org> wrote:
Dear All,

How can i disable Drag feature in webkit (dragging image and text
using mouse) .. I can see a flag DRAG_SUPPORT. But how to disable it ?

Thanks
Deepak.
_______________________________________________
webkit-help mailing list
webkit-help-L0Ma0HqZfWbDNr2163bV0w@public.gmane.orgg
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help



--
Regards,
_Nayan_

<div>
<p>You can disable drag support by setting&nbsp;ENABLE_DRAG_SUPPORT to 0, in&nbsp;JavaScriptCore/wtf/Platform.h<br><br></p>
<div class="gmail_quote">On Tue, Jun 1, 2010 at 11:29 AM, Deepak Mundra <span dir="ltr">&lt;<a href="mailto:deepak.m@...">deepak.m@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Dear All,<br><br>
How can i disable Drag feature in webkit (dragging image and text<br>
using mouse) .. I can see a flag DRAG_SUPPORT. But how to disable it ?<br><br>
Thanks<br>
Deepak.<br>
_______________________________________________<br>
webkit-help mailing list<br><a href="mailto:webkit-help@...">webkit-help@...g</a><br><a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-help" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-help</a><br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>Regards,<br>_Nayan_≤br><br>
</div>
Deepak Mundra | 1 Jun 2010 15:45

Re: Disabling Drag feature on webview

Hi ,

I had tried that but it gave some compilation error when i disabled
using that flag  .. ill post the error later.

Thanks
Deepak

On Tue, Jun 1, 2010 at 5:48 PM, Nayan <nayankk@...> wrote:
> You can disable drag support by setting ENABLE_DRAG_SUPPORT to 0,
> in JavaScriptCore/wtf/Platform.h
>
> On Tue, Jun 1, 2010 at 11:29 AM, Deepak Mundra <deepak.m@...>
> wrote:
>>
>> Dear All,
>>
>> How can i disable Drag feature in webkit (dragging image and text
>> using mouse) .. I can see a flag DRAG_SUPPORT. But how to disable it ?
>>
>> Thanks
>> Deepak.
>> _______________________________________________
>> webkit-help mailing list
>> webkit-help@...
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>
>
>
> --
> Regards,
> _Nayan_
>
>
Deepak Mundra | 1 Jun 2010 17:23

Re: Disabling Drag feature on webview

I think #if ENABLE(DRAG_SUPPORT) wrappers are missing in file
WebCore/page/gtk/EventHandlerGtk.cpp  for

PassRefPtr<Clipboard> EventHandler::createDraggingClipboard()
and
const double EventHandler::TextDragDelay = 0.0;

So it will give compile error if you disable DRAG_SUPPORT ... I have
added wrappers now and  compiling ryt now .. Ill post a mail to
webkit-dev about this.

Thanks
Deepak.

On Tue, Jun 1, 2010 at 7:15 PM, Deepak Mundra <deepak.m@...> wrote:
> Hi ,
>
> I had tried that but it gave some compilation error when i disabled
> using that flag  .. ill post the error later.
>
> Thanks
> Deepak
>
> On Tue, Jun 1, 2010 at 5:48 PM, Nayan <nayankk@...> wrote:
>> You can disable drag support by setting ENABLE_DRAG_SUPPORT to 0,
>> in JavaScriptCore/wtf/Platform.h
>>
>> On Tue, Jun 1, 2010 at 11:29 AM, Deepak Mundra <deepak.m@...>
>> wrote:
>>>
>>> Dear All,
>>>
>>> How can i disable Drag feature in webkit (dragging image and text
>>> using mouse) .. I can see a flag DRAG_SUPPORT. But how to disable it ?
>>>
>>> Thanks
>>> Deepak.
>>> _______________________________________________
>>> webkit-help mailing list
>>> webkit-help@...
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>>
>>
>>
>> --
>> Regards,
>> _Nayan_
>>
>>
>
Mesny Jonathan | 1 Jun 2010 18:06
Picon

3 errors while compiling on OS X

Hi.

	I tried to build WebKit on OS X, because I need it to create a pure WebKit based crawler.
	I started (on OS X) with build-jsc : it compiled without any problem.
	I continued with build-webkit but the operation failed with 3 errors :

> ** BUILD FAILED **
> 
> 
> The following build commands failed:
> WebCore:
> 	CompileC "/Don't
Backup/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSComputedStyleDeclaration.o"
"/Don't Backup/WebKit/WebCore/css/CSSComputedStyleDeclaration.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC "/Don't
Backup/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSParser.o"
"/Don't Backup/WebKit/WebCore/css/CSSParser.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC "/Don't
Backup/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSStyleSelector.o"
"/Don't Backup/WebKit/WebCore/css/CSSStyleSelector.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> (3 failures)

	
	After that, I tried build-webkit --minimal which failed too, but with 23 errors !

> ** BUILD FAILED **
> 
> 
> The following build commands failed:
> WebCore:
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSComputedStyleDeclaration.o"
"/WebKit/WebCore/css/CSSComputedStyleDeclaration.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSParser.o"
"/WebKit/WebCore/css/CSSParser.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/CSSStyleSelector.o"
"/WebKit/WebCore/css/CSSStyleSelector.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMBlob.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMBlob.mm" normal x86_64 objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMDocument.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMDocument.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMHTMLEmbedElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMHTMLEmbedElement.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMHTMLFrameElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMHTMLFrameElement.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMHTMLIFrameElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMHTMLIFrameElement.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMHTMLInputElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMHTMLInputElement.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/DOMHTMLObjectElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/DOMHTMLObjectElement.mm" normal x86_64
objective-c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/Geolocation.o"
"/WebKit/WebCore/page/Geolocation.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSBlob.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSBlob.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSDocument.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSDocument.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSDOMWindow.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSDOMWindow.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSHTMLEmbedElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSHTMLEmbedElement.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSHTMLFrameElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSHTMLFrameElement.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSHTMLIFrameElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSHTMLIFrameElement.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSHTMLInputElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSHTMLInputElement.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSHTMLObjectElement.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSHTMLObjectElement.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSInjectedScriptHost.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSInjectedScriptHost.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSInspectorBackend.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSInspectorBackend.cpp" normal x86_64
c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/JSNavigator.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSNavigator.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> 	CompileC
"/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/SVGElementFactory.o"
"/WebKit/WebKitBuild/Release/DerivedSources/WebCore/SVGElementFactory.cpp" normal x86_64 c++ com.apple.compilers.gcc.4_2
> (23 failures)

	This is a bit surprising because those errors exist since a long time...

Can anyone help me ?
Thanks.

J0n.
Brent Fulgham | 1 Jun 2010 19:07
Picon

Re: Enabling Flat Frame Mode (no scrollbars)

Hi,

On Mon, May 31, 2010 at 4:02 PM, Aram Hăvărneanu <aram.h <at> mgk.ro> wrote:
> Hello, I'm embedding WebKit (Cairo port) in my Windows application. It
> works fine. I'd like to enable `flat frame' mode.
>
> My code is:
[...]
>
> The code runs fine nothing seems to happen. What am I doing wrong here?
>

What do you mean by "nothing seems to happen"?  It sounds like you are
getting scrollbars, even though you are instructing WebKit to not show
them.  Is that correct?

You might want to double-check how you are creating the Windows HWND
you are drawing into.  I had a similar problem, and had mistakenly
included the "WS_VSCROLL" flag in the Window Create method.

-Brent
_______________________________________________
webkit-help mailing list
webkit-help <at> lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
M V | 1 Jun 2010 21:11
Picon
Favicon

Need help linking webkit (javascriptcore)

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 <at> <at> 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 <at> <at> 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 <at> <at> YGJPAUHWND__ <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> YAXPAUHBITMAP__ <at> <at> <at> 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 <at> <at> YAXPAUHDC__ <at> <at> <at> 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)

<div>
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><span class="Apple-style-span">I am trying to build webkit on vista 64 bit with&nbsp;<span class="yshortcuts">Visual C</span>++ 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 -&gt; VC++ directories-&gt; 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-&gt;linker-&gt;input-&gt;additional dependencies but had no luck.<div><br></div>
<div>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.</div>
<div><br></div>
<div>Any help is much appreciated.</div>
<div><br></div>
<div>Thanks</div>
<div>M</div>
<div><br></div>
<div><span class="Apple-style-span">Performing Pre-Build Event...</span></div>
<div>/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 <at>  <at> 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 <at>  <at> 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 <at>  <at> YGJPAUHWND__ <at>  <at> 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 <at>  <at> 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 <at>  <at> 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 <at>  <at> 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 <at>  <at> 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 <at>  <at> YAXPAUHBITMAP__ <at>  <at>  <at> 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 <at>  <at> YAXPAUHDC__ <at>  <at>  <at> 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)
</div></span></td></tr></table>
<br>
</div>
Jerry Evans | 1 Jun 2010 21:25
Favicon

Re: Need help linking webkit (javascriptcore)

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 <at> <at> 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 <at> <at> 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 <at> <at> YGJPAUHWND__ <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> 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 <at> <at> YAXPAUHBITMAP__ <at> <at> <at> 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 <at> <at> YAXPAUHDC__ <at> <at> <at> 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-L0Ma0HqZfWZ4ORXrvDxdwA@public.gmane.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
<div>
You are missing references to
Windows DLL files. I'd guess the gdiXX, userXX, and win_mmXX
libs. Explicitly set them in the IDE.<br><br>
See here: <a href="http://msdn.microsoft.com/en-us/library/ms633587%28VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/ms633587%28VS.85%29.aspx</a><br><br>
The WTF stuff comes from the ... WTF stuff in the Webkit source tree.<br><br>
J.<br><br>
On 01/06/2010 20:11, M V wrote:
<blockquote cite="mid:742133.67844.qm@..." type="cite">
  <table border="0" cellpadding="0" cellspacing="0"><tr>
<td valign="top"><span class="Apple-style-span">I
am trying to build webkit on vista 64 bit with&nbsp;<span class="yshortcuts">Visual
C</span>++ 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 -&gt; VC++
directories-&gt; 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-&gt;linker-&gt;input-&gt;additional dependencies but had no
luck.
        <div><br></div>
        <div>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.</div>
        <div><br></div>
        <div>Any
help is much appreciated.</div>
        <div><br></div>
        <div>Thanks</div>
        <div>M</div>
        <div><br></div>
        <div><span class="Apple-style-span">Performing Pre-Build
Event...</span></div>
        <div>
        /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)<a class="moz-txt-link-rfc2396E" href="mailto:(?currentTime <at> WTF <at>  <at> YANXZ)WTF_debug.lib(CurrentTime.obj):errorLNK2019:unresolvedexternalsymbol__imp__timeBeginPeriod <at> 4referencedinfunction">" (?currentTime <at> WTF <at>  <at> YANXZ)
WTF_debug.lib(CurrentTime.obj) : error LNK2019: unresolved external symbol __imp__timeBeginPeriod <at> 4 referenced in function "</a>double __cdecl WTF::currentTime(void)<a class="moz-txt-link-rfc2396E" href="mailto:(?currentTime <at> WTF <at>  <at> YANXZ)WTF_debug.lib(MainThreadWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__DefWindowProcW <at> 16referencedinfunction">" (?currentTime <at> WTF <at>  <at> YANXZ)
WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__DefWindowProcW <at> 16 referenced in function "</a>long __stdcall WTF::ThreadingWindowWndProc(struct HWND__ *,unsigned int,unsigned int,long)<a class="moz-txt-link-rfc2396E" href="mailto:(?ThreadingWindowWndProc <at> WTF <at>  <at> YGJPAUHWND__ <at>  <at> IIJ <at> Z)WTF_debug.lib(MainThreadWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__RegisterWindowMessageW <at> 4referencedinfunction">" (?ThreadingWindowWndProc <at> WTF <at>  <at> YGJPAUHWND__ <at>  <at> IIJ <at> Z)
WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__RegisterWindowMessageW <at> 4 referenced in function "</a>void __cdecl WTF::initializeMainThreadPlatform(void)<a class="moz-txt-link-rfc2396E" href="mailto:(?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)WTF_debug.lib(MainThreadWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__CreateWindowExW <at> 48referencedinfunction">" (?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)
WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__CreateWindowExW <at> 48 referenced in function "</a>void __cdecl WTF::initializeMainThreadPlatform(void)<a class="moz-txt-link-rfc2396E" href="mailto:(?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)WTF_debug.lib(MainThreadWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__RegisterClassExW <at> 4referencedinfunction">" (?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)
WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__RegisterClassExW <at> 4 referenced in function "</a>void __cdecl WTF::initializeMainThreadPlatform(void)<a class="moz-txt-link-rfc2396E" href="mailto:(?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)WTF_debug.lib(MainThreadWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__PostMessageW <at> 16referencedinfunction">" (?initializeMainThreadPlatform <at> WTF <at>  <at> YAXXZ)
WTF_debug.lib(MainThreadWin.obj) : error LNK2019: unresolved external symbol __imp__PostMessageW <at> 16 referenced in function "</a>void __cdecl WTF::scheduleDispatchFunctionsOnMainThread(void)<a class="moz-txt-link-rfc2396E" href="mailto:(?scheduleDispatchFunctionsOnMainThread <at> WTF <at>  <at> YAXXZ)WTF_debug.lib(OwnPtrWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__DeleteObject <at> 4referencedinfunction">" (?scheduleDispatchFunctionsOnMainThread <at> WTF <at>  <at> YAXXZ)
WTF_debug.lib(OwnPtrWin.obj) : error LNK2019: unresolved external symbol __imp__DeleteObject <at> 4 referenced in function "</a>void __cdecl WTF::deleteOwnedPtr(struct HBITMAP__ *)<a class="moz-txt-link-rfc2396E" href="mailto:(?deleteOwnedPtr <at> WTF <at>  <at> YAXPAUHBITMAP__ <at>  <at>  <at> Z)WTF_debug.lib(OwnPtrWin.obj):errorLNK2019:unresolvedexternalsymbol__imp__DeleteDC <at> 4referencedinfunction">" (?deleteOwnedPtr <at> WTF <at>  <at> YAXPAUHBITMAP__ <at>  <at>  <at> Z)
WTF_debug.lib(OwnPtrWin.obj) : error LNK2019: unresolved external symbol __imp__DeleteDC <at> 4 referenced in function "</a>void __cdecl WTF::deleteOwnedPtr(struct HDC__ *)" (?deleteOwnedPtr <at> WTF <at>  <at> YAXPAUHDC__ <at>  <at>  <at> 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)

        </div>
        </span></td>
      </tr></table>
<br>

_______________________________________________
webkit-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:webkit-help@...">webkit-help@...</a>
<a class="moz-txt-link-freetext" href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-help">http://lists.webkit.org/mailman/listinfo.cgi/webkit-help</a>

</blockquote>
</div>

Gmane