Re: [LAU] Building ffmpeg (was: Building avplay)

From: jonetsu <jonetsu@email-addr-hidden>
Date: Fri Oct 07 2016 - 18:16:19 EEST

On Fri, 7 Oct 2016 15:49:07 +0200
Tito Latini <tito.01beta@gmail.com> wrote:

> it depends on SDL, 1.2.1 <= version < 1.3.0

Now with ffmpeg from git, the same problem happens. Obviously, SDL and
its development are installed since libav built just fine. I would
have thought that after this ffmpeg would build just fine with ffplay,
but that's not the case. The configuration stage reports clearly:

SDL2 support no

So let's try:

% ./configure --enable-shared --enable-sdl2
% make

  libavdevice/sdl2.c:26:17: fatal error: SDL.h: no such file

% dpkg -L libsdl1.2-dev | grep SDL
  [..]
  /usr/include/SDL/SDL.h
  [..]

Adding the actual path in sdl2.c does not solve the problem:

#include </usr/include/SDL/SDL.h>
#include </usr/include/SDL/SDL_thread.h>

% make clean
same configure as above
% make

[...]
CC libavdevice/sdl2.o
libavdevice/sdl2.c:44:5: error: unknown type name ‘SDL_Window’
     SDL_Window *window;
[...]

As now the SDL binaries are not seen by ffmpeg.

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Oct 8 00:15:02 2016

This archive was generated by hypermail 2.1.8 : Sat Oct 08 2016 - 00:15:02 EEST