sqlite - 如何为 WinRT/ARM 编译 sqlite?

标签 sqlite makefile arm windows-8 windows-runtime

我已经为 x86 成功编译了我的 WinRT 版本的 SQLite 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.

我做错了什么?

谢谢,

阿德里安

最佳答案

我终于成功了:

  1. 按照此处所述编译 x86 dll: http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx

  2. 仅删除了 sqlite3* 文件和 sqlitelib(非常感谢 Banthar 和 Tim Heuer 的提示)

  3. 使用以下命令从 ARM VS 命令提示符编译 ARM dll:

nmake -f makefile.msc sqlite3.dll FOR_WINRT=1 OPTS=/DWINAPI_FAMILY=WINAPI_PARTITION_APP

关于sqlite - 如何为 WinRT/ARM 编译 sqlite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11176978/

相关文章:

assembly - 使用 NEON 优化 Cortex-A8 颜色转换

linux - ARM 性能计数器与 linux clock_gettime

arm - 在 Thumb 和 ARM 之间跳转

sqlite - sqlite3 eval中的tcl var替换

ruby - Heroku 上的 sqlite(生产,在内存中)

sql - SQLite,使用分组?用于日期范围的子查询

c++ - Mac错误: Undefined symbols for architecture x86_64

c++ - 如何在Linux上构建CCLS(在Fedora上执行)?

c - 如何从一个非常简单的示例使用 Makefile

java - 如何从 SQLite 的 netbeans 中的文本字段动态过滤 jTable?