Creating the sqlite3.exe stand-alone w/o cygwin dependency
Jose Isaias Cabrera
jicman@outlook.com
Sat Dec 10 18:00:40 GMT 2022
On December 10, 2022 10:20 AM, Michael Soegtrop expressed:
>
> > The problem happens after I move that sqlite3.exe to C:\bin directory.
>
> very likely quite a few of the MinGW shared libraries supplied by cygwin are
> missing - you need to copy these as well. You can use the `ldd` tool on the
Very interesting:
$ ldd sqlite3.exe
ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffc1d6f0000)
ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x778c0000)
wow64.dll => /cygdrive/c/Windows/System32/wow64.dll (0x7ffc1c830000)
wow64win.dll => /cygdrive/c/Windows/System32/wow64win.dll (0x7ffc1d540000)
Why are there two ntdll.dll files? Never mind. :-)
These reported DLL are in the search path, and also moving these to the executable folder still gives the same error. I also moved the sqlite3.exe file from the built folder to the previous folder in the Cygwin environment, and the same problem happens:
jcabrera@JIC ~/build/sqlite/SQLite-060eb284
$ mv sqlite3.exe ..
jcabrera@JIC ~/build/sqlite/SQLite-060eb284
$ cd ..
jcabrera@JIC ~/build/sqlite
$ ./sqlite3
jcabrera@JIC ~/build/sqlite
$ ./sqlite3.exe
jcabrera@JIC ~/build/sqlite
Well, let's say that nothing happens. So, it's something to do with the built command that only allows the sqlite3.exe to be run in the folder built folder and no-where else.
More information about the Cygwin
mailing list