Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 11, 2012, 22:57   #31
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,777
Donated: $60
Nick 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?
IIRC you run configure as
Code:
./configure --use-local-dirs
Quote:
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.
It's
Code:
./angband -msdl
The code will try to find a display module - it runs though x11, gcu, sdl if it's enabled, I think in that order.

Quote:
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
Don't be disheartened - Linux takes a while to get used to, but in my experience that pays off.

As far as the bone error goes, the problem is trailing whitespace at the end of the CONFIG line (ie after bone.147) - yes, I'm serious

Apart from that, there are references in the lib/* Makefiles to some files that you don't have.

I have made a fork, and fixed it to the point where it compiles for me - here is the relevant branch:
https://github.com/NickMcConnell/NPP...rk_in_progress

EDIT: Actually tried running it, and had Eddie's font problem; running with -msdl worked fine, though, as does -mgcu.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

Last edited by Nick; February 11, 2012 at 23:02.
Nick is offline   Reply With Quote
Old February 11, 2012, 23:10   #32
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
@powerdiver - thank you very much. Someday I will name an artifact after you or make you a player ghost or something like that.

I am as far as you are. I definitely had a permissions issue, and I finally resolved it. I can fix the fonts thing. It is trying to load a windows-specific font instead of the linux-specific .bdf fonts in NPP. So I just need to specify different defualt fonts for the various linux main files and recompile.

edit:
@Nick - thank you as well. I think you are already a player ghost. If you aren't, you will be soon.
__________________
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 12, 2012, 18:47   #33
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
If you plan to do any development under Ubuntu, I have some important advice for you. Do not copy the executable up a level. Use a symbolic link instead. In the earlier post I used: ln -s src/nppangband

You do not want it to be possible that you run make, forget to copy up [or equivalent], and then invoke the previous executable. You go crazy wondering why your changes aren't doing what you want.

If you want to get fancy, an alternative is to put in extra rules in your makefile. For example "make play" to play, which depends upon the installed executable, which in turn depends on the compiled executable.
PowerDiver is offline   Reply With Quote
Old February 12, 2012, 18:53   #34
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
If you plan to do any development under Ubuntu, I have some important advice for you. Do not copy the executable up a level. Use a symbolic link instead. In the earlier post I used: ln -s src/nppangband

You do not want it to be possible that you run make, forget to copy up [or equivalent], and then invoke the previous executable. You go crazy wondering why your changes aren't doing what you want.

If you want to get fancy, an alternative is to put in extra rules in your makefile. For example "make play" to play, which depends upon the installed executable, which in turn depends on the compiled executable.
Thanks. I know the windows makefile automatically copies the executable from the /NPP/src directory to the base /npp directory. I was considering having the regular makefile do the same thing. But I will take that on once I get it running.

@Nick - I pulled (or pushed or fetched or whatever git calls it) your github fork back into the NPP work-in-progress branch. Thank you for that.
__________________
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 13, 2012, 05:02   #35
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,367
AnonymousHero is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
If you plan to do any development under Ubuntu, I have some important advice for you. Do not copy the executable up a level. Use a symbolic link instead. In the earlier post I used: ln -s src/nppangband
You can also just get used to typing ./src/nppangband instead of ./nppangband .
AnonymousHero is offline   Reply With Quote
Old February 13, 2012, 09:01   #36
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 AnonymousHero View Post
You can also just get used to typing ./src/nppangband instead of ./nppangband .
+1. This is the easiest way to play and/or test using --with-no-install, because if you move or copy stuff around, make clean might not clean up properly.
__________________
"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 13, 2012, 16:57   #37
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
Quote:
Originally Posted by Magnate View Post

Quote:
Originally Posted by AnonymousHero View Post
You can also just get used to typing ./src/nppangband instead of ./nppangband .
+1. This is the easiest way to play and/or test using --with-no-install, because if you move or copy stuff around, make clean might not clean up properly.
Great suggestion. That seems like the best & simplest solution.
__________________
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 14, 2012, 01:16   #38
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
I got the gcu port working. That's a good start. I think X-11 and gtk can't load because of the specisl x-char fonts, but I am going to switch to UTF-8 soon, so the special s-xhar fonts won't be needed any more.

For sdl, it says "Unable to prepare any 'display module". I do have ncurses loaded. Is there any other dependency I need?

EDIT: SDL is now working too.
__________________
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 14, 2012 at 01:36.
nppangband is offline   Reply With Quote
Old February 14, 2012, 03:13   #39
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quote:
Originally Posted by AnonymousHero View Post
You can also just get used to typing ./src/nppangband instead of ./nppangband .
If you are going to do that, just use src/nppangband, but you will be better off if you learn to use links.
PowerDiver is offline   Reply With Quote
Old February 14, 2012, 04:37   #40
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,367
AnonymousHero is on a distinguished road
Quote:
Originally Posted by PowerDiver View Post
If you are going to do that, just use src/nppangband, but you will be better off if you learn to use links.
Heh, I see I've used both on occasion (link and using the relative path). For some reason I've gotten used to always having the dot in ./blabla/blabla/bla. Probably because of tab-completion which doesn't expand directories in the current dir until you type the first '/'. Obviously not a big deal if you just need to type 'src', but it's just embeddded in my finger memory at this point.
AnonymousHero 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 21:34.


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