9

Tim Heuerの説明に従って、WinRTバージョンのSQLiteforx86を正常にコンパイルしました。

ただし、ARMCPUで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.

私は何が間違っているのですか?

ありがとう、

エイドリアン

4

2 に答える 2

9

私はついにこの仕事をすることができました:

  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

于 2012-06-26T12:08:00.007 に答える
0

このプロジェクトからバイナリを事前にコンパイルすることもできます: https://github.com/praeclarum/sqlite-net/tree/master/lib/metro

于 2013-02-27T13:41:16.300 に答える