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

error building lsw - error: ‘CODEC_CAP_DR1’ undeclared #273

Closed
hydra3333 opened this issue Oct 28, 2017 · 3 comments
Closed

error building lsw - error: ‘CODEC_CAP_DR1’ undeclared #273

hydra3333 opened this issue Oct 28, 2017 · 3 comments

Comments

@hydra3333
Copy link

hydra3333 commented Oct 28, 2017

Hello. Anyone else seen any error similar to this whilst building lsw ? It worked a week or three ago.

===================================================================================================
do_make "" "" ""
/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/win32/lsw/VapourSynth
===================================================================================================

making /home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/win32/lsw/VapourSynth as $ PATH=/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/bin:$PATH make  -j 2

/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Os -ffast-math -Wall -std=c99 -pedantic -I. -I. -D__USE_MINGW_ANSI_STDIO=1 -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include  -fexcess-precision=fast -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include -c lsmashsource.c -o lsmashsource.o
/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Os -ffast-math -Wall -std=c99 -pedantic -I. -I. -D__USE_MINGW_ANSI_STDIO=1 -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include  -fexcess-precision=fast -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include -c video_output.c -o video_output.o
video_output.c: In function ‘vs_check_dr_available’:
video_output.c:571:38: error: ‘CODEC_CAP_DR1’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DR1’?
     if( !(ctx->codec->capabilities & CODEC_CAP_DR1) )
                                      ^~~~~~~~~~~~~
                                      AV_CODEC_CAP_DR1
video_output.c:571:38: note: each undeclared identifier is reported only once for each function it appears in
/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -Os -ffast-math -Wall -std=c99 -pedantic -I. -I. -D__USE_MINGW_ANSI_STDIO=1 -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include  -fexcess-precision=fast -I/home/u/Desktop/ffmpeg-windows-build-helpers-withOpenCL-master/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32/include -c libavsmash_source.c -o libavsmash_source.o
GNUmakefile:27: recipe for target 'video_output.o' failed
make: *** [video_output.o] Error 1
make: *** Waiting for unfinished jobs....
build_lsw() {
echo "---------------------------------------------------------------------------------------------------"
echo "---------------------------------------------------------------------------------------------------"
echo "build_lsw \"${1}\""
echo "---------------------------------------------------------------------------------------------------"
echo "---------------------------------------------------------------------------------------------------"
   # Build L-Smash-Works, which are plugins based on lsmash
   #build_ffmpeg static # dependency, assume already built
   build_lsmash # dependency
   do_git_checkout https://github.com/VFR-maniac/L-SMASH-Works.git lsw
   cd lsw/VapourSynth
     do_configure "--prefix=$mingw_w64_x86_64_prefix --cross-prefix=$cross_prefix --target-os=mingw"
     #generic_configure "--prefix=$mingw_w64_x86_64_prefix --cross-prefix=$cross_prefix --target-os=mingw "
     do_make_and_make_install
     # AviUtl is 32bit-only
     if [ "$bits_target" = "32" ]; then
       cd ../AviUtl # move sideways to the AviUtl folder
       do_configure "--prefix=$mingw_w64_x86_64_prefix --cross-prefix=$cross_prefix"
       #generic_configure "--prefix=$mingw_w64_x86_64_prefix --cross-prefix=$cross_prefix "
       do_make
     fi
   cd ../..
   #read -p "after build_lsw - Press Enter to continue... or control-C if not happy"
}

I currently build lsw, based on good advice from rdp, as a part of building x264 32bit and 64bit which can input and output containers like .mpg and .mp4 directly.

@hydra3333
Copy link
Author

hydra3333 commented Oct 28, 2017

VFR-maniac/L-SMASH-Works#73

appears to build with some minor patches
VFR-maniac/L-SMASH-Works#75

@hydra3333
Copy link
Author

Looks like no one is home at https://github.com/VFR-maniac/L-SMASH-Works so there's an interim fork with the patch at https://github.com/hydra3333/L-SMASH-Works

@MaverickTse
Copy link
Contributor

MaverickTse commented Feb 21, 2018

As of 2018 Feb, there are one undefined variable each for AviUtl and VapourSynth. However I don't think you need to modify all involved files. Just need to modify a header file in each folder.
For your reference:
https://github.com/MaverickTse/lsw-build3/LSWAviUtl_input_buffer_padding_size_20180220.patch applies to LSW/common
while
https://github.com/MaverickTse/lsw-build3/blob/master/LSWVAP_CODEC_CAP_DR1.patch applies to /LSW/VapourSynth

Sooner or later LSW is going to break completely if unmaintained, as there are already loads of deprecation warnings during build.

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