message(STATUS "Looking for codec2...")
find_package(codec2 CONFIG QUIET)
if(codec2_FOUND)
- get_target_property(CODEC2_BRARY codec2 LOCATION)
+ get_target_property(CODEC2_LIBRARY codec2 LOCATION)
message(STATUS " codec2 library: ${CODEC2_LIBRARY}")
message(STATUS " codec2 headers: ${codec2_INCLUDE_DIRS}")
else()
Assuming the freedv-dev sources is checked out into ~/fdmdv2-dev:
+$ sudo apt-get install libgtk2.0-dev libhamlib-dev libsamplerate-dev libasound2-dev libao-dev
$ cd fdmdv2-dev
$ mkdir build_linux
$ cd build_linux
Then you can use your local codec-dev, something like:
-$ cmake cmake -DBOOTSTRAP_WXWIDGETS=TRUE -DCODEC2_INCLUDE_DIR=/home/david/codec2-dev/src -DCODEC2_LIBRARY=/home/david/codec2-dev/build_linux/src/libcodec2.so -DUSE_STATIC_CODEC2=FALSE -DUSE_STATIC_PORTAUDIO=TRUE -DUSE_STATIC_SOX=TRUE ../
+$ cmake -DBOOTSTRAP_WXWIDGETS=TRUE -DCODEC2_INCLUDE_DIRS=/home/david/codec2-dev/src -DCODEC2_LIBRARY=/home/david/codec2-dev/build_linux/src/libcodec2.so -DUSE_STATIC_CODEC2=FALSE -DUSE_STATIC_PORTAUDIO=TRUE -DUSE_STATIC_SOX=TRUE ../
OR build a local copy of codec2-dev:
#include <samplerate.h>
#include <hamlib.h>
+#include <stdint.h>
#include <speex/speex_preprocess.h>
#ifdef _WIN32