Comments (9)
Thanks for the detailed report. I'm not sure, but if I had to guess it might be related to your bazel version if it is old enough that android_*_repository is not supported. Not sure what version is pinned for that Debian release.
bazel --version
gives me bazel 4.0.0
.
from lyra.
Seem to be version 3.5.1 in Debian 11 (bullseye) (bazel-bootstrap (3.5.1+ds-3)).
from lyra.
Have you run ./configure
and set up Android SDK integration through the script instead?
OR
can you please try adding the attribute 'path = "/path/to/sdk/"' in the project's WORKSPACE file's android_sdk_repository() rule
from lyra.
Thanks for your help, but I don't intend to build for Android or install the SDK. I'm building for Linux only, and I don't think the Android SDK is needed to build a linux program ;)
from lyra.
I followed the instructions, built Linux on Ubuntu 20 fine.
from lyra.
@xnorpx right, I'm using Debian (I edited my post to give details) but I don't think the issue is related. Do you have the Android SDK installed?
from lyra.
@a-rose no, clean Ubuntu 20 WSL2 environment. Installed Bazel and then followed the Linux instructions and did not install anything Android related.
( Comment was mostly to confirm that Linux does build outside of g. )
from lyra.
Ok then, the issue is only with Debian (after all, the docs said only Ubuntu was tested).
I would still like to find a way to make it work with other distros to help the project :)
from lyra.
Confirmed to work with bazel v4.0.0 from https://github.com/bazelbuild/bazel/releases. Thanks everyone !
Updated Dockerfile:
FROM debian:bullseye-slim
WORKDIR /usr/local/src
ARG BAZEL_VERSION=4.0.0
ADD https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb bazel_${BAZEL_VERSION}-linux-x86_64.deb
RUN apt-get update \
&& apt-get install -y \
ninja-build git cmake clang python g++ unzip zip zlib1g-dev \
&& dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb
RUN git clone https://github.com/llvm/llvm-project.git \
&& cd llvm-project \
&& git checkout 96ef4f307df2 \
&& mkdir build_clang \
&& cd build_clang \
&& cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=release ../llvm \
&& ninja \
&& $(which ninja) install \
&& cd .. \
&& mkdir build_libcxx \
&& cd build_libcxx \
&& cmake -G Ninja -DCMAKE_C_COMPILER=/usr/local/bin/clang -DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" -DCMAKE_BUILD_TYPE=release ../llvm \
&& ninja \
&& $(which ninja) install \
&& ldconfig
RUN git clone --depth 1 --branch v0.0.1 https://github.com/google/lyra
RUN cd lyra \
&& bazel build -c opt :encoder_main \
&& bazel build -c opt :decoder_main
from lyra.
Related Issues (20)
- MacOS 13.0.1 build: symbol not found in flat namespace '_CFRelease'
- the problem about building v0.0.2 version
- bazel build -c opt lyra/cli_example:encoder_main error on 20.04-Ubuntu
- Can't we directly encode pcm? HOT 3
- Noisy audio
- Can the model size be cut? HOT 1
- Is there any plan to make this lib work on older android devices? HOT 2
- Linux build HOT 1
- ANDROID BUILD HOT 1
- Can't load TFLite output_details for quantizer model (encode) HOT 3
- When will lyra support ios platform? HOT 1
- The decoding CPU is too high. Is there any way to reduce it?
- model structure of lyra 1.3.2
- About crash problem with kInternalSampleRateHz set to 32k
- Android app built as per readme crashes (on Samsung S23) HOT 1
- how to read the encoded data in the sample1_16kHz.lyra file into python/numpy array?
- Directly provide the executable download address HOT 3
- Is that possible to release the model coeffs with codebook size=1024?
- Is it possible to still run the V1 model with the latest API? Or only V2
- LMCodec HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lyra.