rpitx icon indicating copy to clipboard operation
rpitx copied to clipboard

Can't install and compile, shows me errors

Open All3xJ opened this issue 7 years ago • 5 comments

I am using kali-pi.

Linux kali-pi 4.14.62-Re4son-v7+ #2 SMP Sat Sep 22 22:53:40 AEST 2018 armv7l GNU/Linux

I got these errors while executing install.sh and obviously it doesn't install.

mailbox.c:(.text+0x448): undefined reference to `makedev'
/usr/bin/ld: mailbox.c:(.text+0x482): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ../pisstv] Error 1
c++ -std=c++11 -Wall -g -O2 -Wno-unused-variable -o ../pisstv sstv/pisstv.cpp  librpitx/src/librpitx.a -lm -lrt -lpthread
/usr/bin/ld: librpitx/src/librpitx.a(mailbox.o): in function `mbox_open':
mailbox.c:(.text+0x448): undefined reference to `makedev'
/usr/bin/ld: mailbox.c:(.text+0x482): undefined reference to `makedev'
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: ../pisstv] Error 1

All3xJ avatar Dec 25 '18 22:12 All3xJ

Can you try to install makedev prior to compile : sudo apt-get install makedev

F5OEO avatar Dec 26 '18 11:12 F5OEO

Can you try to install makedev prior to compile : sudo apt-get install makedev

hi, thanks for reply. I did it, but the same errors show.

All3xJ avatar Dec 26 '18 13:12 All3xJ

I solved by adding #include <sys/sysmacros.h> in file rpitx/src/librpitx/src/mailbox.c

All3xJ avatar Dec 26 '18 14:12 All3xJ

Besides this, have you succeed in compiling the entire project and run it ?

F5OEO avatar Jan 06 '19 12:01 F5OEO

I solved by adding #include <sys/sysmacros.h> in file rpitx/src/librpitx/src/mailbox.c

Thanks, this worked for me too. Had the same issue while to trying run make when compilling WsppryPi but appears to work fine now.

jemussi avatar Mar 07 '20 15:03 jemussi