gcc -O2 -s -fno-keep-inline-dllexport -static-libgcc -mthreads -fexceptions -shared -Wl,--out-implib,libsqlite3.a -o sqlite3.dll sqlite3.c
cd %QTDIR%\src\plugins\sqldrivers\sqliteqmake "INCLUDEPATH=%SQLITE_DIR%" "LIBS+=-L%SQLITE_DIR% -lsqlite3"mingw32-make
typedef int (*pf_sqlite3_open16)(const char*, sqlite3**);pf_sqlite3_open16 f_sqlite3_open16 = NULL;QLibrary sqlite3_dll("sqlite3");if (sqlite3_dll.load()) { f_sqlite3_open16 = reinterpret_cast<pf_sqlite3_open16>(sqlite3_dll.resolve("sqlite3_open16"));}