Results 1 to 3 of 3

Thread: Missing SDL header: SDL2/SDL_ttf.h

  1. #1
    Join Date
    Sep 2021
    Beans
    2

    Missing SDL header: SDL2/SDL_ttf.h

    I already ran:

    sudo apt-get install libSDL2-ttf-2.0-0

    I tried to find the .h file:

    pc2@pc:~$ find /usr|grep SDL_ttf.h
    pc2@pc:~$ locate SDL_ttf.h
    pc2@pc:~$ locate SDL2.h
    pc2@pc:~$ locate SDL.h
    /home/pc2/Desktop/MAME_Test/Make_MAME/mame/3rdparty/SDL2/include/SDL.h
    /home/pc2/Desktop/MAME_Test/Make_MAME/mame/build/generated/includes/SDL2/SDL.h
    /usr/include/SDL/SDL.h
    pc2@pc:~$

    In the bigger picture, I'm trying to build the modified MAME here, using the author's provided makefile:

    $git clone https://github.com/M-J-Murray/mame.git
    $cd mame
    $make SUBTARGET=arcade -j8

    After a few minutes of work, the build stops with a fatal error:
    #include <SDL2/SDL_ttf.h> ... fatal error: SDL2/SDL_ttf.h: No such file or directory.

    Python 3.8.10
    Ubuntu 20.04.2 LTS

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    12,302
    Distro
    Ubuntu

    Re: Missing SDL header: SDL2/SDL_ttf.h

    Header files come with the -dev packages
    try
    Code:
    sudo apt install libsdl2-ttf-dev
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Sep 2021
    Beans
    2

    Re: Missing SDL header: SDL2/SDL_ttf.h

    Thank you. The makefile is continuing on now.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •