> -----Oorspronkelijk bericht----- > Van: Hernan Cano [mailto:jhernanca...@gmail.com] > Verzonden: Friday, 8 July, 2016 8:02 > Onderwerp: [Luarocks-developers] About lsqlite3 > > Hi, luarocks friends. > > I am trying to "get installed" lsqlite3 following some instructions. > > Ok. Let's proceed. > > >>> my library is lsqlite3, not ... lua-sqlite3, so I can only help you > with lsqlite3. > > It is Ok for me. Any compiled library that I can use... (based on SQLite > for now). > > >>> A binary SQLite3 library is available at sqlite.org; see "Precompiled > Binaries for Windows" at http://sqlite.org/download.html > > It is the only that I would like to use. Thanks.... I have taken it. See > the attached image SQLite3_Version.png . > > >>> What C compiler are you using? > > In my computer there is VS-2008 (vc++ included), VB-2010 Express, MinGW32. > I prefer MinGW32 because it is "libre", but I can use anyone that you say > me... I just want to start.... > > >>> What does "luarocks install lsqlite3" do now? > > ((see the picture attached)) > > In my first attempt it says that cannot find SQLite3, that need some > dir.... Then I re-wrote the sentence this way: > > luarocks install lsqlite3 SQLITE_DIR=E:\SQLITE3 > > It processes a CL command and a LINK command, but then it says > > E:\Programas\Lua\5.1\lua5.1.dll: fatal error LNK1107: invalid or corrupt > file: cannot read at 0x2B8 > Error: Build error: Failed compiling module lsqlite3.dll > > > >>> LuaRocks is still trying to use VS command line parameters instead of > MinGW command line parameters. You will need to reinstall LuaRocks with > the /MW option, or figure out how to do whatever the /MW option in its > installer does to the LuaRocks config files. It seems to me that reinstall > is safer. > Try install /MW /F /LV 5.1 > > After re-install LuaRocks, I use the CC parameter in command line for > installing a library this way: > > luarocks install lsqlite3 SQLITE_DIR=E:\SQLITE3 CC=E:\MinGW32\bin\GCC.EXE > > And it changes well the compiler.... but the following err appears: > > gcc.exe: error: /nologo: No such file or directory > gcc.exe: error: /MD: No such file or directory > gcc.exe: error: /O2: No such file or directory > > >>> In that case, LuaRocks is using VS options with gcc. Perhaps you can > get some help with this on the LuaRocks mailing list. > > > Then... > What can you say me? > How should I proceed? > > > Thanks, friends. >
The output of the LuaRocks install command should show whether it was configured with MinGW or MS toolchains. And apparently it still uses MS, so something went wrong while installing LuaRocks. Use `/MW` when installing and make sure that the toolchain is in your path before doing so. Then check the installer output to verify it did configure the correct compiler. Hth Thijs ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers