apngasm

所属分类:内容生成
开发工具:C++
文件大小:739KB
下载次数:0
上传日期:2022-07-31 23:19:06
上 传 者sh-1993
说明:  下一代apngasm,APNG汇编程序。apngasm CLI工具和库可以组装和反汇编APNG...
(The next generation of apngasm, the APNG Assembler. The apngasm CLI tool and library can assemble and disassemble APNG image files.)

文件列表:
BACKERS.txt (18247, 2021-11-26)
CMakeLists.txt (459, 2021-11-26)
LICENSE.txt (861, 2021-11-26)
cli (0, 2021-11-26)
cli\CMakeLists.txt (2734, 2021-11-26)
cli\DESCRIPTION.txt (462, 2021-11-26)
cli\LICENSE.txt (861, 2021-11-26)
cli\package (0, 2021-11-26)
cli\package\CMakeLists.txt.in (1559, 2021-11-26)
cli\src (0, 2021-11-26)
cli\src\apngasm-cli-version.h.in (217, 2021-11-26)
cli\src\apngasm-cli.cpp (440, 2021-11-26)
cli\src\cli.cpp (7896, 2021-11-26)
cli\src\cli.h (840, 2021-11-26)
cli\src\options.cpp (8306, 2021-11-26)
cli\src\options.h (1385, 2021-11-26)
debian (0, 2021-11-26)
debian\apngasm.install (10, 2021-11-26)
debian\apngasm.manpages (19, 2021-11-26)
debian\changelog (2798, 2021-11-26)
debian\compat (2, 2021-11-26)
debian\control (2174, 2021-11-26)
debian\copyright (310, 2021-11-26)
debian\libapngasm.install (24, 2021-11-26)
debian\libapngasm.postinst (33, 2021-11-26)
debian\rules (119, 2021-11-26)
debian\source (0, 2021-11-26)
debian\source\format (13, 2021-11-26)
docs (0, 2021-11-26)
docs\building (0, 2021-11-26)
docs\building\win (0, 2021-11-26)
docs\building\win\instructions.md (4598, 2021-11-26)
docs\doxygen-config (80561, 2021-11-26)
docs\html (0, 2021-11-26)
... ...

apngasm ======= The next generation of apngasm, the APNG Assembler. Installing ========== If you just want pre-built libapngasm and apngasm: *OSX*: For the latest apngasm use homebrew: `brew install apngasm`. *Windows*: Click "releases" at the top of the github page and get the latest release. *GNU Linux*: [Debian/Ubuntu/Mint/etc.] [PPA](https://code.launchpad.net/~zero-tsuki/+archive/ppa). Building ======== apngasm uses CMake to provide cross platform build chains. Building on Linux: ---------------------------------- 1. Install dependencies/build chain * Debian/Ubuntu: ``` sudo apt-get install cmake libpng-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-filesystem-dev build-essential ``` * Fedora: ``` sudo dnf install cmake libpng-devel boost-devel build-essential ``` 2. Generate Makefiles with CMake ``` mkdir build; cd build; cmake ../ ``` 3. Make ``` make ``` 4. Installing or [optional] Build packages You can either install directly or roll your own .deb package to keep it under system package management. To install, just do: ``` sudo make install ``` To make packages: ``` make package ``` Then install them: ``` sudo dpkg -i ./lib/package/libapngasm*.deb sudo dpkg -i ./cli/package/apngasm*.deb ``` Building on OS-X (with homebrew): --------------------------------- Assuming you have homebrew the build process is fairly simple. Without homebrew you'll need to provide cmake, boost, libpng and zlib yourself. To build with homebrew: 1. Install build requirements: ``` brew install cmake boost libpng lzlib icu4c ``` 2. You'll need to override which icu libraries (icudata icui18n icuuc) are used for building as the system defaults don't seem to be compatible with the other libraries distributed by boost which are needed to build: ``` export LDFLAGS="-L/usr/local/opt/icu4c/lib" export CPPFLAGS="-I/usr/local/opt/icu4c/include" ``` Note: this is not set in CMake as it is homebrew specific and could break non-homebrew builds. 3. Generate Makefiles with CMake: ``` mkdir build cd build cmake .. ``` 4. Make: ``` make ``` Building on Windows (with Visual Studio): ----------------------------------------- Unfortunately there are two issues with building on Windows: 1. CMake for Windows does not seem to generate Visual Studio projects cleanly (interim targets are all generated as separate solutions). 2. Newer versions of Visual Studio don't seem to be able to handle linking against libpng16 very well and require a variety of tweaks and hacks. If anyone familiar newer versions of Visual Studio and CMake on Windows would be willing to make any necessary adjustments or can provide instructions it would be much appreciated. Building on Windows (with MSYS2): --------------------------------- Building on Windows with MSYS2 is similar to building on Linux. The following packages are necessary to build apngasm: `cmake gcc zlib-devel zlib mingw-w***-x86_***-libpng mingw-w***-x86_***-boost` Step by step: 1. Install dependencies/build chain ```sh pacman -Sy cmake gcc zlib-devel zlib mingw-w***-x86_***-libpng mingw-w***-x86_***-boost ``` 2. Generate Unix style Makefiles with CMake ```sh mkdir build; cd build; cmake -G"Unix Makefiles" .. ``` 3. Make ```sh make ``` 4. Installing or Building Packaged Installers To install without building, just do: ``` make install ``` To build installer packages, first install NSIS version 3 or above, then: ``` CMAKE_GENERATOR="Unix Makefiles" make package ``` Interfaces ---------- apngasm now uses SWIG to generate interface wrappers. Currently Java and Ruby are supported - but if you are building for ruby you may as well use the rapngasm gem. Building for Java: ``` mkdir build cd build cmake -DJAVA=true .. make make java make jar ``` Building for Ruby (raw library, not using the rapngasm gem): ``` mkdir build cd build cmake -DRUBY=true .. make make ruby ``` If you'd like wrappers generated for another language we request you try and add it yourself and make a pull request. Each language has its own particular tweaks that may be neccesary so it's hard for us to implement on languages we aren't familiar with. Special Thanks -------------- * Special thanks to all our backers - without you this wouldn't have been possible * Thanks to @vflyson for the pkgconfig headers License ------- zlib/libpng Copyright --------- This version of apngasm is a joint production by Max Stepin and K.K. GenSouSha. apngasm is wholly copyright Max Stepin, all rights reserved.

近期下载者

相关文件


收藏者