Bug 60636 - missing stdint.h error in MimeSniffing.cpp
Summary: missing stdint.h error in MimeSniffing.cpp
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 09:59 PDT by abaldeva
Modified: 2011-05-16 06:16 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abaldeva 2011-05-11 09:59:53 PDT
As per Benjamin Poulain's recommendation, filing a bug here.


For QtWebKit, I downloaded the latest source code from the WebKit trunk and installed the required tools for building QtWebKit(except make). I did not install any Windows build tools as I don't believe they are required. I am using Qt-4.7.1 and VS 2008. I opened a VS2008 command prompt and ran the build-webkit --qt --release script command. After building for a long time, I am seeing the compile error mentioned in the subject line (Missing stdint.h while compiling MineSniffing.cpp). I know VS2008 does not ship with that header but JavaScriptCore does. Any ideas why I am seeing this error?
 
I modified the source file to include <os-win32/stdint.h> and that seems to have resolved the compile issue. Strange though that some other places in WebCore are including <stdint.h> directly. And I get a successful link resulting in QtWebKit4.dll in the WebKitBuild\Release\bin directory.
 
However, I am seeing following linker error after that. Any ideas?
 
link /LIBPATH:"c:\WebKit_trunk\WebKit-SVN-source\webkit\WebKitBuild\Release\lib" /LIBPATH:"c:\Qt\4.7.1\lib" /NOLOGO /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"obj/release\tst_qdeclarativewebview.intermediate.manifest" /SUBSYSTEM:CONSOLE /OUT:release\tst_qdeclarativewebview.exe @C:\DOCUME~1\abaldeva\LOCALS~1\Temp\nm11D.tmp 
tst_qdeclarativewebview.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const QDeclarativeWebView::staticMetaObject" (?staticMetaObject@QDeclarativeWebView@@2UQMetaObject@@B) referenced in function "class QDeclarativeWebView * __cdecl qobject_cast<class QDeclarativeWebView *>(class QObject *)" (??$qobject_cast@PAVQDeclarativeWebView@@@@YAPAVQDeclarativeWebView@@PAVQObject@@@Z)
release\tst_qdeclarativewebview.exe : fatal error LNK1120: 1 unresolved externals

Your help is appreciated.

Thanks.
Comment 1 Jocelyn Turcotte 2011-05-16 06:16:58 PDT
Thanks, the compile and link errors have been fixed in these commits:

Committed r86437: <http://trac.webkit.org/changeset/86437>
Committed r86438: <http://trac.webkit.org/changeset/86438>