openskynetwork / dump1090-hptoa

dump1090 decoder with High Precision Timestamping (http://eprints.networks.imdea.org/1768/)
Other
55 stars 11 forks source link

make and dpkg-buildpackage fail to build #1

Open abcd567a opened 6 years ago

abcd567a commented 6 years ago

OS: Raspbian Stretch on RPi

Attempt -1, failed

pi@raspberrypi:~ $ sudo apt-get update   
pi@raspberrypi:~ $ sudo apt-get install git cmake
pi@raspberrypi:~ $ git clone https://github.com/openskynetwork/dump1090-hptoa.git
pi@raspberrypi:~ $ cd dump1090-hptoa
pi@raspberrypi:~/dump1090-hptoa $ make
make: *** No targets specified and no makefile found.  Stop.

Attemp - 2, failed

pi@raspberrypi:~ /dump1090-hptoa $ sudo apt-get install -y build-essential debhelper rtl-sdr librtlsdr-dev libusb-1.0-0-dev pkg-config fakeroot curl cron lighttpd

pi@raspberrypi:~/dump1090-hptoa $ sudo dpkg-buildpackage -b
dpkg-buildpackage: info: source package dump1090-mutability
dpkg-buildpackage: info: source version 1.15~dev
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Oliver Jowett <oliver@mutability.co.uk>
dpkg-buildpackage: info: host architecture armhf
 dpkg-source --before-build dump1090-hptoa
 debian/rules clean
dh clean
..............
..............
..............
/usr/share/dump1090-mutability/
install -d debian/dump1090-mutability/usr/bin
cp -a dump1090 debian/dump1090-mutability/usr/bin/dump1090-mutability
cp: cannot stat 'dump1090': No such file or directory
debian/rules:24: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/home/pi/build-dump-hptoa/dump1090-hptoa'
debian/rules:30: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
rocapal commented 6 years ago

Thanks for the detailed reporting! In this new version, dump1090 uses cmake for building and compiling the code so, try the following steps to build the code

$ git clone https://github.com/openskynetwork/dump1090-hptoa.git
$ cd dump1090-hptoa/
$ mkdir build && cd build/
$ cmake ../
$ make

After that, you will get the dump1090-hptoa binary.

abcd567a commented 6 years ago

Thanks. Could built it as you guided. P.S.

  1. Had to use sudo before mkdir, cmake, and make
  2. Had to use ./ before dump1090 in run command.

To run:

$ sudo systemctl stop dump1090-mutability

$ cd dump1090-hptoa/build
$ sudo ./dump1090 --enable-hptoa PeakPulse --interactive

CLICK ON IMAGE TO SEE LARGER SIZE hp-toa-dump1090

rocapal commented 6 years ago

That's correct.

Keep in mind that to see the high precision timestamp that this version provides you should run without "--interactive" mode.

ShoGinn commented 6 years ago

I agree that this is supposed to be used with cmake. do you intend on updating the Debian package?

I think the configuration files are not correct. I'll take a look more in depth later.

I ask, because I was going to add this as a automated build for my docker image and I use dpkg-buildpackage for the dump1090-mutability to move the .deb and install it.

And since this is just adding some code ;)