2012年11月27日 星期二

[Webkit] KeywordLookupGenerator.py throws error of "expected description ending with @end"

Problem:
Python throw an exception from file KeywordLookupGenerator.py.
According to building log, it run into error at line 79.
I found that is a ending issue.

Solution:

In line 79 of my KeywordLookupGenerator.py:
    if not terminator == "@end"

Change it to:
    if not terminator.rstrip() == "@end"



Reference:
https://lists.webkit.org/pipermail/webkit-unassigned/2011-June/340772.html

2012年11月8日 星期四

[CMake] Error: The source "Path1/CMakeLists.txt" does not match the source "Path2/CMakeLists.txt" us ed to generate cache.

Error:

CMake Error: The source "Path1/CMakeLists.txt" does not match the source "Path2/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.

Solution:
Delete CMakeCache.txt in the target folder.



2012年11月7日 星期三

error C2731: 'WinMain' : function cannot be overloaded

Error message as title.

My code as below.
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)

{
    bala...bala...
}

To fix the issue, change code to
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
    bala...bala...
}

2012年11月3日 星期六

fatal error LNK1181: cannot open input file 'mmtimer.lib'

Error:
fatal error LNK1181: cannot open input file 'mmtimer.lib

Solution:
mmtimer.lib is for OS WinCE
For Windows, It should be winmm.lib

1. go to Project properties->Linker->input
2. remove mmtimer.lib and put winmm.lib instead.

Reference:
http://www.programmer-club.com/showSameTitleN/directx/5570.html

error C3861: '_ASSERTE': identifier not found


Error:
error C3861: '_ASSERTE': identifier not found

Solution:
The reason for this is, there is a crtdbg.h in project. so #include crtdbg.h goes to own crtdbg.h

1. In my case, tt is caused _ASSERTE doesn't defined in wceshunt.
    Please remove path wceshunt\include from include directories.

2. If the path already be removed, such as project icu.
    Please add C:\Program Files\Microsoft Visual Studio 9.0\VC\include to include directories. It should be added ahead wceshunt\include if you don't remove wceshunt from include directories.