maxicons.o conversion

BlitzMax Forums/MaxGUI Module/maxicons.o conversion

Brucey(Posted 2015) [#1]
Hallo :-)

How would I go about recreating MaxIDE's 32-bit maxicons.o Windows icon resource file as 64-bit?


Step-by-step instructions are nice if you have the time ;-)

Thanks!


Kryzon(Posted 2015) [#2]
I think you need to use the Windres binutil with the format parameter -F pe-x86-64.
You input an rc (it's not included in the MaxIDE source, you'll have to recreate it), and output a .o COFF file. Then the .o file can be linked to the program (see the MaxIDE source).

I think the default Windres behaviour is to output a 64 bit object file anyway.

- http://www.blitzbasic.com/Community/posts.php?topic=47537#528384
- https://msdn.microsoft.com/en-us/library/windows/desktop/aa381018(v=vs.85).aspx

- http://www.mingw.org/wiki/MS_resource_compiler
- https://sourceware.org/binutils/docs/binutils/windres.html
- http://stackoverflow.com/questions/18805155/tdm-gcc-w64-script-to-change-windres-for-32bit


Brucey(Posted 2015) [#3]
Thanks Kryzon :-)

Along similar lines, how do I go about rebuilding the xpmanifest.o file (living in maxgui.mod/xpmanifest.mod) ?


Henri(Posted 2015) [#4]
Hi Brucey,

xpmanifest's main idea is probably to define MS Common-Controls version for newer look, so that part (along with the processorArchitecture part which probably needs to be defined as 'amd64' for desktops) is what matters.


Some notes from SebHoll.

Windres was part of older MinGW - setup.

-Henri