javalikescript / luaclibs

Dependent modules for luajls

Home Page:https://github.com/javalikescript/luajls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

luaclibs provides the dependent modules used by luajls.

This repository contains Lua 5.4, selected Lua modules and associated makefiles. The targeted operating systems are Linux and Windows. The targeted architectures are x86, x86-64 and ARM.

You could find information and download binaries on the luajls releases page.

How to setup?

This repository mainly contains submodule and so needs to be initialized before it can be used

git submodule update --init --recursive

The OpenSSL, Expat, JPEG and EXIF libraries need to be configured prior the build.

Some dependent modules are retrieved using wget without checking the certificate, it is recommended to download these dependencies manually using an up-to-date browser.

How to build?

Prerequisites

You need make and gcc tools

Build core modules

make

Configure then make all modules

make configure
make all

Create a distribution folder containing the binaries

make dist

Clean the build files

make clean-all

How to build on Windows (MinGW)?

Prerequisites

Install msys2

Install make and mingw gcc

pacman -S make mingw-w64-x86_64-gcc

Install additional stuff for OpenSSL and webview

pacman -S perl libtool texinfo zip pkg-config

Set mingw64 and msys in the beginning of your path using:

SET PATH=...\msys64\mingw64\bin;...\msys64\usr\bin;%PATH%

How to build on Linux?

Prerequisites

Install the Bluetooth library and gtk-webkit2

sudo apt-get install libbluetooth-dev libgtk-3-dev libwebkit2gtk-4.0-dev

How to build for Raspberry Pi (ARM)?

Prerequisites

You need to install a specific gcc for cross compilation

# 32-bits
sudo apt-get install gcc-arm-linux-gnueabihf
# 64-bits:
sudo apt-get install gcc-aarch64-linux-gnu

You could also get a standalone toolchain from abhiTronix.

Then export the following variables prior running make

# 32-bits
export HOST=arm-linux-gnueabihf
# 64-bits:
export HOST=aarch64-linux-gnu
export CC=${HOST}-gcc

You could also get the Bluetooth library from your Raspberry Pi and set it using the LIBBT environment variable.

About

Dependent modules for luajls

https://github.com/javalikescript/luajls


Languages

Language:Makefile 73.0%Language:Lua 14.9%Language:C 8.3%Language:Shell 3.8%