Hi all, SmallDV runs but I can't get it to be useful:
bash-4.3$ ././dist/Debug/GNU-Linux/fdvcore 7 1600 DEBUG: Card ID = 7 DEBUG: Modem = 0 DEBUG: Window = 512 DEBUG: using 2 input channels. DEBUG: using 2 output channels. frames OK:FRAMES=414 frames OK:FRAMES=1169 frames OK:FRAMES=1705 clip OK:CLIP=0 ---------------------- Trying to set "mode rx" always returns ERR. (Or "mode tx") I'm no C++ programmer so debug is not easy. A $50 Pi (clone), one or two USB C-Media sound devices and GPIO for PTT should make a very easy Codec2 device. Alan VK2ZIW On Fri, 15 Feb 2019 11:34:00 +1000, Alan Beard wrote > Hi all, > > On C++ compiling "fdvcore" part of "SmallDV" on the Banana Pi M2 > Berry here running Ubuntu I get these errors: > > from /usr/local/include/codec2/codec2_ofdm.h:37, > from /usr/local/include/codec2/freedv_api.h:42, > from scdv.h:22, > from fdvcore.cc:25: > /usr/include/c++/5/cmath: In function ‘constexpr float > std::abs(float)’: /usr/include/c++/5/cmath:87:16: error: > conflicting declaration of C function ‘constexpr float > std::abs(float)’ > > ----- > Somehow <complex.h> gets included twice. > > In codec2_ofdm.h just above line 35 there is a test for, are we in C++. > > Should we, in that text, do: > #else > #include <complex.h> > > /usr/local/include/codec2/codec2_ofdm.h line 37 > #include <complex.h> > > Done, I get a clean compile. > > Alan VK2ZIW > > Evil flourishes when good men do nothing. > Consider the Christmas child. > --------------------------------------------------------------------------- > Alan Beard Unix Support Technician from 1984 to today > 70 Wedmore Rd. Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS > Emu Heights N.S.W. 2750 Routers, terminal servers, printers, > terminals etc.. +61 2 47353013 (h) Support Programming, shell > scripting, "C", assembler 0414 353013 (mobile) After uni, > electronics tech > > _______________________________________________ > Freetel-codec2 mailing list > Freetel-codec2@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freetel-codec2 Alan Evil flourishes when good men do nothing. Consider the Christmas child. --------------------------------------------------------------------------- Alan Beard Unix Support Technician from 1984 to today 70 Wedmore Rd. Sun Solaris, AIX, HP/UX, Linux, SCO, MIPS Emu Heights N.S.W. 2750 Routers, terminal servers, printers, terminals etc.. +61 2 47353013 (h) Support Programming, shell scripting, "C", assembler 0414 353013 (mobile) After uni, electronics tech _______________________________________________ Freetel-codec2 mailing list Freetel-codec2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freetel-codec2