我如何编译的WinRT / ARM源码? [英] How can I compile sqlite for WinRT / ARM?

查看:382
本文介绍了我如何编译的WinRT / ARM源码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经成功编译的SQLite WinRT的我的版本的x86 <一个href=\"http://timheuer.com/blog/archive/2012/06/05/howto-video-using-sqlite-in-metro-style-app.aspx\">as由Tim Heuer豪雅描述。

I've successfully compiled my WinRT version of SQLite for x86 as described by Tim Heuer.

不过,我仍然在努力如何编译的WinRT的DLL上的ARM CPU。我已经与Visual Studio ARM命令提示符下运行NMAKE,但只是给了我以下错误:

However, I am still struggling how to compile the dll for WinRT on ARM CPUs. I've run nmake with the Visual Studio ARM command prompt, but that just gives me the following error:

 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.

我在做什么错了?

What am I doing wrong?

谢谢,

阿德里安

推荐答案

我终于设法使这项工作:

I finally managed to make this work:


  1. 这里描述的编译DLL的x86:
    <一href=\"http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx\">http://timheuer.com/blog/archive/2012/05/20/using-sqlite-in-metro-style-app.aspx

删除只有sqlite3的*文件和sqlitelib(非常感谢Banthar和Tim Heuer豪雅的提示)

Deleted only the sqlite3* files and the sqlitelib (many thanks to Banthar and Tim Heuer for the hint)

编译从ARM VS命令提示符下使用此命令ARM DLL:

Compiled the ARM dll from the ARM VS command prompt with this command:

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

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

这篇关于我如何编译的WinRT / ARM源码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