jeudi 2 juillet 2015

Step by step guide to build SQLite 64 bit in Windows 7

I have Windows 7 64bit, VS2010 and I need to build 64bit binary of SQLite.

What I tried:

1) downloaded source from http://ift.tt/1AMdXmL (sqlite-autoconf-3081002.tar.gz - C source code as an amalgamation.)

2) ran setup

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" x64

3) ran compilation:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.exe" shell.c sqlite3.c -Fesqlite3.exe

This gave me an error:

shell.c
sqlite3.c
Generating Code...
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:sqlite3.exe
shell.obj
sqlite3.obj
LIBCMT.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

Probably the linker tries to link 32 bit part to 64 code and outputs this error. Could you please tell, how should I set up the parameters properly for 64 bit output?

Aucun commentaire:

Enregistrer un commentaire