dav1d.js icon indicating copy to clipboard operation
dav1d.js copied to clipboard

Build fail undefined references

Open jlb6740 opened this issue 4 years ago • 0 comments

Hi @Kagami .. there is a build failure out of the box. Either make test or make all. Seems src/lib.c is not being linked in?

With make test:

~/dav1d.js_again$ make test cc dav1d.c -O2 -Wall -o test
-I../tmp/dav1d/dist/include -L../tmp/dav1d/dist/lib64
-ldav1d -lpthread /tmp/ccn8CmFj.o: In function djs_init': dav1d.c:(.text+0x3f): undefined reference to dav1d_default_settings' dav1d.c:(.text+0x4a): undefined reference to dav1d_open' /tmp/ccn8CmFj.o: In function djs_free': dav1d.c:(.text+0x95): undefined reference to dav1d_close' /tmp/ccn8CmFj.o: In function djs_decode_obu': dav1d.c:(.text+0x13a): undefined reference to dav1d_data_wrap' dav1d.c:(.text+0x146): undefined reference to dav1d_send_data' dav1d.c:(.text+0x15c): undefined reference to dav1d_get_picture' dav1d.c:(.text+0x2e6): undefined reference to dav1d_picture_unref' dav1d.c:(.text+0x662): undefined reference to dav1d_picture_unref' /tmp/ccn8CmFj.o: In function main': dav1d.c:(.text.startup+0x11a): undefined reference to `dav1d_close' collect2: error: ld returned 1 exit status Makefile:25: recipe for target 'test' failed make: *** [test] Error 1

With make all, the initial error is not finding libdav1d.a under build/dist/lib64 ... instead it is under build/dist/lib/ but once this is corrected in the makefile, the same linking error above shows.

To be honest I really don't know what this code is supposed to do but I am looking for a way to compare the performance of dav1d built to and run as wasm compared to being run natively and to do this outside of the browser. That is I'd like to run the wasm in node and collect some sort of performance number and compared that to the same code compiled and run natively on the same platform.

jlb6740 avatar Sep 30 '20 18:09 jlb6740