Open maotouying opened 8 years ago
I have solve it,thanks for your project.
maybe you can help me.
I want to fix Snapcast issue 18. Compiling works find, but I get a linker error Relocations in generic ELF (EM: 62)
?
rm -f /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.snapcast_installed
(cd /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/./; if [ -x ./configure ]; then find /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/ -name config.guess | xargs -r chmod u+w; find /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/ -name config.guess | xargs -r -n1 cp --remove-destination /home/johannes/Develop/openwrt/scripts/config.guess; find /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/ -name config.sub | xargs -r chmod u+w; find /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/ -name config.sub | xargs -r -n1 cp --remove-destination /home/johannes/Develop/openwrt/scripts/config.sub; AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include " LDFLAGS="-L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib -znow -zrelro " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
rm -f /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/.configured_*
touch /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/.configured_yyyyyyyy
# +CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include " LDFLAGS="-L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib -znow -zrelro " make -j1 -C /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" -C server;
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include " LDFLAGS="-L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/lib -L/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib -znow -zrelro " make -j1 -C /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/. AR="mips-openwrt-linux-musl-gcc-ar" AS="mips-openwrt-linux-musl-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mips-openwrt-linux-musl-ld NM="mips-openwrt-linux-musl-gcc-nm" CC="mips-openwrt-linux-musl-gcc" GCC="mips-openwrt-linux-musl-gcc" CXX="mips-openwrt-linux-musl-g++" RANLIB="mips-openwrt-linux-musl-gcc-ranlib" STRIP=mips-openwrt-linux-musl-strip OBJCOPY=mips-openwrt-linux-musl-objcopy OBJDUMP=mips-openwrt-linux-musl-objdump SIZE=mips-openwrt-linux-musl-size CROSS="mips-openwrt-linux-musl-" ARCH="mips" -C client;
make[3]: Entering directory `/home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0/client'
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c snapClient.cpp -o snapClient.o
In file included from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/socket_types.hpp:61:0,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/epoll_reactor.hpp:30,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/reactor.hpp:21,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/impl/task_io_service.ipp:24,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/task_io_service.hpp:198,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/impl/io_service.hpp:71,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/io_service.hpp:767,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_io_object.hpp:19,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio.hpp:21,
from clientConnection.h:27,
from controller.h:26,
from snapClient.cpp:27:
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c stream.cpp -o stream.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c alsaPlayer.cpp -o alsaPlayer.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c clientConnection.cpp -o clientConnection.o
In file included from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/socket_types.hpp:61:0,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/epoll_reactor.hpp:30,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/reactor.hpp:21,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/impl/task_io_service.ipp:24,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/task_io_service.hpp:198,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/impl/io_service.hpp:71,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/io_service.hpp:767,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_io_object.hpp:19,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio.hpp:21,
from clientConnection.h:27,
from clientConnection.cpp:23:
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c timeProvider.cpp -o timeProvider.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c controller.cpp -o controller.o
In file included from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/socket_types.hpp:61:0,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/epoll_reactor.hpp:30,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/reactor.hpp:21,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/impl/task_io_service.ipp:24,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/detail/task_io_service.hpp:198,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/impl/io_service.hpp:71,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/io_service.hpp:767,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_io_object.hpp:19,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include/boost/asio.hpp:21,
from clientConnection.h:27,
from controller.h:26,
from controller.cpp:19:
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c browseAvahi.cpp -o browseAvahi.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c ../message/pcmChunk.cpp -o ../message/pcmChunk.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c ../common/log.cpp -o ../common/log.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c ../message/sampleFormat.cpp -o ../message/sampleFormat.o
mips-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/johannes/Develop/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/snapcast-1_0_0:snapcast-1_0_0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/usr/include -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include/fortify -I/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -o snapclient snapClient.o stream.o alsaPlayer.o clientConnection.o timeProvider.o decoder/pcmDecoder.o controller.o browseAvahi.o ../message/pcmChunk.o ../common/log.o ../message/sampleFormat.o -lboost_system -lboost_program_options -lasound -lavahi-client -lavahi-common -latomic
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
/home/johannes/Develop/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.14/lib/gcc/mips-openwrt-linux-musl/5.3.0/../../../../mips-openwrt-linux-musl/bin/ld: decoder/pcmDecoder.o: Relocations in generic ELF (EM: 62)
decoder/pcmDecoder.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [snapclient] Error 1
Hi badaix, Your problem seem caused by litter or big end choose,please check your gcc and arch, there maybe the problem and you should make clean before you compile.
This was caused by existing .o
files that were not rebuilt.
No I'm having the problem with missing libatomic.so.1
. How did you solve it?
You can use the following method,that solve my "missing libatomic.so.1" problem.
https://lists.openwrt.org/pipermail/openwrt-devel/2014-March/024286.html
Now it seems to work. This patch was already part of my OpenWrt release (git master).
My mistake was to add atomic
instead of libatomic
to the list of dependencies.
This is finally working for me:
define Package/snapcast/Default
SECTION:=sxx
CATEGORY:=Sxx
TITLE:=snapcast
DEPENDS:=+boost +boost-system +boost-program_options +libavahi-client +libatomic +libvorbis +libflac
endef
I compile snapcast on the other platform,there is error aboot boost, do you meet this error? log is:
mips-openwrt-linux-g++ -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DVERSION=\"\" -I.. -c snapServer.cpp -o snapServer.o snapServer.cpp:19:37: fatal error: boost/program_options.hpp: No such file or directory
^
compilation terminated. make[4]: *\ [snapServer.o] Error 1
Due to some uclibc vs. musl incompatibility between trunk and chaos calmer, I set up a CC 15.05 OpenWrt toolchain and even bumped into your boost issue. Boost was solved after updating the feeds. Overall these steps should generate a valid snapcast.ipk:
git clone git://git.openwrt.org/15.05/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
Clone snapcast into the openwrt/package
directory, run make menuconfig
and select:
Sxx
<M> snapcast
<M> Compile snapserver
<M> Compile snapclient
Compile make
ipk
s will be here:
bin/ar71xx/packages/base/snapclient_1_0_0_ar71xx.ipk
bin/ar71xx/packages/base/snapserver_1_0_0_ar71xx.ipk
Thanks again also to @maosuyun2009 for his great work!
@badaix Thanks for your great job on snapcast, I love snapcast, But one day, I hope there is some document about snapcast multiroom theory, thank you again
When I run snapcast on my device the sound can out is difficulty, do you know the reason maybe?
log: 2016-03-31 07-03-00 [out] sleep > chunkDuration: 208 > 20, chunks: 87, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 188 > 20, chunks: 86, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 169 > 20, chunks: 85, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 149 > 20, chunks: 84, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 129 > 20, chunks: 83, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 110 > 20, chunks: 82, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 90 > 20, chunks: 81, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 70 > 20, chunks: 80, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 55 > 20, chunks: 79, out: 0, needed: 23 2016-03-31 07-03-00 [out] sleep > chunkDuration: 35 > 20, chunks: 78, out: 0, needed: 23 2016-03-31 07-03-00 [out] correction: 4, factor: 1.00391 2016-03-31 07-03-00 [out] Sleep 15, age: -3, bufferDuration: 23 2016-03-31 07-03-00 [out] Chunk: -39 -39 -39 -39 1 0 frames_1111====1024 2016-03-31 07-03-00 [err] XRUN frames_2222====1024 2016-03-31 07-03-00 [out] sleep > bufferDuration/2: 15 > 11 2016-03-31 07-03-00 [out] correction: 4, factor: 1.00391 2016-03-31 07-03-00 [out] Sleep 15, age: 644, bufferDuration: 23 frames_2222====1024 2016-03-31 07-03-00 [out] sleep > bufferDuration/2: 15 > 11 2016-03-31 07-03-00 [out] correction: 4, factor: 1.00391 2016-03-31 07-03-00 [out] Sleep 15, age: 628, bufferDuration: 23 frames_1111====1024 2016-03-31 07-03-00 [err] XRUN
What is your device? The Snapcast develop branch is working quite well already with my TP-Link TL-WR1043ND. PCM and FLAC are good, OGG creates too much CPU load, resulting in a log similar to yours. I will switch to Tremor, the integer only version of ogg vorbis for the client to get around that. Else wise I'm planning to change the double in the time.h message into time_t, because It will be easier to swap the endian for integers. I think the time synchronization is between little and big endian is not reliable with the current approach
My soc is MT7688, I think the problem is buffer can not read correct, I modify the "initalsa" about the buffer,The problem is improved,but when I play for a period of time the error can come out. My mpd.conf set the alsa out is: audio_output { type "alsa" name "My ALSA Device" format "44100:16:2" # optional mixer_type "software" # optional use_mmap "1" }
Hi badaix, Do you use the Mopidy or mpd on your TP-Link TL-WR1043ND? I use the mpd. And which the snapcast's version do you install?
Focus is currently to get the Snapclient running on OpenWrt. I only did a short test with the Snapserver on the router, just to check if endianess between server (big endian) and client (little endian) is working for the different codecs. For this test I used wget and a pipe into madplay, as described here:
wget -O - http://64.236.34.97:80/stream/1014 | madplay - -o wave:/tmp/snapfifo
I suggest to use the head of Snapcast's develop branch.
There is a Makefile.openwrt inside. You can let a symbolic link Makefile
point to that one in your Openwrt/pacakges/Sxx/Snapcast directory and a link src
to the Snapcast source directory.
In develop branch I've moved the OpenWrt Makefile into the openWrt sub directory. Within the OpenWrt directory I'm linking to it, like this:
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ln -s ~/Develop/snapcast/openWrt/Makefile.openwrt Makefile
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ln -s ~/Develop/snapcast/ src
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ls -l
lrwxrwxrwx 1 johannes johannes 48 Apr 3 14:50 Makefile -> /home/johannes/Develop/snapcast/openWrt/Makefile.openwrt
lrwxrwxrwx 1 johannes johannes 32 Mär 29 21:22 src -> /home/johannes/Develop/snapcast/
...and build like this:
johannes@T400 ~/Develop/openwrt.15.05 $ make package/sxx/snapcast/clean V=s
johannes@T400 ~/Develop/openwrt.15.05 $ make package/sxx/snapcast/compile -j1 V=s
This develop
branch is not compatible to the v0.5, so make sure that you are using it for client and server. It should compile and run on any of the architectures MIPS, ARM, X86, X86_64, independent of the endianness.
Hi badaix, When I compile the latest version(v0.6) on my openwrt, there is a error about not find asio, I have install asio on my openwrt,there maybe some wrong about my install asio's method, how are you install asio on openwrt?
log is: dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include -std=c++0x -Wall -Wno-unused-function -O3 -pthread -DASIO_STANDALONE -DVERSION=\"0.6.0\" -I. -I.. -I../externals/asio/asio/include -I../externals/popl/include -DIS_BIG_ENDIAN -DNO_CPP11_STRING -c snapServer.cpp -o snapServer.o In file included from snapServer.cpp:31:0: streamServer.h:22:20: fatal error: asio.hpp: No such file or directory
^
compilation terminated. make[3]: *\ [snapServer.o] Error 1 make[3]: Leaving directory `/home/use_mmx/20160119/openwrt-3.10.14_20160421/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/snapcast-0.6.0/server'
Hi, you don't have to install asio, as it is a header only lib.
When you make package/sxx/snapcast/clean
, the OpenWrt makefile should copy the externals
directory to your PKG_BUILD_DIR
: $(CP) -r src/externals/ $(PKG_BUILD_DIR)
Afterwards, make package/sxx/snapcast/compile
should find it (-I../externals/asio/asio/include
).
Please check if in your Snapcast
source tree the asio external is present. Maybe you just forgot to clone the externals, as described in the build.md
Hi, I have run snapcast(v0.6) there is no any sound, but I can use this version on my device, I had modify the code as this version some days,but the problem also is remain, do you have some ideas can help me to solve this problem?
server log is: root@router:/etc/init.d# snapserver Settings file: /root/.config/snapcast/server.json sh: lsb_release: not found cat: can't open '/etc/os-release': No such file or directory sh: arch: not found 2016-05-06 16-05-10 [out] Adding service 'Snapcast' 2016-05-06 16-05-10 [out] PcmStream sampleFormat: 44100:16:2 2016-05-06 16-05-10 [Debug] {"fragment":"","host":"","path":"/tmp/snapfifo","query":{"buffer_ms":"20","codec":"pcm","name":"default","sampleformat":"44100:16:2"},"raw":"pipe:///tmp/snapfifo?name=default","scheme":"pipe"} 2016-05-06 16-05-11 [out] Service 'Snapcast' successfully established.
client erro log is: root@router:/# snapclient -h 127.0.0.1 2016-05-06 15-22-38 [out] Latency: 0 2016-05-06 15-22-38 [out] Connecting 2016-05-06 15-22-38 [Notice] StreamServer::NewConnection: 127.0.0.1 2016-05-06 15-22-38 [Notice] Connected to 127.0.0.1 2016-05-06 15-22-38 [out] My MAC: "00:32:10:00:19:22", socket: 5 sh: lsb_release: not found cat: can't open '/etc/os-release': No such file or directory sh: arch: not found 2016-05-06 15-22-39 [out] Hello from 00:32:10:00:19:22, host: router, v0.6.0, ClientName: Snapclient, OS: OpenWrt Backfire 10.03, Arch: mips, Protocol version: 2 2016-05-06 15-22-39 [out] ServerSettings - buffer: 1000, latency: 0, volume: 100, muted: 0 2016-05-06 15-22-39 [out] Codec: pcm 2016-05-06 15-22-39 [state] sampleformat: 44100:16:2 2016-05-06 15-22-39 [out] frames: 1323 2016-05-06 15-22-39 [out] Chunk: 546 546 546 546 1 0 2016-05-06 15-22-39 [out] Failed to get chunk 2016-05-06 15-22-39 [out] age > 200: -292 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -292 < -15, sleep: -274 2016-05-06 15-22-39 [out] onResync (default): 6ms 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -274 < -15, sleep: -273 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -273 < -15, sleep: -250 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -250 < -15, sleep: -231 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -231 < -15, sleep: -192 2016-05-06 15-22-39 [out] sleep < -bufferDuration/2: -192 < -15, sleep: 150 2016-05-06 15-22-39 [out] correction: 4, factor: 1.00302 2016-05-06 15-22-39 [out] Sleep 150, age: 155, bufferDuration: 30 2016-05-06 15-22-39 [out] sleep > bufferDuration/2: 150 > 15 2016-05-06 15-22-39 [out] sleep > chunkDuration: 150 > 20, chunks: 10, out: 0, needed: 30 2016-05-06 15-22-39 [out] sleep > chunkDuration: 208 > 20, chunks: 9, out: 0, needed: 30 2016-05-06 15-22-39 [out] sleep > chunkDuration: 199 > 20, chunks: 8, out: 0, needed: 30 2016-05-06 15-22-39 [out] sleep > chunkDuration: 98 > 20, chunks: 3, out: 0, needed: 30 2016-05-06 15-22-39 [out] onResync (default): 25ms 2016-05-06 15-22-39 [out] sleep > chunkDuration: 79 > 20, chunks: 2, out: 0, needed: 30 2016-05-06 15-22-39 [out] sleep > chunkDuration: 123 > 20, chunks: 1, out: 0, needed: 30 2016-05-06 15-22-39 [out] sleep > chunkDuration: 105 > 20, chunks: 0, out: 0, needed: 30 2016-05-06 15-22-39 [out] no chunks available 2016-05-06 15-22-39 [out] Failed to get chunk 2016-05-06 15-22-39 [out] Failed to get chunk 2016-05-06 15-22-39 [out] Failed to get chunk 2016-05-06 15-22-40 [out] Chunk: 189 403 403 403 3 0
I use version 0.7.0, the sound come out.
Hi:maosuyun2009, When I compile snapcast on openwrt,there is a error,do you know how to solve it(there is libatomic.so.1 in my dir,eg:build_dir\toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2\gcc-linaro-4.8-2014.04-final\mipsel-openwrt-linux-uclibc\libatomic.libs\libatomic.so.1): log: Package snapclient is missing dependencies for the following libraries: libatomic.so.1