• Guo, Yejun's avatar
    FATE/dnn: let fate/dnn tests depend on ffmpeg static libraries · d0fa1a58
    Guo, Yejun authored
    background:
    DNN (deep neural network) is a sub module of libavfilter, and FATE/dnn
    is unit test for the DNN module, one unit test for one dnn layer.
    The unit tests are not based on the APIs exported by libavfilter,
    they just directly call into the functions within DNN submodule.
    
    There is an issue when run the following command:
    build$ ../ffmpeg/configure --disable-static --enable-shared
    make
    make fate-dnn-layer-pad
    
    And part of error message:
    tests/dnn/dnn-layer-pad-test.o: In function `test_with_mode_symmetric':
    /work/media/ffmpeg/build/src/tests/dnn/dnn-layer-pad-test.c:73: undefined reference to `dnn_execute_layer_pad'
    
    The root cause is that function dnn_execute_layer_pad is a LOCAL symbol
    in libavfilter.so, and so the linker could not find it when build dnn-layer-pad-test.
    To check it, just run: readelf -s libavfilter/libavfilter.so | grep dnn
    
    So, add dependency in fate/dnn Makefile with ffmpeg static libraries.
    This is the same method used in fate/checkasm
    Signed-off-by: 's avatarGuo, Yejun <yejun.guo@intel.com>
    Signed-off-by: 's avatarPedro Arthur <bygrandao@gmail.com>
    d0fa1a58
Name
Last commit
Last update
..
api Loading commit data...
checkasm Loading commit data...
dnn Loading commit data...
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
audiomatch.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
extended.ffconcat Loading commit data...
fate-run.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
md5.sh Loading commit data...
refcmp-metadata.awk Loading commit data...
reference.pnm Loading commit data...
rotozoom.c Loading commit data...
simple1.ffconcat Loading commit data...
simple2.ffconcat Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...