How to compile IVAN with an icon:

Jul 15, 2014, 7:49 pm
#1
Joined: Feb 20, 2012
Posts: 231
I don't know if any of you guys have been compiling the IVAN source at all, but if you have (or if you've played pretty much any variant that isn't the 0.50 binary from sourceforge), you may have noticed that the resultant .exe has no icon. For those interested:

~~~~~~~IVAN Resource compilation documentation~~~~~~~
~~"Because everyone loves the banana-pickaxe logo!"~~

1. Compile Ivan.res with following MinGW command (from /Main/Resource)
	> windres Ivan.rc -O coff -o Ivan.res
	
2. add filepath to last line of ivanmgw.mak:
	> $(IVANBIN) : $(FeLibGCH) $(FeLibOBJ) $(IVANGCH) $(IVANOBJ)
	> 	@echo Compiling $(IVANBIN)...
	> 	@$(CC) $(IVANBIN) $(FeLibOBJ) $(IVANOBJ) $(FLAGS) $(LIBS) C:\ivan\Main\Resource\Ivan.res
	
3. Compile IVAN with mingw32-make as usual and IVAN.exe will have the beloved icon.


**Note: This is a temporary fix; the above steps should be entirely incorporated into the makefile, though my initial attempts at this have failed.
Jul 16, 2014, 2:16 pm
#2
Joined: Sep 8, 2010
Occupation: Petty Functionary
Location: Drinking pea soup in the world map
Interests: Mangoes
Posts: 1,216
I tried it and I met with: Success! Awesome work Pent.
Attached is a screenshot of how I configured a separate command in Programmer's Notepad.
I also edited my local copy of the makefile using Pent's changes above.
Batman? wrote
its been so long since i had gotten that far i didnt think it through. arrrr!!!!!!
Jump to