-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
tqfx edited this page May 4, 2024
·
1 revision
Please install any of the following C/C++ compilers:
First obtain the source code, you can choose to use git to clone or download the compressed package.
git clone https://github.com/tqfx/liba
cd liba
curl -LOC- https://github.com/tqfx/liba/archive/main.zip
unzip main.zip
cd liba-main
If you use cmake, you need at least 2.8.12 installed.
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_TESTING=0
cmake --build . --target install
├──CMakeLists.txt
└──main.c
mkdir build
cd build
cmake ..
cmake --build .
meson setup build --prefix=$PREFIX
meson install -C build
xmake f
xmake
xmake i -o $PREIFX
conan export .
├──CMakeLists.txt
└──conanfile.txt
└──main.c
conan install . -of build -b missing
cmake --preset conan-release
cmake --build --preset conan-release
mkdir build
cd build
cmake .. -DLIBA_VCPKG=1
cp -r vcpkg/* path/to/vcpkg
├──CMakeLists.txt
└──main.c
└──vcpkg.json
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .
curl -LOC- https://github.com/tqfx/liba/releases/download/0.1.12/liba-0.1.12.tar.gz
tar -xf liba-0.1.12.tar.gz
cd liba-0.1.12
./configure --prefix=$PREFIX
make install
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_TESTING=0 -DLIBA_JAVA=1
cmake --build . --target install
meson setup build --prefix=$PREFIX -Djava=$JAVA_HOME
meson install -C build
xmake f --liba-java=y
xmake
xmake i -o $PREFIX
├──example.java
└──manifest
cp $PREFIX/lib/jni/* .
cp $PREFIX/share/java/liba.jar .
javac -cp liba.jar example.java
jar -cfem example.jar example manifest example.class liba.*
java -jar example.jar
npm i @tqfx/liba
├──index.js
└──package.json
node .
luarocks install liba
luarocks install liba --dev
└──main.lua
lua main.lua
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_TESTING=0 -DLIBA_LUA=1 -DLua_FIND_VERSION=5.1
cmake --build . --target install
meson setup build --prefix=$PREFIX -Dlua=lua5.1
meson install -C build
xmake f --liba-lua=lua5.1
xmake
xmake i -o $PREFIX
export LIBA_OPENMP=1
pip install liba
export LIBA_OPENMP=1
pip install git+https://github.com/tqfx/liba
└──main.py
python main.py
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_TESTING=0 -DLIBA_QUICKJS=1
cmake --build . --target install
meson setup build --prefix=$PREFIX -Dquickjs=path/to/quickjs
meson install -C build
xmake f --liba-quickjs=y
xmake
xmake i -o $PREFIX
cp $PREFIX/lib/quickjs/liba.so .
├──main.js
└──liba.so
qjs main.js
cargo add liba
cargo add --git https://github.com/tqfx/liba
├──Cargo.toml
└──src/main.rs
cargo run
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.