Skip to content

Binary file converter to C/C++ source header

License

Notifications You must be signed in to change notification settings

andersonrs66/bin2header

 
 

Repository files navigation

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

About

Binary file converter to C/C++ source header

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.2%
  • Python 5.6%
  • Shell 3.3%
  • CMake 2.9%