dav1d.js
dav1d.js copied to clipboard
Build fail undefined references
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 functiondjs_init': dav1d.c:(.text+0x3f): undefined reference to
dav1d_default_settings' dav1d.c:(.text+0x4a): undefined reference todav1d_open' /tmp/ccn8CmFj.o: In function
djs_free': dav1d.c:(.text+0x95): undefined reference todav1d_close' /tmp/ccn8CmFj.o: In function
djs_decode_obu': dav1d.c:(.text+0x13a): undefined reference todav1d_data_wrap' dav1d.c:(.text+0x146): undefined reference to
dav1d_send_data' dav1d.c:(.text+0x15c): undefined reference todav1d_get_picture' dav1d.c:(.text+0x2e6): undefined reference to
dav1d_picture_unref' dav1d.c:(.text+0x662): undefined reference todav1d_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.