compilation - How Do I Build Lua For Windows Using MinGW and MSYS? -


i have book called beginning lua programming suppose go on raw basics sort of leaving me stranded. here effort condense 3 pages:

quote:

the following environment variables recommended windows: util_dir=c:\program files\utility lua_dir=c:\program files\lua\5.1 lua_cpath=?.dll;%lua_dir%\?.dll lua_path=?.lua;%lua_dir%\?.lua util_dir variable identifies utility directory created in preceding section.  

after this, there segment setting 'windows search path' lua. basically, tells me output of 'doskey /?' , 'path' , figure out myself. have no idea these do, how use them, , difference between them is.

i'm @ wits end. detailed explanation or link detailed blog/article or youtube video extremely appreciated!

there few ways lua working on machine. if want functional lua environment in hurry minimal fuss consider downloading 1 of precompiled lua binaries. common ones being lua windows , luabinaries.

building lua mingw isn't difficult:

  • first desired lua version here.
  • extract tar file containing lua's source somewhere. example, i'll assume extracted c:\lua
  • if have msys set up, can run make file environment. msys shell, can build lua follow commands:

    cd /c/lua make plat=mingw make install 
  • you should find lua.exe , luac.exe somewhere in there after build completes. lua should ready use @ point.

the regular cmd.exe shell can work changes commands:

    cd lua     mingw32-make plat=mingw 

the make install assumes *nix environment , doesn't work under normal windows cmd shell. in case can manually copy compiled files .\lua\src want or can run directly there if desired.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -