Giter Site home page Giter Site logo

lua_windows_build's Introduction

lua_windows_build

Try to build Lua source codes using Visual Studio on Windows. Many thanks go to: https://blog.csdn.net/faybull/article/details/128749462

感谢上面这篇文章!照着做就能成功。另外需要注意以下几点:

  1. 我下载的Lua源代码版本是5.2.4。从官网下载:https://lua.org/versions.html
  2. 项目配置:C/C++ | 预处理器,添加_CRT_SECURE_NO_WARNINGS
  3. liblua项目配置:常规 | 目标文件名,改成lua52

编译Release | x86,通过之后打开控制台程序,然后运行tests目录下的测试脚本:

  1. lua {path}\test1.lua >> 如果看到控制台打印Lua的版本号,以及"Hello World",说明一切就绪了!
  2. lua {path}\test2_calldll.lua >> 主要测试在Lua中调用一个Windows DLL。这个DLL是特殊封装的,从https://github.com/luqiming666/simple-lua-c-dll 编译出来,并将luacdll.dll拷贝到lua.exe的相同目录下。

lua_windows_build's People

Contributors

luqiming666 avatar

Watchers

 avatar

lua_windows_build's Issues

[Query]: How to add luasocket support

Hi, I read your blog post "Which Lua intepreter version is used in Hades", very nice work and it enlighten me so much!

I want to if know can we add external lua package to used in Hades? I currently want to use UDP socket to send enemies' position information to my AI Host machine, however when I modified any lua scripts in game folders when using:

require(socket)

the game will crash(obviously).

I still don't want to give up yet, so here I am to ask this question whether the socket can be used in lua without crashed in game.

Thank you for reading this issue~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.