2012年2月3日 星期五

[WebKit] fatal error LNK1104: cannot open file 'd3dx9.lib'

Error Message:
fatal error LNK1104: cannot open file 'd3dx9.lib'

Solution:
Try to open Tools->Options->Projects and Solutions->VC++ Directories , 
and here choose :
Platform: Win32
and
Show directories for :Library files 
and add here path to folder where d3dx9.lib is situated 
For example D:\DirectX_SDK\Lib\x86
To use header-files in program ,for example such code like:
#include <d3dx9.h>
you need to choose:
Platform: Win32
and
Show directories for :Include files 
and add here path to folder where d3dx9.h is situated 
For example D:\DirectX_SDK\Include
And add in Project->Properties->Configuration Properties->Linker->Input & Additional Dependences :
d3d9.lib d3dx9.lib 

Reference:
http://www.dreamincode.net/forums/topic/61430-fatal-error-lnk1104-cannot-open-file-d3dx9lib/

2012年2月2日 星期四

[WebKit] fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory

Error Message:
fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory

Solution:
Right click on project -> Properties -> Configuration Properties -> C/C++ -> General -> Add Include Directories
Add the path below:
C:\Program Files\Microsoft DirectX SDK (February 2010)\Include
C:\Program Files\Microsoft DirectX SDK (February 2010)\Lib\x86

I know there are already have $(DXSDK_DIR) Included in C/C++ directories, but you still should include the path by yourself.

Reference:
http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/3d02f302-45d8-4f3b-9c59-8de72ac7e4b8

[WebKit] error C2001: newline in constant

Error Message:
error C2001: newline in constant f:\WebKit\Source\WebCore\platform\DefaultLocalizationStrategy.cpp

Cause:
A string constant was continued on a second line without either a backslash (\) or closing and opening double quotation marks ( "). 
To break a string constant that is on two lines in the source file, do one of the following: 
End the first line with the line-continuation character, a backslash. 


Close the string on the first line with a double quotation mark and open the string on the next line with another double quotation mark. 
It is not sufficient to end the first line with \n, the escape sequence for embedding a newline character in a string constant. 


The following are examples of incorrect and correct usage: 
printf( "Hello,         // error 
    world "); 
printf( "Hello,\n       //   error 
    world "); 
printf( "Hello,\         //   OK 
  world "); 
printf( "Hello, "         // OK 
    " world "); 


Note that any spaces at the beginning of the next line after a line-continuation character are included in the string constant and that neither solution actually places a newline character into the string constant. The following examples embed this character: 


printf( "Hello,\n\ 
world "); 
printf( "Hello,\ 
\nworld "); 
printf( "Hello,\n " 
    "world "); 
printf( "Hello, " 
  "\nworld "); 

Solution:
Removing the  “ and ” symbols surrounding %@ and <selection> in the following line would fix the bug
"Look Up “%@”"
"Look Up “<selection>”"


Reference:
https://bugreports.qt-project.org/browse/QTBUG-23590

[WebKit] error C2220: warning treated as error - no object file generated

Error Message:
error C2220: warning treated as error - no object file generated


Solution:
Edit project's properties

Go to Configuration Properties -> C/C++ -> General
toggle treat warning as error from Yes to No.

















Reference:

2012年2月1日 星期三

[WebKit] fatal error C1083: Cannot open include file: 'unicode/uchar.h'

Error Message:
fatal error C1083: Cannot open include file: 'unicode/uchar.h'

Solution:
Execute script update-webit and build-webkit again.

Reference:
http://hi.baidu.com/ksoftware/blog/item/75dace1f94750179f724e457.html

[WebKit] Can't exec "qmake": No such file or directory at /cygdrive/c/webkit/webkittools/scripts/webkitdirs.pm

Error Message:
Can't exec "qmake": No such file or directory at /cygdrive/c/webkit/webkittools/scripts/webkitdirs.pm

Solution:
Remove environment variable QTDIR.