git clone https://github.com/Xerbo/aptdec.git && cd aptdec
git clone https://github.com/Xerbo/aptdec.git && cd aptdec
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
cmake -B build
cmake --build build
# Resulting binary is build/aptdec
```
```
Using the Makefile with GNU automake is now deprecated and will be removed soon.
## Examples
## Examples
To create an image from `gqrx_20200527_115730_137914960.wav` (output filename will be `gqrx_20200527_115730_137914960-r.png`)
To create an image from `gqrx_20200527_115730_137914960.wav` (output filename will be `gqrx_20200527_115730_137914960-r.png`)
@@ -118,16 +113,7 @@ To stop the decode and calibrate the image simply kill the `sox` process.
Palettes are just simple PNG images, 256x256px in size with 24bit RGB color. The X axis represents the value of Channel A and the Y axis the value of Channel B.
Palettes are just simple PNG images, 256x256px in size with 24bit RGB color. The X axis represents the value of Channel A and the Y axis the value of Channel B.
## Compiling with cmake
Thanks to the help of [Aang23](https://github.com/Aang23) aptdec is moving towards cmake + cpack for builds.
To use cmake to build instead of GNU automake:
```
mkdir build && cd build
cmake ..
make
```
## Building for Windows
You can cross build for Windows from Linux with the `build_windows.sh` script, you will need the following:
You can cross build for Windows from Linux with the `build_windows.sh` script, you will need the following: