How to compile DVBlast from source code for ARM processors

DVBlast for ARM processors

Hossein Abbasi
2 min readOct 25, 2018
Image via videolan.org

It’s assumed you’ve installed gcc arm, but if you haven’t:

sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install g++-arm-linux-gnueabi
sudo apt-get install build-essential

Then get the DVBlast source code:

wget https://get.videolan.org/dvblast/3.0/dvblast-3.0.tar.bz2

Note: The latest version when writing this article is 3.4.

DVBlast has one build dependency (bitStream):

sudo apt-get install ttf-bitstream-vera

But above command will install bitstream for the default gcc. We want it for our gcc arm. So:

cp -R /usr/local/include/bitstream /usr/arm-linux-gnueabi/include/

Now you would have to edit the DVBlast makefile, to add the cross-compile feature to it:

%.o: %.c Makefile dvblast.h en50221.h comm.h asi.h mrtg-cnt.h
@echo "CC $<"
$(Q)$(CC) $(CFLAGS) -c $<

to

%.o: %.c Makefile dvblast.h en50221.h comm.h asi.h mrtg-cnt.h
@echo "CC $<"
$(Q)$(CROSS)$(CC) $(CFLAGS) -c $<
dvblast: $(OBJ_DVBLAST)
@echo "LINK $@"
$(Q)$(CC) -o $@ $(OBJ_DVBLAST) $(LDLIBS_DVBLAST) $(LDLIBS)

to

dvblast: $(OBJ_DVBLAST)
@echo "LINK $@"
$(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLAST) $(LDLIBS_DVBLAST) $(LDLIBS)
dvblastctl: $(OBJ_DVBLASTCTL)
@echo "LINK $@"
$(Q)$(CC) -o $@ $(OBJ_DVBLASTCTL) $(LDLIBS_DVBLAST) $(LDLIBS)

to

dvblastctl: $(OBJ_DVBLASTCTL)
@echo "LINK $@"
$(Q)$(CROSS)$(CC) -o $@ $(OBJ_DVBLASTCTL) $(LDLIBS_DVBLAST) $(LDLIBS)

Compile time

make CROSS=arm-linux-gnueabi-g

Note: At the end of above command, it’s g, not gcc.

After compile, if you want to check everything is correct:

file dvblast

--

--

No responses yet