Author Topic: Compiling on linux with tiles causes SDL issues  (Read 136 times)

Offline condortaco

  • Zombie Food
  • *
  • Posts: 16
    • View Profile
Compiling on linux with tiles causes SDL issues
« on: September 17, 2017, 12:00:09 AM »
I'm trying to compile on linux following the instructions here https://github.com/CleverRaven/Cataclysm-DDA/blob/master/COMPILING.md#linux-native-sdl-builds.  It compiles fine if I do it without tiles, but when I try make TILES=1 it throws errors.

(click to show/hide)

I've installed all the referenced libraries in the instructions, and went and looked at my usr/include/SDL2 folder but dont see SDL_tff.h in there.  I downloaded it from the online repo and tried putting in the SDL_tff.h file to that directory, which didnt work, so I'm assuming that theres a more complicated process for adding this. 

Any suggestions for how to fix this and what I'm doing wrong?

Offline Mantar

  • NPC
  • **
  • Posts: 120
  • NOMAD
    • View Profile
Re: Compiling on linux with tiles causes SDL issues
« Reply #1 on: September 17, 2017, 05:25:08 AM »
Use your distro's package manager and get the dev packages for the sdl2 image and ttf libraries. That will install the necessary headers, in the correct versions, to the right locations.

Offline condortaco

  • Zombie Food
  • *
  • Posts: 16
    • View Profile
Re: Compiling on linux with tiles causes SDL issues
« Reply #2 on: September 17, 2017, 11:22:59 PM »
I tried using synaptic pkg manager for that but those libraries never came up in search.  However that line of thinking led me down the path of learning how to compile and install the desired libraries from the libsdl site.  I found this guide https://askubuntu.com/questions/344512/what-is-the-general-procedure-to-install-development-libraries-in-ubuntu, and installed both missing packages.  After running 'make clean' I managed to get it to compile with tiles.