Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > v4

Reply
 
Thread Tools Display Modes
Old June 25, 2012, 14:41   #11
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,008
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Quote:
Originally Posted by PowerWyrm View Post
Unfortunately I don't think there's a compiled SDL client... so you'd have to compile it yourself. There should be hints on how to compile the Angband source code on the dev site.
But I'm afraid they don't cover compiling the SDL module for Windows, because I don't think anyone's ever done this. You could try

./configure --enable-win --enable-sdl ; make

but I have no idea whether that will work. I don't think main-win supports the -m switch, which would make it impossible to select the SDL display module.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old June 26, 2012, 13:37   #12
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 771
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Magnate View Post
But I'm afraid they don't cover compiling the SDL module for Windows, because I don't think anyone's ever done this. You could try

./configure --enable-win --enable-sdl ; make

but I have no idea whether that will work. I don't think main-win supports the -m switch, which would make it impossible to select the SDL display module.
Well I have a compiled SDL client for my variant that works under Windows and to compile it I simply wrote a makefile to add main-sdl instead of main-win and defined WIN32/USE_SDL.
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old June 26, 2012, 15:55   #13
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,008
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate Send a message via Skype™ to Magnate
Quote:
Originally Posted by PowerWyrm View Post
Well I have a compiled SDL client for my variant that works under Windows and to compile it I simply wrote a makefile to add main-sdl instead of main-win and defined WIN32/USE_SDL.
Right - so it uses SDL *instead* of the Win32 module - you don't choose the display module at run-time (like with the unix builds).

I think the way forward is to get Windows to support the -m option: as well as allowing Windows users to use the SDL version, it will also allow people to run stats and tests in Windows.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old June 26, 2012, 16:43   #14
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,606
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Magnate View Post
Right - so it uses SDL *instead* of the Win32 module - you don't choose the display module at run-time (like with the unix builds).

I think the way forward is to get Windows to support the -m option: as well as allowing Windows users to use the SDL version, it will also allow people to run stats and tests in Windows.
You can't make the Windows port support the -m option because of the way Windows deals with things (Windows uses WinMain instead of main(), and SDL defines WinMain too...) So you're always going to need different binaries under Windows I think.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old June 27, 2012, 13:47   #15
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 771
PowerWyrm is on a distinguished road
Quote:
Originally Posted by takkaria View Post
You can't make the Windows port support the -m option because of the way Windows deals with things (Windows uses WinMain instead of main(), and SDL defines WinMain too...) So you're always going to need different binaries under Windows I think.
My SDL client doesn't define WinMain. I'm using main.c for the entry point and main-sdl.c (which doesn't have main or Winmain defined) for the SDL port. The only thing to do is have a makefile that links c0x32.obj (console application) instead of c0w32.obj (Windows application). But yeah this means having two separate binaries for Win and SDL...
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do not play V nightlies until further notice! d_m Vanilla 16 September 26, 2011 17:34
Hi. First post. Newbie looking for graphics. Oathbreaker Vanilla 9 July 27, 2011 14:54
Trying to understand the Angband 3.X source code nppangband Development 62 July 11, 2010 19:20
Trying to understand Ranger playing mechanics dormouse Vanilla 5 December 15, 2009 12:43
I finally understand how diving quicker can be "safer" Wraitheist Vanilla 13 September 19, 2008 18:25


All times are GMT +1. The time now is 17:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.