Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 13, 2012, 16:35   #51
wuphonsreach
Rookie
 
Join Date: May 2012
Posts: 17
wuphonsreach is on a distinguished road
Quote:
Originally Posted by Magnate View Post
--with-setgid=groupname, if you want a system-wide installation (i.e. for all users)
Under the old 3.0.9 build, it was possible to have a shared score file across the entire multi-user system under Linux. In 3.3.2, I haven't figured out how to convince Angband to do that.

I've tried setting up the ANGBAND_PATH environment variable (using a .sh file under /etc/profile.d), but it still puts everything under ~/.angband. Is that variable still used?
wuphonsreach is offline   Reply With Quote
Old May 13, 2012, 16:41   #52
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by wuphonsreach View Post
Under the old 3.0.9 build, it was possible to have a shared score file across the entire multi-user system under Linux. In 3.3.2, I haven't figured out how to convince Angband to do that.

I've tried setting up the ANGBAND_PATH environment variable (using a .sh file under /etc/profile.d), but it still puts everything under ~/.angband. Is that variable still used?
No. If you've installed --with-setgid=games (or indeed any group), the score file should be in /var/games/angband/scores.raw. Can you pastebin the output of ./configure, and also the output of make install?
__________________
"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 May 14, 2012, 02:54   #53
wuphonsreach
Rookie
 
Join Date: May 2012
Posts: 17
wuphonsreach is on a distinguished road
Pastebin (and created a new thread instead):
http://angband.oook.cz/forum/showpos...03&postcount=1
wuphonsreach is offline   Reply With Quote
Old September 3, 2012, 02:35   #54
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
A Wild Noob Appears

Hey there. I'm a competent programmer (and instructor, though I prefer Java for my own projects) who unfortunately hasn't set up a C++ project by herself in ages. I have the latest build of Angband and v4 both set up under NetBeans, but when I try to build either one I get messages saying buildsys.mk cannot find various other *.mk files.

The weird thing is I can clearly see where it's looking for *.mk files in buildsys.mk, but those files are named *.mk.in in the repository. Changing the name of the file definitely doesn't fix it. I haven't tried changing the names in buildsys.mk because that seems a stupid guess too.

I'm certain I'm doing something unacceptably stupid but I hope that asking this question will save me a ton of time futzing with the settings in an unfamiliar environment.

P.S. Is there a Java version of Angband-style roguelikes available anywhere which uses graphical tiles, aside from the impending ToME rebirth? That'd be a much faster tool for what I want to do (my own variant, open-source).
TricksterWolf is offline   Reply With Quote
Old September 3, 2012, 02:42   #55
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,946
Derakon is on a distinguished road
Assuming you're trying to build on Windows, unfortunately our Windows build chain is not very well-documented, and the people who know how to do it (mostly Blubaron, IIRC) aren't around much. Mostly the Windows build is generated by cross-compiling on Linux (i.e. one of our Linux devs uses a special makefile that generates a Windows binary).

Generally-speaking, the recommended build method is to use GCC and the "make" command on the command line. For example, on OSX I'd do "make -f Makefile.osx".

I did a quick Google search for Java roguelikes and found this list and this engine project that doesn't look like it's been updated recently but may still be helpful.

Sorry I don't have more useful information. Good luck!
Derakon is offline   Reply With Quote
Old September 3, 2012, 03:27   #56
myshkin
Angband Devteam member
 
Join Date: Apr 2007
Posts: 334
myshkin is on a distinguished road
Quote:
Originally Posted by TricksterWolf View Post
Hey there. I'm a competent programmer (and instructor, though I prefer Java for my own projects) who unfortunately hasn't set up a C++ project by herself in ages. I have the latest build of Angband and v4 both set up under NetBeans, but when I try to build either one I get messages saying buildsys.mk cannot find various other *.mk files.

The weird thing is I can clearly see where it's looking for *.mk files in buildsys.mk, but those files are named *.mk.in in the repository. Changing the name of the file definitely doesn't fix it. I haven't tried changing the names in buildsys.mk because that seems a stupid guess too.
To add to Derakon's hints, if you have access to the autoconf toolchain, you can build the *.mk files from the *.mk.in files by running the shell script autogen.sh at the top level of the source tree, and then by running configure with the options you desire. (Run ./configure --help to see the available flags.)
myshkin is offline   Reply With Quote
Old September 3, 2012, 03:47   #57
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Quote:
Originally Posted by Derakon View Post
Generally-speaking, the recommended build method is to use GCC and the "make" command on the command line. For example, on OSX I'd do "make -f Makefile.osx".
First off, much thanks for the rapid response.

