Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 10, 2012, 05:25   #21
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
In the "I am posting this so other devs will hopefully tell me that things like this occasionally happen to them too" department:

So after another 3 hours of trying to find problems and missing tabs in makefile and makefile.inc in the *src directory, and getting the same error messages over and over regardless of what I did, my frustration levels are too high for me to think. I take a break & go for a walk with my dog, and it suddenly dawns on me that the instructions in makefile and makefile.inc have been completed, the compiler moved on to the makefiles in the *lib directory, and that is where the errors are. Sure enough, that was it. 2 lessons learned: Never try to fix the same problem for too long......that, and after 30 minutes your time is better spent with your dog.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 10, 2012, 06:43   #22
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,864
Derakon is on a distinguished road
Yep, I know that feeling. 30 minutes of banging your head against a wall is a sign that it's time to switch focus to something else. The trick is recognizing that this has happened, since we tend to get a bit too wrapped up in what we're doing.

Glad to hear you got it worked out though.
Derakon is offline   Reply With Quote
Old February 10, 2012, 12:57   #23
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,772
Donated: $60
Nick is on a distinguished road
My favourite is spending several hours trying to work out why none of my bugfixes are working, only to discover I'm still running the original executable.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old February 10, 2012, 14:47   #24
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 Nick View Post
My favourite is spending several hours trying to work out why none of my bugfixes are working, only to discover I'm still running the original executable.
+1. Make clean; make is our friend.
__________________
"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 February 10, 2012, 23:44   #25
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
OK, thanks to all your help I am happy to report that the NPPAngband source on Github (Work-in-Progress branch) now compiles in Ubuntu. I am not quite there yet as I need to ask how to get it to run:

I compiled using the commands:
./autogen
./configure
make


After comiling, the executable is in the *npp/src directory. I moved it to the base *NPP directory, and tried to run it with "./nppangband". I re-checked the permissions to make sure an executable can run there.

I get this error:
./nppangband: Cannot create '/usr/local/share/nppangband/info'

I also tried make install, but I get this error:

