下载Cmake,去github下载lua-master
Cmake的Where is the source code选择lua-master文件夹E:/Source/Web/lua-master
where to build the binaries 随便设置一个E:/Source/Web/lua-build
点configure,
generator选择vs12 2013 win64(选了win64,之后build前要在vs当中设置platform添加win64)done之后,把CMAKE-INSTALL-PREFIX改成E:/Source/Web/lua-out
点configure,再generate。
然后关掉cmake,到E:/Source/Web/lua-build当中打开lua.sln,然后添加win64的platform,并且把编译平台改成win64,然后选择minSizeRel(min size release),直接右键编译INSTALL工程。
然后去lua-out那里看生成的四个文件。去bin双击lua.exe,发现可以运行就对了。
新建C++工程,在设置里面的C\C++,Linker中添加好相应的lib,include,同时在工程文件夹中放入dll(仅仅是放在放那就好了,和Main.cpp放在一起)。
就万事大吉准备编程。
另附boost.python相关教程http://www.cnblogs.com/rocketfan/archive/2009/11/15/1603400.html