問題描述
SQLite 可用作
<塊引用>一個完整的 VSIX 包,帶有一個擴展 SDK 和所有其他使用 SQLite 進行應用程序開發所需的組件面向 Windows Phone 8.0 的 Visual Studio 2012.
但是我需要對源代碼做一些修改.Tim Heuer 在他的 博客 描述了如何為 WinRT 構建 sqlite.
我猜的主要部分:
<塊引用>構建DLL:nmake -f makefile.msc sqlite3.dll FOR_WINRT=1如果為 ARM 構建:nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WINAPI_PARTITION_APP
應該指定哪些選項來為 Windows Phone 8 構建?
更新:
我試過了
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_PARTITION_PHONE
結果:
我也試過了
nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=-DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP
結果:
Sqlite 包括一些要在構建過程中構建和運行的工具,即在您構建的平臺上:mkkeywordhash.exe
和 lemon.exe
.這些工具應該由 cl.exe
針對您的構建平臺構建,而不是您的目標平臺.
NCC
變量用于指定本地編譯器的位置:
nmake -f makefile.msc sqlite3.dll <你的選項>NCC="c:\Program Files\..path-to-native\cl.exe"
可能就夠了.如果出現其他問題,請在 Makefile.msc
中找到 NCC
并查看它以獲取更多信息.例如.您可能需要設置以下參數:
XCOMPILE=1USE_NATIVE_LIBPATHS=1NCRTLIBPATH(你的本地 CRT 庫在哪里?)NSDKLIBPATH(你的原生 SDK 庫在哪里?)
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?)
這篇關于為 Windows Phone 8 構建 SQLite的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!