Compile Lua on Windows Using Visual Studio

preview_player
Показать описание

This process is a bit more complicated because we're building using a dynamic library, and if we didn't, the Lua interpreter would be unable to load any additional dlls (via require).
Рекомендации по теме
Комментарии
Автор

Thank you this teaching. I was going crazy. So many steps just to add Lua. But it got it running like it should as shown. 10 Stars for you

tberube
Автор

This was AMAZING! ... it's kinda wild that it's such a weird way of generating all three of the files, I wish the official documentation was a bit clearer on this, but you really made it seem like magic, even though I'm very familiar with how compilers and linkers work under the hood. Thank you!

LaynaStambaugh
Автор

Thank you very much for this. Extremely helpful.

One thing that helped me when I was following along was actually to watch through to the end before doing anything, and realizing that we're deleting and restoring files and changing properties between rebuilds of the same solution, so to make the workflow a little less error-prone (as I'm very prone to messing this kind of thing up, and VS tends not to like us breaking the one definition rule), I used the configuration manager to set up different sets of properties, and on the first configuration I excluded lua.c and luac.c from the build (similarly for the interpreter, which ONLY has one file). Much cleaner.

jowilson
Автор

Thanks a lot!! very neat! Best video about installing Lua!!

YacineBougrinat
Автор

Actually works on 5.40! Had problems with not smashing Apply when chose application type first. But it worked out in the end. Thank you

beatsey
Автор

Thanks sir saved me a week :D take care!

lesiomisio
Автор

Nice job! Followed this video to the T and works as advertised.

IOT-Workshop
Автор

i love you. thanks for this. thank you x2130129309213021983
keep uploading man. I subbed and clicked notif bell

storyseeker
Автор

Can I have a download for all files or only the Lua folder (in Program Files) cause I'm having problems with the Lua Interpreter)

ipec
Автор

i did it to the point with changing the properties. i changed the configuration type to dll and the preprocessor to LUA_BUILD_AS_DLL; . As soon as i wanted to klick Build Solution the process didn´t finished and a bunch of errors occurred. Somebody around to help me ?

lumat
Автор

Great Video! The last step is failing to compile for me. I get the error: "LNK1181 cannot open input file 'Lua.lib''". I double checked the three paths that you specify in the end and they match what I have. I suspected a case sensitive as I specified lua.lib but I see the file in the include folder is Lua.lib, so I changed the path to the matching case but I get the same error. Any suggestions?

undertone_dj
Автор

I didn't get
Oh wait for people on vis 2019 on the preprocessor bit you have to select release and then do it

cobalt
Автор

Love it your video, This is what I looking for

Manish
Автор

I'm getting 18 errors of the type "LNK2001 Unresolve Symobl [insert some lua function here]", can anyone help me with this?

loadingninjavods
Автор

thank you so much, you helped me a lot

ensber
Автор

Thank you very helpful, Just wondering if you have to always do this process for seperate projects?

dallas
Автор

i have problem, on the part where you go to put in this command: tar xzf .\lua-5.4.3.tar.gz
Powershell doesnt recognize tar as a cmdlet thingy

GLaDOS
Автор

How do I link them? You didn't show. please explain.

techmaster
Автор

so the final file is a lua executor? sorry, I'm a beginner how do I make a lua executor for a specific game?

pashajackjon
Автор

*Привет! Как без использования makefile компилировать LuaJIT в Visual Studio как стандартный проект?*

yerdosbolatuly