Menu

#576 Build fails on OpenBSD

closed-fixed
nobody
None
5
2015-06-28
2014-02-18
No

I'm in the process of updating OpenBSD's alephone package from 1.0.2 to 1.1. OpenBSD's ffmpeg package is a snapshot from 2013-12-16.

cc -DHAVE_CONFIG_H -I. -I../.. -I../../Source_Files/CSeries -I../../Source_Files/Files -I../../Source_Files/GameWorld -I../../Source_Files/Input -I../../Source_Files/Misc -I../../Source_Files/ModelView -I../../Source_Files/Network -I../../Source_Files/Sound -I../../Source_Files/RenderMain -I../../Source_Files/RenderOther -I../../Source_Files/XML -I../../Source_Files -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/opus -I/usr/local/include/schroedinger-1.0 -I/usr/local/include/orc-0.4 -I/usr/local/include -I/usr/local/include/libpng16 -I/usr/local/include  -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -DSDL -std=c99 -O2 -pipe -g -MT SDL_ffmpeg.o -MD -MP -MF .deps/SDL_ffmpeg.Tpo -c -o SDL_ffmpeg.o SDL_ffmpeg.c
SDL_ffmpeg.c: In function 'SDL_ffmpegFree':
SDL_ffmpeg.c:327: warning: 'av_close_input_file' is deprecated (declared at /usr/local/include/libavformat/avformat.h:1689)
SDL_ffmpeg.c: In function 'SDL_ffmpegDecodeAudioFrame':
SDL_ffmpeg.c:2039: warning: 'avcodec_decode_audio3' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3996)
mv -f .deps/SDL_ffmpeg.Tpo .deps/SDL_ffmpeg.Po
c++ -DHAVE_CONFIG_H -I. -I../.. -I../../Source_Files/CSeries -I../../Source_Files/Files -I../../Source_Files/GameWorld -I../../Source_Files/Input -I../../Source_Files/Misc -I../../Source_Files/ModelView -I../../Source_Files/Network -I../../Source_Files/Sound -I../../Source_Files/RenderMain -I../../Source_Files/RenderOther -I../../Source_Files/XML -I../../Source_Files -D__STDC_CONSTANT_MACROS -I/usr/local/include -I/usr/local/include/opus -I/usr/local/include/schroedinger-1.0 -I/usr/local/include/orc-0.4 -I/usr/local/include -I/usr/local/include/libpng16 -I/usr/local/include  -I/usr/local/include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -DXTHREADS -DSDL  -O2 -pipe -g -MT Movie.o -MD -MP -MF .deps/Movie.Tpo -c -o Movie.o Movie.cpp
Movie.cpp: In member function 'bool Movie::Setup()':
Movie.cpp:494: error: 'struct AVStream' has no member named 'quality'
Movie.cpp: In member function 'void Movie::EncodeVideo(bool)':
Movie.cpp:618: warning: 'avcodec_encode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4419)
Movie.cpp:620: warning: 'avcodec_encode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4419)
Makefile:298: recipe for target 'Movie.o' failed
gmake[3]: *** [Movie.o] Error 1

Looks like quality was removed from AVStream in this upstream commit:

https://git.videolan.org/?p=ffmpeg.git;a=commit;h=b32e30faa17939a8b98062f6219cc4574517f697

Discussion

  • xenphor

    xenphor - 2014-02-20

    I think I may have a similar error in Fedora 20 64bit

    log http://pastebin.com/rd0ixFcG

     
  • Gregory Smith

    Gregory Smith - 2014-02-20

    This is fixed in trunk, but it didn't make it into 1.1

    https://sourceforge.net/p/marathon/code/5002/

    Try that patch

     
  • xenphor

    xenphor - 2014-02-21

    still get an error
    http://pastebin.com/ZRvQYPQF

     
  • Anthony J. Bentley

    With the patch from r5002, I can build alephone-1.1 on OpenBSD just fine.

     
  • xenphor

    xenphor - 2014-03-06

    Well I've tried again, after making the change, this time with Archlinux but still get an error:
    http://pastebin.com/h5BY4FeU

     
  • carstene1ns

    carstene1ns - 2014-03-16

    I have recently adopted the alephone AUR package.
    To compile it successfully I had to add a define that has been removed from upstream. It is just a magic number that resolves to "1 second of 48khz 32bit audio" and can be used as is.

     
  • xenphor

    xenphor - 2014-03-16

    Thanks that worked. Although I get this warning:
    libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

    but still works

     
  • Jeremiah Morris

    Jeremiah Morris - 2015-06-28

    Aleph One 1.2 (20150619) compiles on a wider range of ffmpeg/libav versions. If you run into problems with this or later releases, please open a new ticket.

     
  • Jeremiah Morris

    Jeremiah Morris - 2015-06-28
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB