Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 7, 2009, 17:45   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Wanted: Linux user to compile pre-alpha

I've had a report that the Angband variant I'm working on won't run under Linux. I don't have Linux (and I didn't think I'd changed anything that would have broken it ...). So basically I'd be grateful if somebody could download the SVN and check whether it runs or not.

If you could fix it as well I'd be REALLY grateful.

See
http://sourceforge.jp/projects/angband65/

It's code altered from the latest Vanilla Angband SVN so it should be quite familiar to Angband developers.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 7, 2009, 19:49   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,082
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
I don't understand - what's stopping you getting Linux? It's not like saying "I don't have MacOS" or "I don't have RISCOS". You can download Linux and test the compilation yourself in less than an hour.

??
Magnate is offline   Reply With Quote
Old April 7, 2009, 20:08   #3
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Magnate View Post
I don't understand - what's stopping you getting Linux? It's not like saying "I don't have MacOS" or "I don't have RISCOS". You can download Linux and test the compilation yourself in less than an hour.

??
Well for one thing I'm on a limited bandwidth internet connection (that goes over about one month in three).

For a second I know nothing worth mentioning about Linux so it would take me a lot longer than an hour to get up to speed.

Seriously though, even if it's 'just' an hour it should be more like five minutes to someone who already knows Linux and has experience compiling Angband variants.

[EDIT] Oh yes, I also have no writeable CDs, no CD writer attached to my computer and the last time I tried to install Linux on a computer it worked for about a fortnight then mysteriously stopped booting on the Linux partition which never worked again.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 7, 2009, 22:07   #4
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,082
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Ok, well I commiserate you on your experience so far. Linux is well worth persevering with - once you master it, you'll never look back. If you do give it another try, let me know.

In the meantime, I'll have a go at compiling your variant. Watch this space.
Magnate is offline   Reply With Quote
Old April 7, 2009, 22:15   #5
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Magnate View Post
Ok, well I commiserate you on your experience so far. Linux is well worth persevering with - once you master it, you'll never look back. If you do give it another try, let me know.

In the meantime, I'll have a go at compiling your variant. Watch this space.
Thanks. I had someone give it a go from rec.games.roguelike.development but they had a rather odd error not the same as the earlier report I had (which had something reported wrong with 'object.txt').

src/autoconf.h.in was said to be missing, but that is supposed to be autogenerated (according to what I read in rephial).
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 8, 2009, 10:14   #6
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
It looks like a number of files had gone missing (or not been copied in the first place) that relate to compiling in Linux. I have fixed everything I could find of them.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 8, 2009, 12:33   #7
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,082
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
It compiles on i386 Linux, but only after I manually set autogen.sh to be executable! I did configure --with-noinstall, so it compiled with X11 and curses support but not SDL. It compiled with the following warnings:

object/obj-info.c: In function 'describe_slays':
object/obj-info.c:402: warning: unused variable 'descs'
object/randart.c: In function 'parse_frequencies':
object/randart.c:1450: warning: suggest parentheses around && within ||
object/randart.c: In function 'add_ability':
object/randart.c:3136: warning: suggest parentheses around && within ||
object/randart.c: At top level:
object/randart.c:796: warning: 'do_p2val' defined but not used
store.c: In function 'store_maint':
store.c:1443: warning: 'return' with no value, in function returning non-void
store.c:1449: warning: 'return' with no value, in function returning non-void
store.c:1519: warning: control reaches end of non-void function

I don't have time to play-test it, but now I've checked it out I'm happy to update and recompile periodically to confirm that it still builds under Linux.

Btw, you really want to keep your trunk free of all the configure-related stuff. That's the whole point of using autogen.sh
Magnate is offline   Reply With Quote
Old April 8, 2009, 13:42   #8
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Magnate View Post
It compiles on i386 Linux, but only after I manually set autogen.sh to be executable!
Apparently my setup doesn't copy SVN properties with files. I've set it now.

Quote:
I did configure --with-noinstall, so it compiled with X11 and curses support but not SDL. It compiled with the following warnings:
Looks like your compiler checks for more (or at least different) warnings than mine does.

Quote:
object/obj-info.c: In function 'describe_slays':
object/obj-info.c:402: warning: unused variable 'descs'
object/randart.c: In function 'parse_frequencies':
object/randart.c:1450: warning: suggest parentheses around && within ||
object/randart.c: In function 'add_ability':
object/randart.c:3136: warning: suggest parentheses around && within ||
object/randart.c: At top level:
object/randart.c:796: warning: 'do_p2val' defined but not used
store.c: In function 'store_maint':
store.c:1443: warning: 'return' with no value, in function returning non-void
store.c:1449: warning: 'return' with no value, in function returning non-void
store.c:1519: warning: control reaches end of non-void function
Think I've got all those.

Quote:
I don't have time to play-test it, but now I've checked it out I'm happy to update and recompile periodically to confirm that it still builds under Linux.
Unfortunately I don't really need a play tester right now - at least until I fix one major bug I've just noticed.

Quote:
Btw, you really want to keep your trunk free of all the configure-related stuff. That's the whole point of using autogen.sh
Apart from 'autoconf.h.in' (which I put in due to an earlier misunderstanding) I think all the 'configure related stuff' is present in the Angband SVN trunk.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 8, 2009, 15:10   #9
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,802
Donated: $40
Pete Mack will become famous soon enough
@paul-
looks like you need a new (or at least different) compiler. Some of those warnings are almost certain bugs, like the messed-up return values. And the missing parentheses are also risky practice. If you mean (A || (B && C)), it's wise to write it that way, because sometimes you might have really meant ((A || B) && C). logical precedence rules are sometimes nonintuitive.

Install MINGW/gcc and run it occasionally for compiler warnings, even if you are using DevCC for editing.
Pete Mack is offline   Reply With Quote
Old April 8, 2009, 16:48   #10
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
@paul-
looks like you need a new (or at least different) compiler.
Probably. Getting used to a new compiler is a pain though. I've been through BCC32 and LCC32 before Dev-C++. I'm trying to get Open Watcom to work for me at the moment.
__________________
Currently turning (Angband) Japanese.
PaulBlay 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
Announcing Angband/65 (pre-alpha) PaulBlay Development 10 April 1, 2009 21:36
How to compile Angband page PaulBlay Oook! 2 February 20, 2009 12:51
Getting Visual C++ 2008 Express Edition to compile Angband 3.0.9 Orillian Vanilla 5 February 10, 2008 09:23
Compile failure for 3.0.9 on Mac OS X 10.4.10 TreeFrog Vanilla 4 November 8, 2007 14:58
[Z] 2.7.5 Pre I Irashtar Variants 4 October 21, 2007 07:54


All times are GMT +1. The time now is 11:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.