AP2 on OpenWRT? #1340
-
Has anyone successfully installed AP2 on OpenWRT? I've been able to install and run AP2 on Pi OS with no issues but am getting the following on OpenWRT before compiling nqptp:
The only suggested resolution I can find for this error is to use "brew" m4, but I'm not sure if that's an option for OpenWRT? OpenWRT v21.02 on Pi 3 A+ Much appreciated for any assistance on this! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Update: I've realized the root cause of this issue is that there is no "build-essential" package on openwrt so I'm missing all of the compiling packages (c++, gcc, make, etc.). I found what I believe is the equivalent for openwrt here: https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk#load_package_lists After downloading the SDK package I run out of disk space when uncompressing the file. I'm working on adding more space but I'm realizing this is getting way over my head at this point. Is there anyone out there that is using openwrt that has the skillset to compile nqptp and shairport-sync? I tried copying these binaries from pi os to openwrt but no dice. Any help on this would be greatly appreciated!! |
Beta Was this translation helpful? Give feedback.
-
Sorry to have missed all this. There is a rather old Shairport Sync package for OpenWRT. However, it is built by cross compilation (typically from a Ubuntu host) using the OpenWRT build system. I'm afraid it's been rather neglected in the last few years. The repository Shairport Sync for OpenWRT should give you a starting point for building more recent Shairport Syncs, including, hopefully, the AP2 version. |
Beta Was this translation helpful? Give feedback.
-
Was finally able to get this to build and run successfully by following Mike's instructions for OpentWRT here: https://github.com/mikebrady/shairport-sync-for-openwrt Additional config (for debian os): Install additional libraries note that Makefile modifications:
|
Beta Was this translation helpful? Give feedback.
-
For any other folks wanting @mikebrady's awesome sauce with Airplay 2. There has been a recent commit to OpenWRT packages repo. openwrt/packages@7391ca3 has version 4.x with hopefully the easiest way for most folks that don't want to go through a hour build process -- unless for specific target reasons 👍 |
Beta Was this translation helpful? Give feedback.
Was finally able to get this to build and run successfully by following Mike's instructions for OpentWRT here: https://github.com/mikebrady/shairport-sync-for-openwrt
Additional config (for debian os):
Install additional libraries
./scripts/feeds -f install libavahi alsa-lib libdaemon libpopt libsoxr alsa-utils htop libtool libconfig avahi-daemon libavahi-client libplist libsodium uuid libgcrypt libffmpeg
note that
libffmpeg
contains the av librarieslibavutil libavcodec libavformat libasound2
Makefile modifications: