fsphil / hacktv

Analogue TV transmitter for the HackRF
GNU General Public License v3.0
713 stars 84 forks source link

Issue building on raspberry pi #13

Closed MahmoudThePeltist closed 5 years ago

MahmoudThePeltist commented 6 years ago

When i tried to apt-get the requirements on Raspbian Jessie, the following came up:

sudo apt-get install libavutil-dev libswresample-dev libswscale-dev libavformat-dev libavcodec-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libswresample-dev

While trying to build on raspberry pi 3 the following issue appeared:

gcc -o hacktv hacktv.o fir.o vbidata.o teletext.o wss.o video.o videocrypt.o syster.o nicam728.o test.o ffmpeg.o file.o hackrf.o -g -lm -pthread -L/usr/local/lib -lavformat -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lasound -lx264 -lpthread -lm -llzma -lbz2 -lz -pthread -lavcodec -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lasound -lx264 -lpthread -lm -llzma -lbz2 -lz -pthread -lswscale -lm -lswresample -lm -lavutil -lm -lhackrf 
/usr/bin/ld: cannot find -llzma
/usr/bin/ld: cannot find -lbz2
collect2: error: ld returned 1 exit status
Makefile:21: recipe for target 'hacktv' failed
make: *** [hacktv] Error 1

is there any way to work around this?

MahmoudThePeltist commented 5 years ago

Ok, i figured out that this issue is due ti the fact that Rasbian Jessie does not have all the dependencies, by updating to Rasbian Stretch i was able to get HackTV working fine!