qyot27 / mpv

Video player based on MPlayer/mplayer2
Other
2 stars 1 forks source link

undefined reference to `__imp_vsscript_init' #4

Closed sofakng closed 4 years ago

sofakng commented 4 years ago

I"m trying to re-create your script by manually running the steps and I was able to cross-compile Python 3.8.2 and VapourSynth (R49-RC1) but when mpv tries to link everything I get the following errors:

video/filter/vf_vapoursynth.c.20.o: In function 'drv_vss_init': /usr/local/src/mingw32/mpv/build/../../../mpv/video/filter/vf_vapoursynth.c:814: undefined reference to '__imp_vsscript_init'

...and a bunch of other undefined references to __impvsscript*.

Any idea what might be causing this? I can see it's linking with "-lvapoursynth' and '-lvapoursynth-script'

qyot27 commented 4 years ago

mingw32? If this is a 32-bit build, that will fail. There's a note about that in the build instructions.

sofakng commented 4 years ago

no, I'm using 64-bit. (MXE, x86_64-w64-mingw32.static)

qyot27 commented 4 years ago

Has -DVS_CORE_EXPORTS been passed to FFmpeg and mpv?

sofakng commented 4 years ago

EDIT: Ignore this. It seems like maybe a problem zimg now (when trying to compile ffmpeg). This might take a while to figure out...

sofakng commented 4 years ago

I've been able to figure it out and was user error. (i.e. my fault!)