問(wèn)題描述
SQLite 可用作
<塊引用>一個(gè)完整的 VSIX 包,帶有一個(gè)擴(kuò)展 SDK 和所有其他使用 SQLite 進(jìn)行應(yīng)用程序開發(fā)所需的組件面向 Windows Phone 8.0 的 Visual Studio 2012.
但是我需要對(duì)源代碼做一些修改.Tim Heuer 在他的 博客 描述了如何為 WinRT 構(gòu)建 sqlite.
我猜的主要部分:
<塊引用>構(gòu)建DLL:nmake -f makefile.msc sqlite3.dll FOR_WINRT=1如果為 ARM 構(gòu)建:nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WINAPI_PARTITION_APP
應(yīng)該指定哪些選項(xiàng)來(lái)為 Windows Phone 8 構(gòu)建?
更新:
我試過(guò)了
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_PARTITION_PHONE
結(jié)果:
我也試過(guò)了
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP
結(jié)果:
Sqlite 包括一些要在構(gòu)建過(guò)程中構(gòu)建和運(yùn)行的工具,即在您構(gòu)建的平臺(tái)上:mkkeywordhash.exe
和 lemon.exe
.這些工具應(yīng)該由 cl.exe
針對(duì)您的構(gòu)建平臺(tái)構(gòu)建,而不是您的目標(biāo)平臺(tái).
NCC
變量用于指定本地編譯器的位置:
nmake -f makefile.msc sqlite3.dll <你的選項(xiàng)>NCC="c:\Program Files\..path-to-native\cl.exe"
可能就夠了.如果出現(xiàn)其他問(wèn)題,請(qǐng)?jiān)?Makefile.msc
中找到 NCC
并查看它以獲取更多信息.例如.您可能需要設(shè)置以下參數(shù):
XCOMPILE=1USE_NATIVE_LIBPATHS=1NCRTLIBPATH(你的本地 CRT 庫(kù)在哪里?)NSDKLIBPATH(你的原生 SDK 庫(kù)在哪里?)
SQLite is available as
A complete VSIX package with an extension SDK and all other components needed to use SQLite for application development with Visual Studio 2012 targeting Windows Phone 8.0.
But I need to do some modification in source code. Tim Heuer in his blog described how to build sqlite for WinRT.
The main part I guess:
Build the DLL: nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 If building for ARM: nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WINAPI_PARTITION_APP
What options should be specified to build for Windows Phone 8?
Update:
I've tried
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_PARTITION_PHONE
Result:
Also I've tried
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP
Result:
Sqlite includes some tools to be built and run during the build process, i.e. on the platform you're building on: mkkeywordhash.exe
and lemon.exe
. These tools should be built by cl.exe
targetting your build platform, not your target platform.
NCC
variable is used to specify the location of native compiler:
nmake -f makefile.msc sqlite3.dll <your options> NCC="c:\Program Files\..path-to-native\cl.exe"
It might be enough. If another problem arises, find NCC
in Makefile.msc
and look around it for more information. E.g. you might have to set the following parameters:
XCOMPILE=1
USE_NATIVE_LIBPATHS=1
NCRTLIBPATH (where are your native CRT libraries?)
NSDKLIBPATH (where are your native SDK libraries?)
這篇關(guān)于為 Windows Phone 8 構(gòu)建 SQLite的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!