1 (edited by baboon 2017-02-14 23:50:08)

Topic: Help compiling neverball

Hi guys I need help compiling the game. When I run make I get the following warning on my Ubuntu 16.04 system:

share/image.c:16:21: fatal error: SDL_ttf.h: No such file or directory

I tried 'sudo apt-get install libsdl-ttf2.0-dev' but it did not work.

How do I sort this out? what library do I have to install?


Re: Help compiling neverball

Although my walkthrough is outdated, if memory serves, you need SDL_tff in addition to SDL2_tff.

The linked walkthrough was written for Windows, but there are just a few difference in terms of libraries needed. GNU/Linux probably already comes with libintl pre-installed, and you might have a much easier time getting libjpeg and PhysicsFS to work.

Welcome... to the Nevergalaxy!
(and also Neverputt Calendar)


Re: Help compiling neverball

No. The latest version of the game uses SDL2. There's no need for SDL1. You need to install libsdl2-ttf-dev, not libsdl-ttf2.0-dev. I know. The Ubuntu/Debian packages for SDL are confusingly named. libsdl-ttf2.0-dev is actually version 2.0 of SDL1's TTF library. libsdl2-ttf-dev is SDL2's TTF library, which is what you need.