Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 31, 2020, 16:55   #1
frozenxis
Rookie
 
Join Date: Mar 2020
Posts: 6
frozenxis is on a distinguished road
Question Ubuntu GTK or X11 for draggable windows

Hi guys!

My first interaction with this game was thru
Code:
sudo apt-get install -y angband
this had a standalone clickable file that could run the game and opened an interface that had clickable menus and draggable windows.

I played a few hours before I discovered that v4.2.0 was out and I had 3.2.0. I uninstalled 3.2.0, downloaded the tar.gz from rephial and tried to compile. This "compile" process is not something that I am used to, so I think I'm not doing something right.

I spent the last 3 days trying to run the game with draggable windows. if I run
Code:
$ angband -h
.
.
-m<sys>        Use module <sys>, where <sys> can be:
     gcu   Text mode, subopts
              -a     Use ASCII walls
              -B     Use brighter bold characters
              -nN    Use N terminals (up to 6)
I only see "gcu" as an option to run.
If I had more modules, they would appear here in the help?

If I try -mgtk or -mx11 I get:
Code:
angband: Unable to prepare any 'display module'!
Running with -mgcu works... but I liked the draggable windows. I searched a lot on google and this forums but no luck so far.

Do you have any tips for me on how to run Angband 4.2.0 the same way it ran when I installed 3.2.0 from apt-get? Or some commands related to gtk or x11 to make angband use them?

Thank you and sorry for my low technical knowledge.
frozenxis is offline   Reply With Quote
Old March 31, 2020, 17:04   #2
frozenxis
Rookie
 
Join Date: Mar 2020
Posts: 6
frozenxis is on a distinguished road
how I installed it?

Code:
./autogen.sh
./configure
make
sudo make install
I also installed different libraries on my make-it-work rage )

Code:
libncurses5 libncurses5-dev libx11-dev  libgtk-3-dev  libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev autoconf gcc libc6-dev libsdl2-dev
frozenxis is offline   Reply With Quote
Old March 31, 2020, 17:11   #3
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,698
Donated: $40
Pete Mack is on a distinguished road
You need to run
$ ./angband -mgcu
Which will give you bare bones curses mode (default build.)

If you want graphics, you need to configure it.
Pete Mack is offline   Reply With Quote
Old March 31, 2020, 17:13   #4
frozenxis
Rookie
 
Join Date: Mar 2020
Posts: 6
frozenxis is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
You need to run
$ ./angband -mgcu
Which will give you bare bones curses mode (default build.)

If you want graphics, you need to configure it.
Hi, thanks for the quick reply. I don't want graphics, I am super ok with ASCII. I just want draggable windows. -mgcu is how I run the game now in my ubuntu terminal. How do I run with different -m options?
frozenxis is offline   Reply With Quote
Old March 31, 2020, 17:17   #5
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 75
moosferatu is on a distinguished road
I don't use Ubuntu, but try:

Code:
make clean
./configure --with-no-install --enable-sdl2
make
cp src/angband .
./angband -msdl2
If it still doesn't work, post the end results of the configure command, which should say Yes or No about whether X11, GCU, SDL, etc are supported. You might be missing some libraries.
moosferatu is offline   Reply With Quote
Old March 31, 2020, 17:19   #6
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 75
moosferatu is on a distinguished road
Looking back at what you posted earlier it looks like you installed some of the SDL libraries. Personally, I think the SDL2 version is better (though, I GCU best...) and would recommend installing the SDL2-devel libraries to build that version.

Core SDL2 libs:

libsdl2-dev
libsdl2-ttf-dev
libsdl2-image-dev
libsdl2-gfx-dev


If you want sound:

libsdl2-mixer-dev

Last edited by moosferatu; March 31, 2020 at 17:24.
moosferatu is offline   Reply With Quote
Old March 31, 2020, 17:24   #7
frozenxis
Rookie
 
Join Date: Mar 2020
Posts: 6
frozenxis is on a distinguished road
Code:
libsdl2-dev is already the newest version (2.0.10+dfsg1-1ubuntu1).
Code:
$ angband -msdl2
angband: Unable to prepare any 'display module'!
frozenxis is offline   Reply With Quote
Old March 31, 2020, 17:28   #8
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 75
moosferatu is on a distinguished road
You need the ./ before your angband command to run the version you just built. Otherwise, you're running the one that was installed by your package manager.
moosferatu is offline   Reply With Quote
Old March 31, 2020, 17:37   #9
frozenxis
Rookie
 
Join Date: Mar 2020
Posts: 6
frozenxis is on a distinguished road
Quote:
Originally Posted by moosferatu View Post
I don't use Ubuntu, but try:

Code:
make clean
./configure --with-no-install --enable-sdl2
make
cp src/angband .
./angband -msdl2
If it still doesn't work, post the end results of the configure command, which should say Yes or No about whether X11, GCU, SDL, etc are supported. You might be missing some libraries.
this works after I installed the libraries you listed. thank you.
Now I have x11, sdl and gcu. Any ideas hot to run in gtk or it's not possible in Ubuntu?
frozenxis is offline   Reply With Quote
Old March 31, 2020, 17:42   #10
moosferatu
Apprentice
 
Join Date: Feb 2020
Posts: 75
moosferatu is on a distinguished road
The steps I gave you are for running it out of the source directory. You can install it at the system level too if your remove the --with-no-install flag and execute make install after running make. However, you probably want to make sure that you've removed the version of Angband you installed from apt-get first before installing your compiled version. Then, you should be able to use the angband command that's on your path.

There is no gtk frontend. curses, x11, sdl, sdl2, or the Windows version through Wine are your options.
moosferatu 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
GTK Build MadeOfBees Vanilla 2 April 6, 2013 11:03
Angband, Ubuntu and X11 windows Uqbar Vanilla 5 August 26, 2010 14:17
Angband under X11 Magnate Vanilla 3 December 13, 2009 21:56
Is the GTK port broken? PaulBlay Development 6 April 22, 2009 22:34
[V] Gtk port Magnate Development 1 February 24, 2009 09:48


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


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