Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.53 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.53 KB

Binary to Header

Description:

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.

Licensing:

MIT

Downloads:

Building:

'configure' script (currently recommended):

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

CMake (native binary only):

Build in source root directory:

cmake ./ && make

Build in separate directory:

mkdir build
cd build
cmake ../ && make