Project

General

Profile

Problems running autobuild script

Added by Wim K about 7 years ago

Everytime I want to make a new build, I'm having the same problems. After numerous attempts I succeed every time (without noticing a difference), but I would like to know what I'm doing wrong.

This is what I do:
1. cd /home/wim
2. su (change to user root)
3. git clone https://github.com/tvheadend/tvheadend.git build/tvheadend/master
4. cd build/tvheadend/master
5. AUTOBUILD_CONFIGURE_EXTRA="--disable-dvbscan --disable-libvpx --disable-libvpx_static --disable-bintray_cache --enable-hdhomerun_client --disable-libvpx --disable-libx265 --disable-libx265_static --disable-libffmpeg_static"
6. ./Autobuild.sh
7. install missing dependencies
8. ./Autobuild.sh

This fails, ending with:

make -f Makefile.ffmpeg
make3: Map '/home/wim/build/tvheadend/master' wordt binnengegaan
cd /home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1 && \
ASFLAGS="-DENABLE_PIC=1 -DPIC=1" FFMPEG_PREFIX=/home/wim/build/tvheadend/master/build.linux/ffmpeg/build/ffmpeg PKG_CONFIG=/home/wim/build/tvheadend/master/support/pkg-config.ffmpeg ./configure --prefix=/ffmpeg --enable-static --disable-shared \
--extra-cflags="-fPIE" \
--disable-examples \
--disable-docs \
--disable-unit-tests \

disabling shared
disabling examples
disabling docs
disabling unit_tests
enabling vp8_encoder
enabling vp8_decoder
enabling vp9_encoder
enabling vp9_decoder
Configuring for target 'armv7-linux-gcc'
enabling armv7
enabling neon
enabling neon_asm
enabling webm_io
enabling libyuv
Creating makefiles for armv7-linux-gcc libs
Creating makefiles for armv7-linux-gcc tools
DIST_DIR=/home/wim/build/tvheadend/master/build.linux/ffmpeg/build/ffmpeg \
make -C /home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1 install
make[4]: Map '/home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1' wordt binnengegaan
[DEP] vpx_config.c.d
[CC] vpx_config.c.o
[AS] vpx_dsp/arm/intrapred_neon_asm.asm.S.o
as: onbekende optie '-ENABLE_PIC=1'
Makefile:190: recept voor doel 'vpx_dsp/arm/intrapred_neon_asm.asm.S.o' is mislukt
make[5]: * [vpx_dsp/arm/intrapred_neon_asm.asm.S.o] Fout 1
Makefile:17: recept voor doel '.DEFAULT' is mislukt
make[4]:
[.DEFAULT] Fout 2
make[4]: Map '/home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1' wordt verlaten
Makefile.ffmpeg:310: recept voor doel '/home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1/.tvh_build' is mislukt
make[3]:
[/home/wim/build/tvheadend/master/build.linux/ffmpeg/libvpx-1.6.1/.tvh_build] Fout 2
make[3]: Map '/home/wim/build/tvheadend/master' wordt verlaten
Makefile:832: recept voor doel '/home/wim/build/tvheadend/master/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a' is mislukt
make[2]:
[/home/wim/build/tvheadend/master/build.linux/ffmpeg/build/ffmpeg/lib/libavcodec.a] Fout 2
make[2]: Map '/home/wim/build/tvheadend/master' wordt verlaten
debian/rules:11: recept voor doel 'override_dh_auto_build' is mislukt
make[1]:
[override_dh_auto_build] Fout 2
make[1]: Map '/home/wim/build/tvheadend/master' wordt verlaten
debian/rules:5: recept voor doel 'build' is mislukt
make: *
[build] Fout 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

I think the the problem is this (below is part of the output):
Options:
pie yes
ccdebug no
cwc yes
cccam yes
capmt yes
constcw yes
linuxdvb yes
satip_server yes
satip_client yes
hdhomerun_client yes
hdhomerun_static yes
iptv yes
tsfile yes
dvbscan yes
timeshift yes
trace yes
imagecache yes
avahi yes
zlib yes
libav yes
ffmpeg_static yes
libx264 yes
libx264_static yes
libx265 yes
libx265_static yes
libvpx yes
libvpx_static yes

The script doesn't seem to do what I ask (disabling ffmpeg, dvbscan, libvpx, etc)!

What am I doing wrong here?

Please help.

Wim


Replies (6)

RE: Problems running autobuild script - Added by Mark Clarkstone about 7 years ago

the extra configure lines and script should be on one line.

AUTOBUILD_CONFIGURE_EXTRA=disable-dvbscan\ --disable-libvpx\ --disable-libvpx_static\ --disable-bintray_cache\ --enable-hdhomerun_client\ --disable-libvpx\ --disable-libx265\ --disable-libx265_static\ --disable-libffmpeg_static ./Autobuild.sh

RE: Problems running autobuild script - Added by Wim K about 7 years ago

Mark, you're my hero (again).

Just 1 other quick question: nowadays it's all about systemd instead of initd.
If I want to use systemd, should I NOT use the autobuild script (or still use it but only delete tvheadend in folder initd and add a systemd service?)
(And could you point me a direction where to find what should be inside the tvheadend service file?)

Greetings,

Wim

RE: Problems running autobuild script - Added by Mark Clarkstone about 7 years ago

Wim K wrote:

Mark, you're my hero (again).

Just 1 other quick question: nowadays it's all about systemd instead of initd.
If I want to use systemd, should I NOT use the autobuild script (or still use it but only delete tvheadend in folder initd and add a systemd service?)

systemd works fine with the initd scripts AFAIA. If you want to use a service file you can do.

(And could you point me a direction where to find what should be inside the tvheadend service file?)

Systemd seems to be rather simple. A quick search for the forums revealed this. That should give you some idea :)

Greetings,

Wim

RE: Problems running autobuild script - Added by Wim K about 7 years ago

Mark Clarkstone wrote:

systemd works fine with the initd scripts AFAIA. If you want to use a service file you can do.

I was concerned that using a systemd service file would start tvheadend at boot, while the initd entry also does that. There would be 2 processes started. Am I wrong here?

RE: Problems running autobuild script - Added by Mark Clarkstone about 7 years ago

Wim K wrote:

Mark Clarkstone wrote:

systemd works fine with the initd scripts AFAIA. If you want to use a service file you can do.

I was concerned that using a systemd service file would start tvheadend at boot, while the initd entry also does that. There would be 2 processes started. Am I wrong here?

Yes that is true. You could just stop the init script from executing by using chmod -x /etc/init.d/tvheadend.

    (1-6/6)