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 #73

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

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

hydra3333 opened this issue Oct 28, 2017 · 4 comments

Comments

@hydra3333
Copy link
Contributor

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.

Reference at rdp/ffmpeg-windows-build-helpers#273

@hydra3333
Copy link
Contributor Author

hydra3333 commented Oct 28, 2017

appears to build with some minor patches per this pull request #75

@hydra3333
Copy link
Contributor Author

One could also choose to update vapoursynth.h to the latest version as well ... it appears to be compatible
Source at
https://raw.githubusercontent.com/VFR-maniac/L-SMASH-Works/master/VapourSynth/VapourSynth.h

@hydra3333
Copy link
Contributor Author

hydra3333 commented Dec 24, 2017

patch applied at fork https://github.com/hydra3333/L-SMASH-Works until the pull request here is done.
Not all that hopeful, this appears to be no longer maintained ?

@hydra3333
Copy link
Contributor Author

looks to be fixed now thank you

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

1 participant