Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qubodup opened this issue Apr 14, 2015 · 4 comments

Comments

@qubodup
Copy link

qubodup commented Apr 14, 2015

Hi, I'm trying to compile ffplay for CodeBreach
core-code/CoreBreach#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
Copy link
Owner

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
Copy link
Owner

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

@qubodup
Copy link
Author

qubodup commented Apr 14, 2015

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants