silicontrip / lavtools

mjpeg utils and avcodec frame based video editing tools and ffmpeg filters
15 stars 3 forks source link

fatal error: Libyuv.h: No such file or directory #13

Closed Nikoli closed 10 years ago

Nikoli commented 10 years ago

Several targets try to use Libyuv.h, but it is not part of this git repo:

$ make clean;CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ CFLAGS="-march=corei7-avx -O2 -pipe" CXXFLAGS="-march=corei7-avx -O2 -pipe" LDFLAGS="-Wl,--hash-style=gnu" make -j9 yuvfieldseperate
rm -f *.o libav-bitrate yuvaddetect yuvadjust yuvaifps yuvconvolve yuvcrop yuvdeinterlace yuvdiff yuvfade yuvhsync yuvrfps yuvtshot yuvwater yuvbilateral yuvtbilateral yuvdiag yuvpixelgraph yuvfieldrev yuvtout yuvyadif yuvnlmeans yuvvalues metadata-example yuvilace libav2yuv libavmux
x86_64-pc-linux-gnu-g++ -march=corei7-avx -O2 -pipe -I/usr/include/mjpegtools -I/usr/include/freetype2 -D__STDC_CONSTANT_MACROS  -c -o yuvfieldseperate.o yuvfieldseperate.cpp
make: *** No rule to make target `Libyuv.o', needed by `yuvfieldseperate'.  Stop.
make: *** Waiting for unfinished jobs....
yuvfieldseperate.cpp:27:20: fatal error: Libyuv.h: No such file or directory
compilation terminated.
make: *** [yuvfieldseperate.o] Error 1
$ make clean;CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ CFLAGS="-march=corei7-avx -O2 -pipe" CXXFLAGS="-march=corei7-avx -O2 -pipe" LDFLAGS="-Wl,--hash-style=gnu" make -j9 yuvopencv
rm -f *.o libav-bitrate yuvaddetect yuvadjust yuvaifps yuvconvolve yuvcrop yuvdeinterlace yuvdiff yuvfade yuvhsync yuvrfps yuvtshot yuvwater yuvbilateral yuvtbilateral yuvdiag yuvpixelgraph yuvfieldrev yuvtout yuvyadif yuvnlmeans yuvvalues metadata-example yuvilace libav2yuv libavmux
x86_64-pc-linux-gnu-g++ -march=corei7-avx -O2 -pipe -I/usr/include/mjpegtools -I/usr/include/freetype2 -D__STDC_CONSTANT_MACROS  -c -o yuvopencv.o yuvopencv.cpp
make: *** No rule to make target `Libyuv.o', needed by `yuvopencv'.  Stop.
make: *** Waiting for unfinished jobs....
yuvopencv.cpp:27:20: fatal error: Libyuv.h: No such file or directory
compilation terminated.
make: *** [yuvopencv.o] Error 1
silicontrip commented 10 years ago

Not quite sure how to address this one. It's part of libav2yuv repository. Not sure how to link the files from one repository to another.

Nikoli commented 10 years ago

http://git-scm.com/docs/git-submodule

Or better use it as shared lib.

silicontrip commented 10 years ago

It's two C++ files that could be added to this project but I'd like them to stay up to date with the libav2yuv code. I've added a submodule and updated the Makefile accordingly. This should resolve the issue.

Nikoli commented 10 years ago

Now it builds :)

Nikoli commented 10 years ago

But the name for dir is not good: it conflicts with libav2yuv.c, so 'make libav2yuv' will fail.