Recent Changes - Search:

PmWiki

pmwiki.org

edit SideBar

Lua Build

This came from a Lua Developers thread on how to build things for Lua

Use the same (similar) toolchain on all platforms, this would be the GNU based build tools:

1.) Linux: already included in distributions 2.) Windows: MSYS 2? (https://www.msys2.org/) 3.) Mac OS: brew (https://brew.sh/)

Example commands for limath: =============================

  1. All platforms:

wget https://web.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/limath-103.tar.gz tar xzf limath-103.tar.gz cd limath-103

  1. Linux:

INC=/usr/include/lua EXT=so ADD=

  1. Windows in MINGW 64? shell:

INC=/mingw64/include/ EXT=dll ADD=/mingw64/bin/lua54.dll

  1. Mac OS?

INC=/usr/local/include/lua EXT=so ADD="-undefined dynamic_lookup"

  1. All platforms:

gcc -shared -fPIC -I $INC -I src limath.c src/imath.c $ADD -o imath.$EXT

Edit - History - Print - Recent Changes - Search
Page last modified on July 21, 2021, at 02:30 PM