objcopy can be used to turn binaries (e.g. images) into .o's . this
describes how to use it:
http://www.linuxjournal.com/content/embedding-file-executable-aka-hello-world-version-5967


On Tue, Feb 9, 2010 at 12:05 PM, Harvey Chapman <[email protected]>wrote:

> On Feb 9, 2010, at 11:53 AM, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>
> > What you need is some sort of "resource compiler" to borrow a MS term -
> basically to convert the png files into binary blobs you can link into your
> code.
> > We wrote our own but I'm sure there must be better ways to do it.
> Basically it stored the data as arrays in memory and returned a char* we
> could reference extern to point at the data.
>
> The grubinst program contains a bin2h.c program which takes an input file
> and outputs a .h file containing a char* array.
> Find it here: http://sourceforge.net/projects/grub4dos/files/
>
> I'm sure there are others, but that one comes to mind quickly.
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>



-- 
Marcel Dejean, IT Assistant
Northern Manhattan Improvement Corp
76 Wadsworth Ave, New York, NY 10033
Tel: 212-822-8300   Fax: 212-740-9646

Our mission is to serve as a catalyst for positive change in the lives of
the
people in our community on their paths to secure and prosperous futures.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to