/usr/bin/install: cannot create regular file `/usr/local/games/nppangband': Permission denied
Failed to install nppangband!
make[1]: *** [install] Error 1
make: *** [install] Error 1

What should I be doing? At this point I don't care if it runs in a local directory or somewhere else. Whatever is simplest.

Hopefully this one is a nice, easy question. And again, I greatly appreciate all the help. In spite of all the troubles I am having getting going I would rather be here on Ubuntu than on Windows.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 11, 2012, 00:37   #26
Therem Harth
Knight
 
Therem Harth's Avatar
 
Join Date: Jan 2008
Location: New England winter
Posts: 919
Therem Harth is on a distinguished road
If that's what I think it is... The problem is that you should be running 'sudo make install'. Ubuntu gives you a limited user account by default, and /usr/local is read-only for limited users.

(Also, 'make install' will spread your *band installation all over /usr/local and make it hard to remove in the future. Probably better to do a local install to somewhere in your home directory, as per the --with-no-install option in V.)
Therem Harth is offline   Reply With Quote
Old February 11, 2012, 18:49   #27
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by Therem Harth View Post
If that's what I think it is... The problem is that you should be running 'sudo make install'. Ubuntu gives you a limited user account by default, and /usr/local is read-only for limited users.

(Also, 'make install' will spread your *band installation all over /usr/local and make it hard to remove in the future. Probably better to do a local install to somewhere in your home directory, as per the --with-no-install option in V.)
with both approproaches, it fails. It cannot create the directories. For some reason it is getting confused with the files in bones directory (the bones files (player ghost templates) are bone.128 through bones.145, and it fails saying that is an extra operand. grrr

I would like to start by getting Vanilla Angband v3.3 working. How do I get the program to actually execute? I do ./autogen followed by ./configure followed by make. Then what? Note the executable is still in the src directory at the end of compiling. I did move it to the base Angband directory. Thanks for any help you have to offer.
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57
nppangband is offline   Reply With Quote
Old February 11, 2012, 19:41   #28
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
The way to run it is to specify the file the same way. After you copy it up, use
Code:
./angband
That should be done in the same directory where you ran ./autogen.sh etc.
PowerDiver is offline   Reply With Quote
Old February 11, 2012, 21:12   #29
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
The way to run it is to specify the file the same way. After you copy it up, use
Code:
./angband
That should be done in the same directory where you ran ./autogen.sh etc.
I was afraid of that, because it simply isn't working. Maybe I need to manually create all the directories in '/usr/local/share/angband?

Altenatively, what make command keeps the whole thing in the (linux account)/Documents/Angband directory, so I don't have to create anything is usr/local?

On a different note, once I get this working, to run the various different versions, don't I add an extension at the end, right? ./angband -sdl, or ./angband -x11.

Is there anyone out there on Linux who willing to take a quick 5-10 minutes and download the NPP source (work-in-progress branch) from github and see if they have any difficulties in getting it to execute? At least then I can eliminate the NPP source as the problem. (The fact that I am blocked from running Angband 3.3 either should be a pretty good indicator) I have spent hours on this, RTFM repeatedly, and I am just not having any success. This is crazy.

https://github.com/nppangband/NPPAng...rk_in_progress
__________________
NPPAngband current home page: http://nppangband.bitshepherd.net/
Source code repository:
https://github.com/nppangband/NPPAngband_QT
Downloads:
https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

Last edited by nppangband; February 11, 2012 at 21:27.
nppangband is offline   Reply With Quote
Old February 11, 2012, 22:39   #30
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by nppangband View Post
I was afraid of that, because it simply isn't working. Maybe I need to manually create all the directories in '/usr/local/share/angband?

Altenatively, what make command keeps the whole thing in the (linux account)/Documents/Angband directory, so I don't have to create anything is usr/local?

On a different note, once I get this working, to run the various different versions, don't I add an extension at the end, right? ./angband -sdl, or ./angband -x11.

Is there anyone out there on Linux who willing to take a quick 5-10 minutes and download the NPP source (work-in-progress branch) from github and see if they have any difficulties in getting it to execute? At least then I can eliminate the NPP source as the problem. (The fact that I am blocked from running Angband 3.3 either should be a pretty good indicator) I have spent hours on this, RTFM repeatedly, and I am just not having any success. This is crazy.

https://github.com/nppangband/NPPAng...rk_in_progress
You shouldn't be using /usr/local. That's probably the source of your problem. It is much better to configure --with-no-install. The inability to create directories might be a permissions problem. Also, different incompatible versions of angband store their files in the same place, so you are really asking for trouble if you might ever have two different angbands on your system at the same time.

If you want to test the permission hypothesis, you could run angband as root.
Code:
sudo ./angband
If that works, then it is a permission problem. Unfortunately, the fact it works would mean that it created things you will have problems deleting later. I don't know whether there is a good way to undo. Think carefully before you do this experiment.

Eventually you will want to create a shell script in /usr/local/bin that does a cd to the directory in question and then invokes the executable with the options that you want. It could also set font sizes etc.

I would delete your angband directory and start over. That's probably not necessary. "make clean" will probably be enough, but I believe in complete restarts. Then the important thing is to use the right options for configure. Look at the output. You will need to pass options if you want sdl support etc.

For your first test
Code:
eddie@asusblu:~/health$ history | grep configure
 1712  ./configure --with-no-install
try configure as above. I've been working on a 3.0.9 base, but that probably has not changed.

I looked at your work in progress. My first minor problem was that autogen.sh is not an executable. I got as far as
Code:
2151  chmod +x autogen.sh 
 2152  ./autogen.sh 
 2153  l
 2154  ./configure --with-no-install
 2155  make
and the make failed because I don't have sdl installed. I don't know if you think npp absolutely requires it or not. The angband setup is that if you want sdl, you specify that as an option to ./configure. Are you sure you want to require it?

Then I installed sdl,
Code:
 2161  make
 2162  l
 2163  ln -s src/nppangband 
 2164  ./nppangband
That gave me the error
Code:
./nppangband: Couldn't load the requested font. (-angband-10x14x-*-iso8859-1)
There is a file lib/xtra/font/10x14x.fon , but I don't know enough about fonts to suggest anything.
PowerDiver 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
[3.3.2] Compiling fails under Ubuntu 11.10 raycluster Vanilla 18 February 13, 2012 10:13
Few questions. Hengband related. And Ubuntu. Arendil Variants 4 October 1, 2009 16:53
Compiling NPP for Linux? Bandobras Variants 9 July 3, 2009 10:52
Ubuntu SDL Help? benhamill Vanilla 12 February 24, 2009 21:19
[NPP] Compiling on Mac OS X chem Variants 10 January 6, 2009 22:40


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


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