Commit Graph

301 Commits

Author SHA1 Message Date
wb2osz dc40b461d0 Add troubleshooting tip to error message. 2020-05-21 22:18:33 -04:00
wb2osz 0661e23f21 Issue 271 - DCD dropping at wrong time. 2020-05-21 21:37:34 -04:00
wb2osz 74a5c34a94 AIS refinements. 2020-04-25 07:59:06 -04:00
wb2osz b99f9f33c2
Merge pull request #268 from mdomsch/systemd
Add rpm spec and systemd files
2020-04-25 07:18:55 -04:00
Matt Domsch 3135bb570b Add rpm spec and systemd files 2020-04-24 10:00:06 -05:00
wb2osz f293186403 Issue 266 - Default compile options now allow the result to run on a
wider range of CPUs rather than optimizing for the build machine.
2020-04-22 19:39:24 -04:00
wb2osz b41b4445fb AIS reception. 2020-04-19 00:59:32 -04:00
wb2osz 0dc7cba1c5 AIS reception. 2020-04-19 00:50:18 -04:00
wb2osz 65d8d265cd More complete monitoring messages to AGW client app. 2020-04-13 21:07:10 -04:00
wb2osz c15903edb9 Issue 252 - Direwolf segments large frames when sending AX.25 version 2.0 packets.
Instead, it should simply divide the data into packets without segment headers,
on an AX.25 version 2.0 connection.
2020-04-13 20:54:42 -04:00
wb2osz e654ca46a6 Documenation updates for 1.6. 2020-04-03 21:09:23 -04:00
wb2osz cab47cfc48 -h command line option for help. 2020-03-21 19:02:39 -04:00
wb2osz 1484350465 Pull request 259 - Identify '{{' as user defined experimental. 2020-03-21 18:06:57 -04:00
wb2osz fde5bf6816 Update tocalls.txt. 2020-02-20 20:40:46 -05:00
wb2osz e54b851633 FreeBSD build fixes. 2020-01-26 19:55:53 -05:00
wb2osz c2b231494a Proper detection for udev. 2020-01-19 18:44:25 -05:00
wb2osz 7e44139eb3 Better error checking and helpful message. 2020-01-19 18:42:50 -05:00
wb2osz 4e816f8f8d chmod +x script 2020-01-16 20:57:12 -05:00
wb2osz 033d509920 Remove non-ASCII characters. 2020-01-15 06:54:56 -05:00
wb2osz 63b78c9fae More commentary on the FX.25 audio recordings found.
We need some better test cases.
2020-01-12 22:48:40 -05:00
wb2osz 1f2a5cfdb8 FX.25 2020-01-05 20:08:22 -05:00
wb2osz f08ed518b3
Merge pull request #236 from mdomsch/include-stddef
Include <stddef.h> everywhere ptrdiff_t is used
2019-12-07 15:12:38 -05:00
Matt Domsch 2d4a8f4907 Include <stddef.h> everywhere ptrdiff_t is used
ptrdiff_t is defined in <stddef.h>
2019-12-04 21:38:12 -06:00
wb2osz d5cec4dc84 Fix compiler warnings for platforms where size of long is different than size of pointer. 2019-11-30 20:20:13 -05:00
wb2osz ff9eca682e Overhaul PSK demodulator. 2019-11-30 19:20:55 -05:00
wb2osz b382e5fb0f Add -lrt to Linux link so it will work with CentOS 6. 2019-11-29 16:40:27 -05:00
wb2osz 249f5bd471 Clean out old obsolete demodulators. 2019-11-27 22:42:33 -05:00
wb2osz 747224ce57 Remove obsolete 'F' demodulator. 2019-11-27 21:26:59 -05:00
wb2osz 03939d25ba Fix CentOS 6 build. 2019-11-27 20:36:51 -05:00
wb2osz 6e92a4fa48 Fix build for CentOS. 2019-11-25 22:14:46 -05:00
wb2osz 362d19e073 Remove obsolete files. 2019-11-24 11:29:16 -05:00
wb2osz f73faec0b5 Move from groups.yahoo.com to groups.io and minor typo. 2019-11-23 22:13:40 -05:00
wb2osz 690ed3e1d6 CentOS build issues. 2019-11-23 20:06:57 -05:00
wb2osz c94628f547 Update build instructions for cmake. 2019-11-23 11:30:27 -05:00
wb2osz 4444d3be5f
Merge pull request #227 from ra1nb0w/cmake-dev
move to cmake, ctest, cpack to build direwolf
2019-11-23 10:56:37 -05:00
Davide Gerhard 4de597a89e
cmake: fix portaudio discovery 2019-11-13 16:07:23 +01:00
Davide Gerhard 1cf5a22333
cmake: implement basic cpack functionality
to create ZIP package run

    cpack

to add new generator modify CPACK_GENERATOR variable.

NOTE: pay attention on CPU flags optimization when you redistribuite
the package (segmentation fault)
2019-11-13 15:57:11 +01:00
Davide Gerhard 1ab26c66e2
cmake: not build ctest binaries as default
unit test binaries are disabled by default now.
To enable it use either

cmake -DUNITTEST=1 ..

or

