A tool to create a header file out of a file
- Place compiled executable reachable from cmd/powershell/terminal
bin2header my_file.wav
git clone https://github.com/nezvers/bin2header.git
cd bin2header
- Open folder with
Visual Studio - Wait until
Outputtab saysCMake generation finished - In dropdown menu next to "Play" button choose
bin2header.exe
- Cmake should be installed and accessible from cmd/powershell/terminal
cmake -S . -B ./build -G "${YOUR_BUILD_TARGET_CHOICE}"
- Mingw64 should be installed and
mingw64/binfolder added to environmentPATHvariable
cmake -S . -B ./build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug
mingw32-make -C ./build
./build/bin2header.exe
##### GCC
gcc src/main.c -o bin2header.exe