我已经成功编译了我的WinRT版本的SQLite for x86 as described by Tim Heuer。
但是,我仍在努力如何在ARM CPU上编译WinRT的dll。我使用Visual Studio ARM命令提示符运行nmake,但这只是给出了以下错误:
C:\sqlite>nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WIN
API_PARTITION_APP
Microsoft (R) Program Maintenance Utility Version 11.00.50522.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl.exe -W3 -DNDEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
-O2 -Zi /DEBUG -Femkkeywordhash.exe -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTR
EE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_MAX_TRIGGER_DEPTH=100 /DWINAPI_F
AMILY=WINAPI_PARTITION_APP .\tool\mkkeywordhash.c
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50522.1 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.
mkkeywordhash.c
Microsoft (R) Incremental Linker Version 11.00.50522.1
Copyright (C) Microsoft Corporation. All rights reserved.
/machine:arm
/debug
/out:mkkeywordhash.exe
mkkeywordhash.obj
.\mkkeywordhash.exe > keywordhash.h
This version of C:\sqlite\mkkeywordhash.exe is not compatible with the version o
f Windows you're running. Check your computer's system information and then cont
act the software publisher.
NMAKE : fatal error U1077: '.\mkkeywordhash.exe' : return code '0x1'
Stop.
我做错了什么?
谢谢,
阿德里安
答案 0 :(得分:9)
我终于成功完成了这项工作:
编译x86 dll,如下所述: http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx
仅删除了sqlite3 *文件和sqlitelib(很多感谢Banthar和Tim Heuer的提示)
使用以下命令从ARM VS命令提示符编译ARM dll:
nmake -f makefile.msc sqlite3.dll FOR_WINRT = 1 OPTS = / DWINAPI_FAMILY = WINAPI_PARTITION_APP
答案 1 :(得分:0)
您还可以通过此项目获取预编译的二进制文件: https://github.com/praeclarum/sqlite-net/tree/master/lib/metro