9

I am trying to install Marathon on my laptop. Been following along with the instructions at: https://github.com/Aleph-One-Marathon/alephone/wiki/Linux%20Install%20Instructions#ubuntu.

I installed the following libraries, per the instructions,

sudo apt-get install libboost-all-dev libsdl1.2-dev libsdl-image1.2-dev \
libsdl-net1.2-dev libsdl-ttf2.0-dev libspeexdsp-dev libzzip-dev \
libavcodec-dev libavformat-dev libavutil-dev libswscale-dev

However, when I configure the installation with,

 ~/file path/AlephOne$ ./ configure

I get the following message,

checking for SDL_ttf.h presence....no
error: You need SDL_ttf.h to run Aleph One.

I thought this was included in the libsdl-ttf2.0-dev? Anyone have any clues what is going on? Any help would be much appreciated.

andrew.46
  • 39,359

2 Answers2

8

Try: sudo apt-get install libsdl2-ttf-dev

After that, you should find it via:

find /usr|grep SDL_ttf
Videonauth
  • 33,815
John
  • 96
2

I was installing gosu gem for Ruby and had the same error, on Ubuntu 16.04. All solutions pointed to installing sdl2 ttf libs, but I already had them all installed. I noticed, however, that I had /usr/include/SDL2/SDL_ttf.h, and the gem included lib directories didn't list that one, but listed /usr/local/include/SDL2/SDL_ttf.h.

I managed to solve the problem by creating a symbolic link with

sudo ln -s /usr/include/SDL2/SDL_ttf.h /usr/local/include/SDL2/