Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Idle chatter (http://angband.oook.cz/forum/forumdisplay.php?f=6)
-   -   Problem with sdl 2.0.5 on Ubuntu 16 (http://angband.oook.cz/forum/showthread.php?t=9656)

werecobalt November 3, 2019 03:52

Problem with sdl 2.0.5 on Ubuntu 16
 
Hi! I hope this is the right place for my question.

I want to install libtcod in my computer. It requires sdl 2.0.5. But the hightest version I can install is sdl 2.0.4.

After searching for this problem, I found this thread about installing 2.0.5 on Ubuntu:
https://forum.outpost2.net/index.php?topic=5978.0

After downloading and extracting the tar.gz file from libsdl.org, do I need to put this into the Ubuntu terminal?
Code:

tar -zxvf SDL2-2.0.5.tar.gz
cd SDL2-2.0.5
./configure
make
sudo make install
cd ..

I used to make a roguelike on a Windows computer and managed to install libtcod successfully. Now I want to resume on this Ubuntu one. One problem with libtcod itself is that it only has square font. So I also would like to know if there is substitute for libtcod that doesn't require sdl 2.0.5 or has non-square font.

fph November 3, 2019 16:13

Which Linux distribution are you using? It looks like it may be quite outdated.

werecobalt November 3, 2019 17:14

it's ubuntu 16.04 LTS

fph November 3, 2019 21:10

Indeed, that's three and a half years old. Have you considered updating to the next LTS, 18.04?

werecobalt November 4, 2019 02:27

The computer is old too and with Ubuntu 18 it probably will become very slow. Thanks for your help, fph!

The problem, however, is now solved, though I don't quite understand the whole thing.

Yesterday I found out that somehow there was already a libtcod folder in the computer, and I could successfully import libtcod into my code. But in my Windows computer, the line was "import tcod", and it worked, and now the line has to be "import libtcod" to make it work.


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

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