Bug#993791: obs-plugins: Please, add move-transition to plugins
Hi again Sebastian,
Em qua., 8 de set. de 2021 às 08:16, Eriberto
<eriberto@eriberto.pro.br> escreveu:
> > > 2. I think I found a mistake in libobs-dev. All headers are in
> > > /usr/include/obs/, however the /usr/include/obs/obs-frontend-api.h has
> > > two includes pointing to /usr/include/. IMHO, the fix for this is:
> > >
> > > --- obs-frontend-api.h.orig 2021-09-06 23:17:30.132174882 -0300
> > > +++ obs-frontend-api.h 2021-09-06 23:17:04.324371729 -0300
> > > @@ -1,7 +1,7 @@
> > > #pragma once
> > >
> > > -#include <obs.h>
> > > -#include <util/darray.h>
> > > +#include <obs/obs.h>
> > > +#include <obs/util/darray.h>
My last solution will generate a FTBFS because OBS uses
obs-frontend-api.h when building. My new and tested solution was
adding two "sed" in debian/rules on target override_auto_install:
override_dh_install:
mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg
mv debian/tmp/usr/bin/obs-ffmpeg-mux \
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux
dh_install
rm -rf debian/obs-studio/usr/share/obs/obs-studio/license
sed -i 's/#include <obs.h>/#include <obs\/obs.h>/'
debian/libobs-dev/usr/include/obs/obs-frontend-api.h
sed -i 's/#include <util\/darray.h>/#include
<obs\/util\/darray.h>/'
debian/libobs-dev/usr/include/obs/obs-frontend-api.h
Cheers,
Eriberto
Reply to: