Converter for binary files to C/C++ headers.
bin2header takes any file as an argument and converts its binary data into a source header file for use in C/C++ applications. The data is stored as a character array.
USAGE: ./configure [--help] [--type=TYPE] [--static]
Options:
--help Show this help text
--type=TYPE Set to "b" (default) for binary executable "s" for Python script
--static Create statically linked executable (binary only)
- To build native binary, run:
./configure && make
- To build static native binary, run:
./configure --static && make
- To build python version, run:
./configure --type=s && make
Build in source root directory:
cmake ./ && make
Build in separate directory:
mkdir build
cd build
cmake ../ && make