sqlite - using sqlite3 with lua -


I'm trying to use sqlite3 with lua (already using c ++, But I am n00b with lua- I have read) but I am getting the following when trying to build a library or whatever:

  C: \ lib \ lsqlite3- 7> mingw32-make process_begin: CreateProcess (NULL, pkg-config-version, ...) failed. Makefile: 53: *** Windows 32 can stop. I'm not surprised if a makefile fails, but I can not do them (this is an empty space or tab? Where is it to go?), I would have thought that there is a binary for windows?  

Any simple answer is appreciated. I do not have time to create or install signin or whatever.

You want LuaSQL instead of your cover, because it is already included in the package and therefore It is likely to be already on your system. It contains support for other SQLite3 databases.

It seems that you are trying to make the latest release of lsqlite3, but this release was not easily prepared for Windows or Windows I did not try to track a binary Because there is only one source package in Luaforgh, it seems that by successfully making it, it will need to manually edit the makefeil, and then make the MacFile Will need to run so that the * NIT utility may be dependent on it.

Update: June 2012

After writing this answer, I got an opportunity to use lsqlite3 There is no flexibility to force the project to bind many specific database providers, so it is understandable to build a strict dependency on SQLite. Given that, the lsqlite3 wrapper is good because of its small size and the clean implementation of many critical bits of SQLit C API.

To create this, I is used which provides at least UNIX-like command prompt and support for the use of GCC's minced port. In that environment, to use it to use manual configuration, and to provide configuration details to lua.h , lua51.dll , I have a small file in the makefile Had to make amendments. >, sqlite3.h , and sqlite3.dll were hiding on my system.

The only real move is to map Windows path names properly by changing the C: to / c / , and the spaces in them To avoid using any folder name with MSYS path names, so with Leah on C: \ Program Files (x86) \ Lua \ 5.1 , go to / On c / PROGRA ~ 2 / Lua / 5.1 , abbreviate 8.3 to avoid space using Windows.

A key point to recommending MSYS on other Unix-like build environments on Windows is that it is specifically for this purpose, programs created by it and DLL is free from any unexpected dependency. Are there. In particular, it is in contrast to Saigwin, which is to provide a full Unix-like experience at the top of Windows.

With the recently created lsqlite3.dll , what I had to do was somewhere on my Lea package.cpath at sqlite3. Install with dll and do all the work in examples and testing cases.


Comments