# libraries **Repository Path**: HDZBEBank/libraries ## Basic Information - **Project Name**: libraries - **Description**: Lightweight libraries是一组通用的C基础库 全部用POSIX C实现,适用于嵌入式/网络服务开发 - **Primary Language**: C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 347 - **Created**: 2019-01-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LightWeight Libraries English | [简体中文](README.cn.md) [![Build](https://travis-ci.org/gozfree/libraries.svg?branch=master)](https://travis-ci.org/gozfree/libraries) [![Release](https://img.shields.io/github/release/gozfree/libraries.svg)](https://github.com/gozfree/libraries/releases) [![License](https://img.shields.io/github/license/gozfree/libraries.svg)](https://github.com/gozfree/libraries/blob/master/LICENSE.LGPL) This is a collection of basic libraries. * All are written in POSIX C, aim to used compatibility on x86, arm, android, ios. * Each of library is independent project, only include the needed library to your project instead of the whole libraries * Aim to reuse for embedded and network service development |type|name| |----|----| |data struct|dict hash ringbuffer queue rbtree sort vector macro |network|rtsp skt p2p rpc ipc |async|gevent workq thread |I/O parser|base64 config log file filewatcher strex cmd |multi-media|uvc jpeg-ex mp4parser |misc|debug hal plugin time ## How To Build Recommend Ubuntu14.04 gcc-4.8.4+ * linux platform (32/64 bit) `$ cd libraries` `$ ./build.sh` `$ sudo ./build.sh install` * host(linux) target(rasberrypi) (you need download [toolchain of rasberrypi](https://github.com/raspberrypi/tools.git)) `$ ./build.sh all pi` * host(rasberrypi board) `$ ./build.sh` `$ sudo ./build.sh install` * android arm cross compile (you need download [android-ndk-r9-linux-x86_64.tar.bz2](http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2)) `$ ./build.sh all android` * android naitve develop also need ndk tools `$ cd android_jni_libs` `$ ndk-build` After install, the libxxx.xx will be installed in /usr/local/lib/. libxxx.h, libxxx.so or libxxx.a of libraries are also in ./output/$(ARCH) ## How To Autogen C code If you want to add your own library into the build script, no need repeat the same code, only auto gen libxxx framework. `$ ./autogen_lib.sh libfoo` ## About Build * by default, build x86 on linux, and libxxx folder can be built independently * if only "libxxx folder" is checkout without "build folder", you can only build x86 and no color set * with "build folder", you can build x86, pi, android, ios and color is also set * "sudo make install" is needed when build libxxx alone. ## License LGPL/GPLv3. Please refer to the LICENSE file for detailed information. ## Author & Contributing Welcome pull request to the libraries. | | | |-----------------------------------------------|-----------------------------------------------| | [CMShuyuhui](https://github.com/CMShuyuhui) | [core1011](https://github.com/core1011) | | [elfring](https://github.com/elfring) | [ktsaou](https://github.com/ktsaou) | | [zh794390558](https://github.com/zh794390558) | [gozfree](https://github.com/gozfree) |