This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Possible 2 bugs in Linux & vapoursynth
#4
Hi,

A solution may be :

ghdl HolyWu/L-SMASH-Works
ghdl l-smash/l-smash

./configure --prefix="$vsprefix" --extra-cflags="$CFLAGS" || cat config.log
make -j$JOBS lib
cp liblsmash.a ..

cd ../VapourSynth

mv meson.build meson.build.ORIGINAL
sed < meson.build.ORIGINAL > meson.build \
-e "/vapoursynth_dep *=/i\
liblsmash_dep = declare_dependency(link_args : ['-L../../build', '-llsmash'],\\
                                   include_directories : ['../../build'])\n" \
-e "s/dependency('liblsmash')/liblsmash_dep/g"

if [ -z "$vsprefix" ]; then
    vsprefix="/usr/local"
fi

CFLAGS="$CFLAGS -Wno-deprecated-declarations" meson build --prefix="$vsprefix"
ninja -C build -j $JOBS

cp build/libvslsmashsource.so ../libvslsmashsource.so
cd ..
finish libvslsmashsource.so
The file meson.build uses the very strict keyword "dependency" for liblsmash.
It's useful only for official library, dpkg declared, usually dynamic.

My solution is to hack this file and replaces dependency by declare_dependency, which accepts
link and include directories. This line is included by sed before the declaration of
the vapoursynth dependencies.

I have to include and link two levels up, because ninja creates another build subdirectory.

vsprefix is empty in the shell (why ? not exported ? only for tests ?). Meson doesn't accept empty
prefix, so in this case I put it to the default /usr/local.

Vapoursynth is a fantastic toolbox; it would be a pity to lose it to Linux.

All the best,

Alain
--
Reply


Messages In This Thread
Possible 2 bugs in Linux & vapoursynth - by ALM - 10.06.2020, 00:27
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 12.06.2020, 18:29
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 12.06.2020, 20:03
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 13.06.2020, 16:12
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 13.06.2020, 16:28
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 13.06.2020, 20:44
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 15.06.2020, 18:27
RE: Possible 2 bugs in Linux & vapoursynth - by ALM - 16.06.2020, 01:41

Forum Jump:


Users browsing this thread: 3 Guest(s)