-
Notifications
You must be signed in to change notification settings - Fork 0
Installing
Only available after Quick Setup 2 (Limited)
Note
Most packages have a pre-release/unstable version named <package_name>-pre.
The -pre packages are marked as obsolete by any release/stable package (without -pre) of the same version or higher.
| File Name | Content |
|---|---|
libutils |
Install the default packages (libutils-dev, libutils-op) |
libutils-dev |
Contains all includes needed and cmake global configuration |
libutils-dev-op |
Contains cmake configuration for libutils-op
|
libutils-dev-db |
Contains cmake configuration for libutils-db
|
libutils-dev-as |
Contains cmake configuration for libutils-as
|
libutils-op |
Compiled with optimization options |
libutils-db |
Compiled with debug options (intended for debugging only) |
libutils-as |
Compiled with asan options (intended for debugging only) |
Setup into
/usr/local
git clone https://github.com/TsukiNi22/libutils.git
cd libutilsexport BUILD=build
cmake -S . -B $BUILD_DIR
sudo cmake --build $BUILD_DIR --target install --parallel $(nproc)Setup into
/usr
Warning
If during the installation using tools like dnf, apt... you see an invalid hash error, reset the cache of the tool or relaunch the setup.sh script
If the error still persists, it might be due to an error in the repository
Warning
Restriction: fedora-based (rpm), debian-based (deb)
Note
The usage of sudo in the script can be remove using --no-sudo argument
Run the setup script directly, without cloning the repository manually. It's setup the different file to allow installing tools to handle the different package from libutils.
wget -qO- https://raw.githubusercontent.com/TsukiNi22/libutils/main/setup.sh | bash -sor with curl:
curl -fsSL https://raw.githubusercontent.com/TsukiNi22/libutils/main/setup.sh | bash -sSetup into
<your_project>/
git clone https://github.com/TsukiNi22/libutils.git
cd libutilsexport BUILD=build
cmake -S . -B $BUILD_DIR -DCMAKE_BUILD_TYPE=Optimized
sudo cmake --build $BUILD_DIR --target install --parallel $(nproc)mv include/* <your_project>/include/
mv build/libutils.a <your_project>/libs/You can now compile your own project using the -iquote=<your_project>/include/ and -L./libs/ -libutils or using cmake:
target_include_directories(${TARGET} PRIVATE include)
target_link_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR}/libs/)
target_link_libraries(${TARGET} PRIVATE utils)Note
Some part of the libutils need openssl
Using command -lssl -lcrypto or with cmake:
find_package(OpenSSL REQUIRED)
target_link_libraries(${TARGET} PRIVATE
OpenSSL::SSL
OpenSSL::Crypto
)Home · Installing · Usage · Tools Preview · Sections · Workflow (CI-CD)
libutils is licensed under MIT.