Lua For Mac Os



ZeroBrane Studio is a lightweight Lua IDE with code completion, syntaxhighlighting, live coding, code analyzer, and debugging supportfor Lua 5.1, Lua 5.2, Lua 5.3,LuaJIT, and other Lua engines.

To build and install Lua in one step, do 'make all install', or 'make xxx install', where xxx is your platform name. To install Lua locally after building it, do 'make local'. This will create a directory installwith subdirectories bin, include, lib, man, share, and install Lua as listed below. Running Lua on macOS Lua is a lightweight programming language and has good reputation among game engines. In this article, you will learn how to install and use the latest version of Lua (5.2.x) on Mavericks, Mountain Lion, Lion or Snow Leopard.

It is feature-rich and extensible for experienced developers,yet simple and instantly usable for beginners (as tested with middle andhigh school students with no programming experience).Unlike Eclipse and IntelliJ, it has a small footprint and is fully customizable with Lua.Unlike TextMate and Sublime Text, it includes a remote debugger and a full IDE feature set.Unlike Decoda, it runs on Windows, macOS, and Linux and supports various Lua versions with on-device debugging.

ZeroBrane Studio also provides several unique features: live coding forimmediate feedback, Markdown formatting in comments for providinginstructions with minimal context switching, and integrated interactivematerials for those learning Lua or getting familiar with programming.

The installation package includes some of the most popular Lua libraries (luasocket,luafilesystem,luasec,and lpeg) compiled for Lua 5.1, 5.2, and 5.3 versions on all supported platforms.

For those interested in game and mobile development, the IDE supports debugging forLÖVE,Corona,Moai,Gideros,Marmalade Quick,Cocos2d-x,and other engines.It also supports general Lua debugging forOpenResty/Nginx,Redis,Torch7,Wireshark,GSL-shell,Adobe Lightroom,Lapis,Moonscript,home automation,and more.

Feature highlights

  • Small, portable, open-source, and cross-platform (Windows, macOS, and Linux);
  • Auto-completion for functions, keywords, and custom APIs;
  • Syntax highlighting and folding for 110+ languages and file formats;
  • Project view with auto-refresh and ability to hide files and directories from the list;
  • Interactive console to test Lua code snippets with local and remote execution;
  • Integrated debugger with support for local and remote debugging, including cross-platform and on-device debugging;
  • Live coding with Lua,LÖVE,Gideros,Moai,Corona,GSL-Shell and other Lua engines;
  • Multi-language support with translations to French, Spanish, Russian, German, Chinese, Esperanto, Italian, Bulgarian, and Brazilian Portuguese languagesand documentation to add your own;
  • 50+ extension packages in the package repository;
  • Fuzzy search for files, symbols, and library functions, function outline, and more.

How to compile Lua 5.4.0 as a Mac OS X dynamic library

This is a tutorial on how to compile Lua 5.4.0 as a Mac OS X dynamic library (liblua.dylib).

This tutorial on how to compile Lua as a Mac OS X dynamic library resulting in a liblua5.4.0.dylib is based on the instructions provided by Adrian Perez – thank you!

1. download and build Lua as stated in the Lua FAQ but force a 64-bit compilation

2
4
6
curl-R-Ohttp://www.lua.org/ftp/lua-5.4.0.tar.gz
cd lua-5.4.0

2. add a new dynamic build rule to the src/makefile and build the library with

2
4
echo'liblua5.4.0.dylib: $(CORE_O) $(LIB_O)'>>src/makefile
echo-e't$(CC) -dynamiclib -o $@ $^ $(LIBS) -arch x86_64 -compatibility_version 5.4.0 -current_version 5.4.0 -install_name @rpath/$@'>>src/makefile

See Frameworks and Binding for information about the install_name.
You’re done! You should now have a lua interpreter, a luac compiler and a liblua5.4.0.dylib.

Related posts
How to compile Lua 5.4.0 for Windows
How to compile Lua 5.4.0 for Linux as a shared library
How to compile Lua 5.4.0 as a Mac OS X dynamic library
How to compile Lua 5.4.0 for Android as a dynamic library

No comments yet.

To browse the macOS User Guide, click Table of Contents at the top of the page. If you need more help, visit the macOS Support website. The Intego new Mac user guide provides tutorials, tips and tricks, Macintosh and macOS resources for everything new Mac users from Windows need to know. Apple mac manual guide.

Leave a comment

About Dennis D. Spreen

Lua For Mac Os 10.10

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

LuaFor

Recent Posts

Lua For Mac Os

QR Code

Categories

Lua for mac os 10.10

Lua For Mac Os

Tags

Lua For Mac Os 10.14

Archives

Lua Mac Miller

  • Variant support in chakracore-delphiOctober 30, 2020
  • 86. Entrevista a Xavier Martinez, profesional Delphi y autor de cadetill.comOctober 30, 2020
  • Apprendre Delphi et le Pascal ou entretenir ses connaissances en lisantOctober 30, 2020
  • Learned about the {$EXTENSION zzz} or {$E zzz} Delphi directive: {$EXTENSION yyy.zzz} failsOctober 29, 2020
  • Online Delphi Conferences November 2020October 29, 2020
  • Online ConferencesOctober 29, 2020
  • TMS WEB Core for VSC 1.1 betaOctober 29, 2020
  • FastMM PushAllocationGroupOctober 29, 2020
  • Updated and Open Source CanTools WizardsOctober 28, 2020
  • Elevate Web Builder 2 to 3 IDE Changes VideoOctober 28, 2020