cmake -DCMAKE_BUILD_TYPE=DEBUG

where CMAKE_BUILD_TYPE must be different from "RELEASE"
see https://cmake.org/cmake/help/v3.0/variable/CMAKE_BUILD_TYPE.html
2019-11-12 14:28:29 +01:00
Davide Gerhard 8fd4bebf45
install udev rules on /etc and not ${CMAKE_INSTALL_PREFIX}/etc
This should works fine also with cpack and packaging seen that they
are using DESTDIR.

CPACK:
- from 2.8.3 CPACK_SET_DESTDIR is default to ON
- if you have trouble read CPACK_PACKAGING_INSTALL_PREFIX
2019-11-09 09:21:47 +01:00
Davide Gerhard 8cd1f87ef6
cmake: windows build fixes
works with cygwin and x86_64-w64-mingw32-gcc/x86_64-w64-mingw32-g++
from the package installer of cygwin.
To use that add the following lines to .bash_profile

export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++

you also need cmake from cygwin
2019-11-09 08:31:35 +01:00
Davide Gerhard 184b2af329
cmake: change install-conf script with configure_file()
in this way, If the input file is modified the build system will
re-run CMake to re-configure the file and generate the build system
again.
2019-11-09 08:26:37 +01:00
Davide Gerhard 0e5049c08a
cmake: implements tests using CTest suite
the new tests are implemented with CTest suite of CMake.
To enable the tests you need to run cmake with -DBUILD_TESTING=ON
There are optional tests (that might not work) that can be enabled with
-DOPTIONAL_TEST=ON

So, to enable all tests and run it use the following command

mkdir build
cmake -DBUILD_TESTING=ON -DOPTIONA_TEST=ON ..
make
ctest

to debug the errors use

ctest --debug

You can always find all tests binary on build/test/

Implementation:
- check-modem* tests are implemented with shell script because it
  requires to execute many commands and therefore will be easy to
  manage. The file is configured at configuration time.
- for single binary we verify the exit status (default = 0) so you
  only need to build the binary and add it to add_test()
2019-11-09 08:26:37 +01:00
Davide Gerhard de98f26229
walk96: fix builing errors (api mismatch) 2019-11-09 08:26:37 +01:00
Davide Gerhard 6f8ac80afd
igate: fix build errors 2019-11-09 08:26:37 +01:00
Davide Gerhard d06b644630
cmake: move install-conf target to conf/install_conf.cmake file
this way permit to use cmake language to manipulate the target and
avoid restriction imposed by CMAKE_COMMAND command mode
2019-11-09 08:26:36 +01:00
Davide Gerhard df22522126
cmake: fix cpu flags autodiscovery and terminal for raspberry
- we set cpu flags for CXX and C
- raspberry "only" has lxterminal not xterm
2019-11-09 08:26:36 +01:00
Davide Gerhard a1c16a67ef
cmake: new build tool
this step unify the builing system for all platforms (windows, linux,
osx and *BSD)

* Requirements:

  - gcc/clang (C/C++ compiler) (in debian build-essential)
  - cmake (in debian cmake)
  - git if you build from source (in debian git)
  - posix threads

** Requirements on *BSD/macOS:

  - portaudio

** Optional Requirements:

  - gpsd (in debian libgps-dev)
  - libhamlib (in debian libhamlib-dev)

** Optional Requirements in Linux

  - udev (in debian libudev-dev)
  - alsa (in debian libasound2-dev)

* Main changes:

  - version is now set only on CMakeLists.txt and automatically used
    on the code
  - cpu flags are auto-discovered in the default build and it works
    on gcc/clang/msvc on x86/x86_64/arm; you can force cpu flags with
    -DFORCE_SSE=1 for example (see CMakeLists.txt on root)
  - use a more "complex" tag on generic.conf to facilitate parsing
    by cmake (not more platform dependent). Now it is %C% or %R% for
    example
  - target `tocalls-symbols` is now called `data-update`
  - created debian/ directory to contains files to use debuild

* Example to build:

mkdir build && cd build
cmake ..
make
make install
make install-conf

then you have the binary files on src/ and in the system directory

* CMake options (see the head of CMakeLists.txt)

  - FORCE_SSE force sse instruction
  - FORCE_SSSE3 force ssse3 instruction
  - FORCE_SSE41 force ssse4.1 instruction
  - OPTIONAL_TEST compile optional test (might be broken)
  - BUILD_TESTING enable tests (ctest framework)
  - CMAKE_INSTALL_PREFIX if you want to change your install path
    prefix

for example:

  cmake .. -DOPTIONAL_TEST=ON
2019-11-09 08:26:33 +01:00
Davide Gerhard bc582cf24f
version: use version from cmake
in this way there is not mismatch
2019-11-09 08:26:08 +01:00
Davide Gerhard 8c9741b3e4
configuration file: update tag to facilitate the parsing
to facilitate the parsing con cmake move from single letter like C to
tag like %C%
2019-11-09 08:26:08 +01:00
Davide Gerhard e35964ec98
add new search location for symbols-new.txt and tocalls.txt
seen that we moved data in the data/ directory we need to add the new
patch to source code.
2019-11-09 08:26:07 +01:00