Closed acarslogger closed 5 years ago
Hi Thierry,
Trying to make the latest version with libacars. libacars installed OK. When I 'make -f Makefile.rtl' I get
cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o acarsdec.o acarsdec.c cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o acars.o acars.c cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o msk.o msk.c cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o rtl.o rtl.c cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o air.o air.c cc -Wall -Ofast -pthread -D WITH_RTL -I. pkg-config --cflags librtlsdr -I/usr/local/include -DHAVE_LIBACARS -c -o output.o output.c output.c:27:20: error: static declaration of ‘cls’ follows non-static declaration static inline void cls(void) ^~~ In file included from output.c:15:0: acarsdec.h:163:13: note: previous declaration of ‘cls’ was here extern void cls(void); ^~~ output.c: In function ‘initOutput’: output.c:109:44: error: ‘OUTTYPE_ROUTEJSON’ undeclared (first use in this function) if (outtype == OUTTYPE_JSON || outtype == OUTTYPE_ROUTEJSON || (sockfd && netout==NETLOG_JSON)) { ^~~~~ output.c:109:44: note: each undeclared identifier is reported only once for each function it appears in output.c: In function ‘outputmsg’: output.c:564:17: error: ‘OUTTYPE_ROUTEJSON’ undeclared (first use in this function) if(outtype == OUTTYPE_ROUTEJSON ) ^~~~~
pkg-config --cflags librtlsdr
:-( forget to commit acarsdec.h fixed nnow
Many thanks Stuart
Hi Thierry,
Trying to make the latest version with libacars. libacars installed OK. When I 'make -f Makefile.rtl' I get
cc -Wall -Ofast -pthread -D WITH_RTL -I.
pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o acarsdec.o acarsdec.c cc -Wall -Ofast -pthread -D WITH_RTL -I.pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o acars.o acars.c cc -Wall -Ofast -pthread -D WITH_RTL -I.pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o msk.o msk.c cc -Wall -Ofast -pthread -D WITH_RTL -I.pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o rtl.o rtl.c cc -Wall -Ofast -pthread -D WITH_RTL -I.pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o air.o air.c cc -Wall -Ofast -pthread -D WITH_RTL -I.pkg-config --cflags librtlsdr
-I/usr/local/include -DHAVE_LIBACARS -c -o output.o output.c output.c:27:20: error: static declaration of ‘cls’ follows non-static declaration static inline void cls(void) ^~~ In file included from output.c:15:0: acarsdec.h:163:13: note: previous declaration of ‘cls’ was here extern void cls(void); ^~~ output.c: In function ‘initOutput’: output.c:109:44: error: ‘OUTTYPE_ROUTEJSON’ undeclared (first use in this function) if (outtype == OUTTYPE_JSON || outtype == OUTTYPE_ROUTEJSON || (sockfd && netout==NETLOG_JSON)) { ^~~~~ output.c:109:44: note: each undeclared identifier is reported only once for each function it appears in output.c: In function ‘outputmsg’: output.c:564:17: error: ‘OUTTYPE_ROUTEJSON’ undeclared (first use in this function) if(outtype == OUTTYPE_ROUTEJSON ) ^~~~~