Unfortunately, that command is what NetBeans was trying. Invoking it from within Cygwin produces the same errors.

For an exact quote, when building angband's current release (3.3.2):

Code:
$ make -f Makefile
mk/buildsys.mk:21: mk/extra.mk: No such file or directory
mk/buildsys.mk:377: mk/sinclude.mk: No such file or directory
make: *** No rule to make target `mk/sinclude.mk'.  Stop.
As for the Java question, I probably deserve a LMGTFY for that one. :P I was just curious if you had any inside knowledge of recent Java roguelike activity beyond what I might readily find, but I appreciate the look.
TricksterWolf is offline   Reply With Quote
Old September 3, 2012, 03:53   #58
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Quote:
Originally Posted by myshkin View Post
To add to Derakon's hints, if you have access to the autoconf toolchain, you can build the *.mk files from the *.mk.in files by running the shell script autogen.sh at the top level of the source tree, and then by running configure with the options you desire. (Run ./configure --help to see the available flags.)
Aha! Now we're on the right track.

Several questions:

1) autogen.sh kicks back:

Code:
$ ./autogen.sh
*info* running aclocal
./autogen.sh: line 38: aclocal: command not found
*error* aclocal failed. (exit code = 127)
This sounds like I don't have something installed through Cygwin that I need in order to complete the pre-compilation step, or maybe it's just a path issue. I'm not nixie-enough to know offhand, but I'm looking online for more info...

2) Will I need to rerun autogen.sh every time I clean and build? If so, I'll make a batch file and have NetBeans run that instead...if not I'll just do it the once.

EDIT:

3) Two attempts at ./configure, under the root directory for the project:

Code:
$ ./configure
-bash: ./configure: No such file or directory

$ ./configure.ac
./configure.ac: line 1: dnl: command not found
./configure.ac: line 2: syntax error near unexpected token `[Angband],'
./configure.ac: line 2: `AC_INIT([Angband], [3.3.2], [bugs@rephial.org], [angband])'

Last edited by TricksterWolf; September 3, 2012 at 04:00.
TricksterWolf is offline   Reply With Quote
Old September 3, 2012, 05:52   #59
myshkin
Angband Devteam member
 
Join Date: Apr 2007
Posts: 334
myshkin is on a distinguished road
Quote:
Originally Posted by TricksterWolf View Post
Aha! Now we're on the right track.

Several questions:

1) autogen.sh kicks back:

Code:
$ ./autogen.sh
*info* running aclocal
./autogen.sh: line 38: aclocal: command not found
*error* aclocal failed. (exit code = 127)
This sounds like I don't have something installed through Cygwin that I need in order to complete the pre-compilation step, or maybe it's just a path issue. I'm not nixie-enough to know offhand, but I'm looking online for more info...
Yes, you need the autoconf package.

Quote:
Originally Posted by TricksterWolf View Post
2) Will I need to rerun autogen.sh every time I clean and build? If so, I'll make a batch file and have NetBeans run that instead...if not I'll just do it the once.
No, just the once should be sufficient.

Quote:
Originally Posted by TricksterWolf View Post

3) Two attempts at ./configure, under the root directory for the project:

[CODE]$ ./configure
-bash: ./configure: No such file or directory
The autogen.sh script creates the configure script from configure.ac, and so you'll need autoconf before you can proceed.
myshkin is offline   Reply With Quote
Old September 3, 2012, 07:22   #60
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Thank you both for the help!

I'll add the package and test it again soon...my time is not free at the moment.
TricksterWolf 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
Compiling Angband on MS-DOS Zababa Development 8 May 27, 2011 18:36
Compiling Angband 3.0.9 w/ xcode on OSX Iemortal Vanilla 8 April 16, 2011 17:41
Compiling Z+Angband under Windows Altefcat Variants 8 December 11, 2008 10:44
compiling vanilla angband on msvc++ 9 express hugh Vanilla 6 March 17, 2008 16:49
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 18:28


All times are GMT +1. The time now is 12:58.


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