{"id":21803691,"url":"https://github.com/arahaan/bin2c","last_synced_at":"2025-04-13T19:14:27.343Z","repository":{"id":12458059,"uuid":"71414925","full_name":"AraHaan/bin2c","owner":"AraHaan","description":"bin2c Conversion Tool.","archived":false,"fork":false,"pushed_at":"2025-03-20T07:03:13.000Z","size":105751,"stargazers_count":11,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T09:52:24.915Z","etag":null,"topics":["bin2c","cpp17orlater","linux","macos","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AraHaan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-20T01:45:07.000Z","updated_at":"2024-03-10T16:29:10.000Z","dependencies_parsed_at":"2024-11-27T14:34:53.074Z","dependency_job_id":null,"html_url":"https://github.com/AraHaan/bin2c","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AraHaan%2Fbin2c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AraHaan%2Fbin2c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AraHaan%2Fbin2c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AraHaan%2Fbin2c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AraHaan","download_url":"https://codeload.github.com/AraHaan/bin2c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766768,"owners_count":21158301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bin2c","cpp17orlater","linux","macos","windows"],"created_at":"2024-11-27T11:46:38.667Z","updated_at":"2025-04-13T19:14:27.317Z","avatar_url":"https://github.com/AraHaan.png","language":"C++","readme":"[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Windows%20x86)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Windows%20x64)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Ubuntu%20GCC)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Ubuntu%20clang)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Mac%20OSX%20GCC)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Build Status](https://github.com/AraHaan/bin2c/workflows/C/C++%20CI%20(Mac%20OSX%20clang)/badge.svg)](https://github.com/AraHaan/bin2c/actions)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3aab1e403474490aaacaa1a2883ccf8a)](https://www.codacy.com/app/AraHaan/bin2c?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=AraHaan/bin2c\u0026amp;utm_campaign=Badge_Grade)\n[![GitHub watchers](https://img.shields.io/github/watchers/arahaan/bin2c.svg)](https://github.com/AraHaan/bin2c/watchers)\n[![GitHub forks](https://img.shields.io/github/forks/arahaan/bin2c.svg)](https://github.com/arahaan/bin2c/network)\n[![Github Releases](https://img.shields.io/github/release/arahaan/bin2c.svg)](https://github.com/arahaan/bin2c/releases)\n[![GitHub stars](https://img.shields.io/github/stars/arahaan/bin2c.svg)](https://github.com/arahaan/bin2c/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-orange.svg)](https://raw.githubusercontent.com/weiboad/adbase/master/LICENSE)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/778/badge)](https://bestpractices.coreinfrastructure.org/projects/778)\n[![freenode](https://img.shields.io/badge/chat-on%20freenode-brightgreen.svg)](https://webchat.freenode.net/)\n\n\u003e This program takes any sort of binary file (such as a PNG image file) and processes it into a file that contains its data in a C array allowing it to be embedded in the contents of a program.\n\nThe Channel is #bin2c on freenode so be sure to do ``/JOIN #bin2c`` on the main status part of freenode.\n\nbin2c v0.15.0 - Windows/Linux/MAC - [FINAL]:\n\nWindows (Requires Visual Studio 2015 or newer with command line tools):\n\n- open bin2c.sln in Visual Studio 2015 or newer.\n\n- select the configuration platform you want and Build the Release Configuration. You can pick 32 or 64 bit.\n\n- then open the Developer Command Prompt x86 (for 32-bit compile) or x64 (for 64-bit compile).\n\n- and then to build the tests create a batch file named compile.bat in the folder you downloaded bin2c to with this content:\n```cmd\n@echo off\ncd tests\n..\\\\Release\\\\bin2c.exe /custvar \"IMAGE_VP\" /nohead /infile \".\\\\VP.jpg\" /outfile \".\\\\VP.hpp\"\ncl.exe /nologo /Ox /Tp \"VP.cpp\" /link /NOLOGO /OUT:\"VP.exe\" /SUBSYSTEM:CONSOLE /FIXED\ncd ..\n```\n\n- after the file is (compile.bat) created maximize the Developer command prompt(s) you opened and type in:\n```cmd\ncd path\\to\\where\\you\\downloaded\\bin2c\npath\\to\\where\\you\\downloaded\\bin2c\u003ecompile.bat\n```\n\nThis *should* Generate working tests.\n\n*Note: since v0.2.0 the generated output will contain the name of the original files.*\n\nMAC:\n\n- To build you need either gcc/g++ 6.3.0 (or latest) or clang 3.9.1 (or latest).\n\n*Also you need latest libc++ and you also need libc++experimental. Both of which can be obtained from ``brew install llvm``.*\n\nUpdate: Seems with the latest xcode or compilers on brew you do not need the libc++experimental nor link with ``-lstdc++fs`` on both gcc or clang (which on apple default on xcode is clang for the gcc). So to compile ensure you got a version of xcode compatible and is able to compile this. Minimum version is unknown atm.\n\n*Note: Don't forget to use the rc file. (which might need some changes) This should hopefully allow you to have a resource section.*\n*Also Since I do not work for apple nor do I even own a mac I do not know for sure how to compile an resoruce script on a mac for a .rsrc section on the compiled binary.*\n\nLinux:\n\n- To build you need either gcc/g++ 6.3.0 (or latest) or clang 3.9.1 (or latest).\n\n*I assume you have the libstdc++fs library for \u003cexperimental/filesystem\u003e to work on most linux distributions.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farahaan%2Fbin2c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farahaan%2Fbin2c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farahaan%2Fbin2c/lists"}