1) descarcar sqlite3 source AMALGAMATION (sqlite-amalgamation-3300100.Zip)
y la sqlite3.Dll y sqlite3.def ( sqlite-dll-win32-x86-3300100.zip )
2) crear una cerpeta en mi caso ==> C:\hmg\MINGW\SQLite3\
3) compiar alli los .c y .h
Code: Select all
sqlite3.c
sqlite3.h
4) generar la libreria dinamica sqlite3.dll
abrir un cmd
Code: Select all
C:\hmg\MINGW\SQLite3>SET PATH=c:\hmg\MINGW\bin\
C:\hmg\MINGW\SQLite3>SET TEMP=C:\hmg\MINGW\SQLite3\
Code: Select all
C:\hmg\MINGW\SQLite3>c:\hmg\MINGW\bin\gcc -shared sqlite3.c -o sqlite3.dll
desde el zip que contiene la dll
6) generar la libreria estatica sqlite3.a
Code: Select all
C:\hmg\MINGW\SQLite3>dlltool -D sqlite3.dll -d sqlite3.def -l libsqlite3.a
Code: Select all
C:\hmg\MINGW\SQLite3>dir
Volume in drive C is Windows
Volume Serial Number is EN19-044820
Directory of C:\hmg\MINGW\SQLite3
29/10/2019 16:17 <DIR> .
29/10/2019 16:17 <DIR> ..
29/10/2019 16:17 200.770 libsqlite3.a
11/10/2019 18:26 588.681 shell.c
11/10/2019 18:26 7.947.211 sqlite3.c
11/10/2019 18:28 5.604 sqlite3.def
29/10/2019 16:16 954.341 sqlite3.dll
11/10/2019 18:26 564.824 sqlite3.h
11/10/2019 18:26 34.156 sqlite3ext.h
7 File(s) 10.295.587 bytes
2 Dir(s) 183.040.839.680 bytes free
C:\hmg\MINGW\SQLite3>