Skip to content

Commit

Permalink
Document prerequisites required for compilation
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
arkq committed Dec 2, 2024
1 parent fe70adc commit a36ac03
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ endif()

if(WITH_FREEAPTX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(FreeAptX REQUIRED IMPORTED_TARGET libfreeaptx)
pkg_check_modules(FreeAptX REQUIRED IMPORTED_TARGET
libfreeaptx>=0.1.0)
endif()

if(WITH_SNDFILE)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SNDFile REQUIRED IMPORTED_TARGET sndfile)
pkg_check_modules(SNDFile REQUIRED IMPORTED_TARGET
sndfile>=1.0.19)
endif()

configure_file(
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ cmake -DENABLE_DOC=ON -DWITH_FFMPEG=ON -DWITH_SNDFILE=ON ..
make && make install
```

### Prerequisites

- CMake 3.22 or newer
- [Doxygen](https://doxygen.nl/index.html) (optional)
- [FFmpeg](https://ffmpeg.org/) 5.1.0 or newer (optional)
- [libfreeaptx](https://github.com/iamthehorker/libfreeaptx) 0.1.0 or newer (optional)
- [libsndfile](https://libsndfile.github.io/libsndfile/) 1.0.19 or newer (optional)

```sh
# Install required packages on Debian-based systems
sudo apt-get install cmake doxygen ffmpeg libfreeaptx-dev libsndfile1-dev
```

### Configure options

- `ENABLE_DOC` - build and install manual files (requires Doxygen)
Expand All @@ -25,6 +38,7 @@ make && make install
- `ENABLE_APTX422` - build reverse engineered apt-X library based on `bt-aptX-x86-4.2.2.so`
- `ENABLE_APTXHD100` - build reverse engineered apt-X HD library based on `aptXHD-1.0.0-ARMv7A`
- `WITH_FFMPEG` - use FFmpeg as a back-end (otherwise, stub library will be built)
- `WITH_FREEAPTX` - use libfreeaptx as a back-end (FFmpeg back-end must be disabled)
- `WITH_SNDFILE` - read file formats supported by libsndfile (used by openaptx utils)

In the apt-X stub library (build without FFmpeg back-end), all symbols are exported as
Expand Down

0 comments on commit a36ac03

Please sign in to comment.