Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javalikescript/luaclibs
Dependent modules for luajls
https://github.com/javalikescript/luaclibs
linux lua raspberry-pi windows
Last synced: 3 months ago
JSON representation
Dependent modules for luajls
- Host: GitHub
- URL: https://github.com/javalikescript/luaclibs
- Owner: javalikescript
- Created: 2019-03-17T20:30:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T16:50:46.000Z (4 months ago)
- Last Synced: 2024-07-13T18:08:37.242Z (4 months ago)
- Topics: linux, lua, raspberry-pi, windows
- Language: Makefile
- Homepage: https://github.com/javalikescript/luajls
- Size: 160 KB
- Stars: 18
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: licenses.txt
Awesome Lists containing this project
README
## Overview
luaclibs provides the dependent modules used by [luajls](https://github.com/javalikescript/luajls).
This repository contains [Lua](http://www.lua.org/) 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](https://github.com/javalikescript/luajls/releases) page.
## How to setup?
This repository mainly contains submodule and so needs to be initialized before it can be used
```bash
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
```bash
make
```Configure then make all modules
```bash
make configure
make all
```Create a distribution folder containing the binaries
```bash
make dist
```Clean the build files
```bash
make clean-all
```### How to build on Windows (MinGW)?
Prerequisites
Install [msys2](https://www.msys2.org/)
Install make and mingw gcc
```bash
pacman -S make mingw-w64-x86_64-gcc
```Install additional stuff for OpenSSL and webview
```bash
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
```bash
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
```bash
# 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](https://github.com/abhiTronix/raspberry-pi-cross-compilers).
Then export the following variables prior running make
```bash
# 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.