core-code / ffplaylib

ffplaylib is a collection of code that allows SDL based fullscreen apps to show videos using ffmpeg. The main use case is games that want to show cut-scene videos.
5 stars 1 forks source link

Compile on Linux fails - libavcodec/colorspace.h: No such file or directory #1

Open qubodup opened 9 years ago

qubodup commented 9 years ago

Hi, I'm trying to compile ffplay for CodeBreach https://github.com/core-code/CoreBreach/issues/3

I added -I/usr/include/SDL -I/usr/include/ to the makefile : http://codepad.org/xHTojStL

It seems like colorspace.h isn't packaged in ffmpeg on Arch Linux. I downloaded some source packages (0.9, 1.0, 1.1.12, 2.6.2). In all of those, the file is in libavutil/ but ffplaylib expects it to be in libavcodec/

Note: If I get ffmpeg 2.6.2 sources and include libavutil/, there are function erros: http://codepad.org/w7Wwp9Eh . Is there a ffmpeg version known to work?

core-code commented 9 years ago

compiling ffmpay is probably hard since ffmpeg changes API every version and they had about 30 releases since then ;) we used version 0.8 of ffmpeg back in the day

core-code commented 9 years ago

i'd try this version https://www.ffmpeg.org/releases/ffmpeg-0.8.15.tar.gz and copy the header to libavcodec/

qubodup commented 9 years ago

Thanks for all the help! I got 0.8.15 but not surprisingly it doesn't work:

  1. copy libavutils/ to ffplay/libavcodec/ make output: http://codepad.org/MEnQ3jDn
  2. copy libavcodec/ to ffplay/libavcodec/ and libavutils/colorspace.h to ffplay/libavcodec/ make output: http://codepad.org/uDUdvqJd

Since my main goal is to run CoreBreach, it looks like the remaining options are:

  1. Enhance ffplay to work with recent ffmpeg
  2. Set up a system with old enough compiler and libraries
  3. Install old ffmpeg version and hope it runs
  4. Try to remove ffplay from CoreBreach

I'll try 3 and 4.

core-code commented 9 years ago

Am 14.04.2015 um 19:39 schrieb Iwan Gabovitch notifications@github.com:

Thanks for all the help! I got 0.8.15 but not surprisingly it doesn't work:

  1. copy libavutils/ to ffplay/libavcodec/ make output: http://codepad.org/MEnQ3jDn
  2. copy libavcodec/ to ffplay/libavcodec/ and libavutils/colorspace.h to ffplay/libavcodec/ make output: http://codepad.org/uDUdvqJd

Since my main goal is to run CoreBreach, it looks like the remaining options are:

  1. Enhance ffplay to work with recent ffmpeg
  2. Set up a system with old enough compiler and libraries
  3. Install old ffmpeg version and hope it runs

this looks like the easiest version just use the prebuilt ffplay and link against ffmpeg 0.8 to be installed on your system

  1. Try to remove ffplay from CoreBreach

doesn't look too difficult i could be of help here