Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 21, 2020, 04:25   #1
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Compiling on lubuntu

Hello, I'm pretty new to Linux, but I managed to compile the game on Lubuntu. Had a heck of a time, since a lot of assumed dependencies weren't there. I ran the following lines:

./autogen.sh
./configure --enable-sdl -enable-x11 ~/Desktop/angband-4.2.1/execute
make
make install

It seems like everything compiled, and I didn't get any errors. So, what's supposed to happen now? It made a new folder called execute, but nothing seems executable in there. I've tried navigating to different folders within the terminal and typing "angband" but nothing works.

Thanks!
PopTart is offline   Reply With Quote
Old December 21, 2020, 05:30   #2
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Found it

Mysterious... when I navigate to the folder and type "angband", it doesn't work. But when I drag the icon into the terminal, it works.
PopTart is offline   Reply With Quote
Old December 21, 2020, 05:49   #3
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Slightly new question

When I configured during build, I used these line:

./configure --prefix ~/Desktop/angband-4.2.1/execute --enable-sdl --enable-x11
make
make install

It seems like x11 is working fine, so it works when I put in
/home/lubuntu/Desktop/angband-4.2.1/execute/games/angband -mx11 -- -n5

but when I try to run

/home/lubuntu/Desktop/angband-4.2.1/execute/games/angband -msdl

...I get the error: Unable to prepare any 'display module'!

How do I get SDL to work? Thanks!
PopTart is offline   Reply With Quote
Old December 21, 2020, 06:45   #4
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
More info: I double checked in my configure step if SDL2 is installed, and yes it is, I installed the main one, the graphics, and the fonts, just no sound.

Another weird thing, in X11, saving the subwindow setup seems to work, but it seems like it's not creating the subwindow file, and when I load it nothing happens, but it doesn't give any error message.

Last edited by PopTart; December 21, 2020 at 07:08.
PopTart is offline   Reply With Quote
Old December 21, 2020, 13:36   #5
invisibletroll
Apprentice
 
Join Date: Jul 2020
Posts: 50
invisibletroll is on a distinguished road
If you install the game, it should run by typing "angband". Otherwise you need to type "./angband".

Type "./configure --help" to get configuration options. Usually you can disable any option you can enable.
invisibletroll is offline   Reply With Quote
Old December 21, 2020, 14:40   #6
fph
Knight
 
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 969
fph is on a distinguished road
If you compiled in SDL2 support, then to activate it you should run Angband with -msdl2. If you use -msdl, it tries to use the older SDL1 backend instead.

Usually when I am compiling I prefer to configure Angband with --with-no-install and then running it from the main compilation folder with "src/angband -msdl2" (or whatever options/backend you wish to use). I suggest to do the same; it is one less thing to do, and it makes it simpler to upgrade to a new version.
__________________
Dive fast, die young, leave a high-CHA corpse.
--
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old December 21, 2020, 14:58   #7
invisibletroll
Apprentice
 
Join Date: Jul 2020
Posts: 50
invisibletroll is on a distinguished road
Quote:
Originally Posted by fph View Post
If you compiled in SDL2 support, then to activate it you should run Angband with -msdl2. If you use -msdl, it tries to use the older SDL1 backend instead.

Usually when I am compiling I prefer to configure Angband with --with-no-install and then running it from the main compilation folder with "src/angband -msdl2" (or whatever options/backend you wish to use). I suggest to do the same; it is one less thing to do, and it makes it simpler to upgrade to a new version.
New versions are not released that often.
invisibletroll is offline   Reply With Quote
Old December 21, 2020, 16:05   #8
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Quote:
Originally Posted by fph View Post
If you compiled in SDL2 support, then to activate it you should run Angband with -msdl2. If you use -msdl, it tries to use the older SDL1 backend instead.

Usually when I am compiling I prefer to configure Angband with --with-no-install and then running it from the main compilation folder with "src/angband -msdl2" (or whatever options/backend you wish to use). I suggest to do the same; it is one less thing to do, and it makes it simpler to upgrade to a new version.
Same problem when I use -msdl2. But I will try this no-install option, thank you!
PopTart is offline   Reply With Quote
Old December 21, 2020, 16:05   #9
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Quote:
Originally Posted by invisibletroll View Post
If you install the game, it should run by typing "angband". Otherwise you need to type "./angband".

Type "./configure --help" to get configuration options. Usually you can disable any option you can enable.
I reconfigured it to install to the default directory, and now it works to simply type angband. Thanks!
PopTart is offline   Reply With Quote
Old December 21, 2020, 17:11   #10
PopTart
Apprentice
 
Join Date: May 2017
Posts: 62
PopTart is on a distinguished road
Still not able to make SDL2 work
PopTart 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
Need help compiling Hellband konijn_ Variants 7 March 13, 2018 20:49
Compiling V for Windows Therem Harth Vanilla 8 September 4, 2011 23:36
Compiling Z+Angband Ravenheart87 Variants 7 May 24, 2011 08:35
Compiling 3.2 Omnipact Development 6 December 27, 2010 09:39
Compiling Issues Gregian Vanilla 13 July 2, 2008 14:35


All times are GMT +1. The time now is 19:03.


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