linux - Undefined reference when building libvpx -
i trying build libvpx static library, later used in ffmpeg build , having trouble. version of libvpx using 1.6.0.
here's config: ./configure --prefix=/home/test/dev/build-x64/libvpx/ --enable-static --disable-shared --target=x86_64-linux-gcc
and during make, there lots of errors being dumped on screen:
[ld] test_libvpx test/add_noise_test.cc.o: in function `(anonymous namespace)::gtest_caddnoisetest_evalgenerator_()': add_noise_test.cc:(.text+0x342): undefined reference `vpx_plane_add_noise_c' test/add_noise_test.cc.o: in function `(anonymous namespace)::gtest_sse2addnoisetest_evalgenerator_()': add_noise_test.cc:(.text+0x492): undefined reference `vpx_plane_add_noise_sse2' test/add_noise_test.cc.o: in function `(anonymous namespace)::addnoisetest_checkcvsassembly_test::testbody()': add_noise_test.cc:(.text+0x2437): undefined reference `vpx_setup_noise' add_noise_test.cc:(.text+0x2448): undefined reference `vpx_calloc' add_noise_test.cc:(.text+0x245a): undefined reference `vpx_calloc' add_noise_test.cc:(.text+0x2779): undefined reference `vpx_plane_add_noise_c' add_noise_test.cc:(.text+0x2934): undefined reference `vpx_free' add_noise_test.cc:(.text+0x293c): undefined reference `vpx_free' (...and lot more.)
recognising error started tests, tried disabling unit test: ./configure --prefix=/home/test/dev/build-x64/libvpx/ --enable-static --disable-shared --target=x86_64-linux-gcc --disable-unit-tests
and got instead: (...lots of lines...) [cc] examples/resize_util.c.o [ld] examples/resize_util examples/resize_util.c.o: in function main': resize_util.c:(.text.startup+0x1e8): undefined reference to
vp9_resize_frame420' collect2: error: ld returned 1 exit status make[1]: * [examples/resize_util] error 1 make: * [.default] error 2
i have libogg 1.3.1 , libvorbis 1.3.2 on computer. (not sure if they're used @ all.)
i'm stumped, , appreciate guidance here.
some files earlier builds still present (libs-armv7-linux-gcc.mk), despite having called make clean
earlier.
i decided give 1 last shot, starting on in new directory , worked. files earlier build might interfering somehow. should have used make distclean
instead.
Comments
Post a Comment