![]() |
#1 |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,516
![]() |
Windows PNG support in staging
Hi everybody,
Thanks to Blue Baron's work, PNG support has been added to the staging repo. I hope to get it into master (and into a nighly build) in the next few days. This will allow tile authors to just use PNGs, and not have to mess with mask files for bitmaps. This is still something of a work in progress, and while I expect that the nightly builds should be playable, my changes may cause problems for people who are building Angband from source for Windows. If you do this (or are interested) keep reading for a more in-depth explanation of what's going on. Since most devs (and the autobuilder) build with Mingw, we need to have a solution which works with Mingw. Unfortunately, I wasn't able to find a version of the DirectX headers/libraries that Mingw could use. So I went with libpng (which depends on zlib) which are both GPL-2 compatible. But since building/crossbuilding them for Windows is hard, I took the easy way out and copied in headers, libraries and DLLs, which I found prebuilt on the gnuwin32 site. I wasn't able to get Angband to statically link against the libraries, which is why I have to include (and ship) the DLLs. I realize this is a bit junky but it seems to work. I would *love* to get libpng/zlib building (and crossbuilding) from source, or at least, linking against the libraries statically. But I lack the knowledge about Windows development to get that working at the moment, and I know that MSVC++ uses a completely different build infrastructure. TL;DR -- It's junky, but I think it works. Feedback and patches happily accepted! |
![]() |
![]() |
![]() |
#2 |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 46
Posts: 367
Donated: $120
![]() |
I am trying to be positive here, but did you just say that now the only way to develop on Windows is mingw ? Which, by the way does not have a decent debugger ( gdb is not a decent debugger ).
Still, png for the win, but ouch for poor windows folks like me. T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
![]() |
![]() |
![]() |
#3 |
Angband Devteam member
|
Flames off, please. Quite a lot of people find gdb an excellent debugger. I don't develop on Windows though - perhaps it is somehow gimped on that OS.
As d_m said in another thread, we have only one Windows developer on the team, and he uses mingw. To improve support for Windows development, we need more Windows developers to contribute. |
![]() |
![]() |
![]() |
#4 |
Adept
Join Date: Apr 2011
Posts: 103
![]() |
Would you like makefiles exported from MSVC++ 6.0? would the information in there help with statically compiling libpng/zlib?
Also wikepedia and the mingw website imply mingw can use .lib libraries in addition to .a libraries. If so, you are welcome to the static libraries that I built for myself from libpng 1.5.2 (and zlib 1.2.4). |
![]() |
![]() |
![]() |
#5 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 46
Posts: 367
Donated: $120
![]() |
Quote:
And I think I have this guy's issue : http://stackoverflow.com/questions/5...xternal-symbol I have no idea on how to fix that ;\ T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
#6 | |
Adept
Join Date: Apr 2011
Posts: 103
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,516
![]() |
Quote:
Please email me about the static libraries: d_m * plastic-idolatry * com Any help you can give me would be greatly appreciated! ![]() @konijn -- I'm just muddling through here. Any patches or simple instructions which will keep Cygwin and/or MSVC++ supported are welcome. |
|
![]() |
![]() |
![]() |
#8 | |
Adept
Join Date: Apr 2011
Posts: 103
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 46
Posts: 367
Donated: $120
![]() |
[QUOTE=d_m;53468
@konijn -- I'm just muddling through here. Any patches or simple instructions which will keep Cygwin and/or MSVC++ supported are welcome.[/QUOTE] Well, at least you know how to muddle, I have no idea about Windows/Cygwin development. I know how to change logic and type make -Fmakefile.win :\ Dont worry about it, I will code on my Mac and that's the end of it. T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
![]() |
![]() |
![]() |
#10 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,516
![]() |
Quote:
I hope this makes it possible to develop with MSVC++ (and maybe Cygwin) again? Feedback appreciated. |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
2 options for Windows PNG support | Blue Baron | Development | 36 | June 1, 2011 00:14 |
256 color support in r1862; uniques discussion to follow | d_m | Vanilla | 3 | December 22, 2009 10:28 |
Why no tile support in x11 port? | bdo | Vanilla | 2 | February 2, 2009 22:42 |
Request for enhancement (Large monitor support) | K.I.L.E.R | Vanilla | 13 | March 31, 2008 08:08 |
bigscreen support | dionysian | Variants | 4 | December 11, 2007 05:59 |