Comments (7)
Sorry to hear you've encountered errors building with bazel. Currently we have no Gradle support, but feel free to report the errors you are encountering.
from lyra.
bazel compile fail:
external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: cannot find Foundation: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //android_example:lyra_android_example failed to build
INFO: Elapsed time: 485.357s, Critical Path: 96.67s
INFO: 715 processes: 17 internal, 658 darwin-sandbox, 40 worker.
FAILED: Build did NOT complete successfully
+1 need gradle project to save the time of building...
from lyra.
bazel do not support chinese! Do not put source under chinese directory.
OS: Ubuntu 20.04.2 LTS 64Bit
It's hard for Android developers to compile. Better to provide gradle library.
m@m-pc:~/dev/lyra-main$ bazel build -c opt :encoder_main
INFO: SHA256 (https://github.com/bazelbuild/gmaven_rules/archive/20180625-1.tar.gz) = c166ae9f06069025eab59ad74c102db23badc93abb6582ca69c42a0f441c52b5
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "fd8aabf32d1d1ae3319e280fed07aa6eb24d150d", shallow_since = "1614800268 -0800" and dropping ["tag"]
DEBUG: Repository com_google_protobuf instantiated at:
/home/m/dev/lyra-main/WORKSPACE:27:15: in <toplevel>
Repository rule git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'gmaven_rules' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "c166ae9f06069025eab59ad74c102db23badc93abb6582ca69c42a0f441c52b5"
DEBUG: Repository gmaven_rules instantiated at:
/home/m/dev/lyra-main/WORKSPACE:140:13: in <toplevel>
Repository rule http_archive defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'gulrak_filesystem' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "7e37433f318488ae4bc80f80e12df12a01579874", shallow_since = "1602313866 +0200" and dropping ["tag"]
DEBUG: Repository gulrak_filesystem instantiated at:
/home/m/dev/lyra-main/WORKSPACE:54:19: in <toplevel>
Repository rule new_git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:186:37: in <toplevel>
DEBUG: Rule 'com_google_glog' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "8d40d7564d4a06d77d707d7c4a50c8b5dc45dd80", shallow_since = "1618423177 +0200" and dropping ["branch"]
DEBUG: Repository com_google_glog instantiated at:
/home/m/dev/lyra-main/WORKSPACE:94:15: in <toplevel>
Repository rule git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'com_google_absl' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "6f9d96a1f41439ac172ee2ef7ccd8edf0e5d068c", shallow_since = "1611082155 -0500" and dropping ["branch"]
DEBUG: Repository com_google_absl instantiated at:
/home/m/dev/lyra-main/WORKSPACE:37:15: in <toplevel>
Repository rule git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'com_github_gflags_gflags' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "59fb6443a82b84c6b5971b2f45403c78727b7604", shallow_since = "1614883768 -0800" and dropping ["branch"]
DEBUG: Repository com_github_gflags_gflags instantiated at:
/home/m/dev/lyra-main/WORKSPACE:100:15: in <toplevel>
Repository rule git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'com_google_audio_dsp' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "b73ca8f6c0a6331c3b36a76c211c7f837312a095", shallow_since = "1611434935 -0800" and dropping ["branch"]
DEBUG: Repository com_google_audio_dsp instantiated at:
/home/m/dev/lyra-main/WORKSPACE:62:15: in <toplevel>
Repository rule git_repository defined at:
/home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
WARNING: /home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/com_google_audio_dsp/third_party/fft2d/BUILD:3:11: in linkstatic attribute of cc_library rule @com_google_audio_dsp//third_party/fft2d:fft2d: setting 'linkstatic=1' is recommended if there are no object files
INFO: Analyzed target //:encoder_main (54 packages loaded, 1593 targets configured).
INFO: Found 1 target...
ERROR: /home/m/.cache/bazel/_bazel_m/c527f4412d4b5cf28fe5c5dd05e80820/external/com_google_glog/BUILD.bazel:5:13: Compiling src/demangle.cc failed: undeclared inclusion(s) in rule '@com_google_glog//:glog':
this rule is missing dependency declarations for the following files included by 'src/demangle.cc':
'/usr/local/lib/clang/13.0.0/include/stddef.h'
'/usr/local/lib/clang/13.0.0/include/stdarg.h'
'/usr/local/lib/clang/13.0.0/include/__stddef_max_align_t.h'
'/usr/local/lib/clang/13.0.0/include/stdint.h'
'/usr/local/lib/clang/13.0.0/include/limits.h'
Target //:encoder_main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 132.057s, Critical Path: 8.04s
INFO: 213 processes: 29 internal, 184 linux-sandbox.
FAILED: Build did NOT complete successfully
from lyra.
@aigeek, that seems to be an error when working on Mac. Maybe the workaround mentioned in #7 works for you.
@alx696, I am not sure what you mean with putting source under chinese directory.
from lyra.
@aluebs If move source from dev
to 下载
, then run bazel build
:
m@m-pc:~/下载/lyra-main$ bazel build -c opt :encoder_main
bazel error: can not find ~/??/lyra-main
from lyra.
That seems to be problem of bazel not recognizing chinese characters. But that folder is not part of our repository, rather the path where you cloned it into. It should be as easy as moving the Lyra folder into a path with no chinese characters.
from lyra.
Since it has been mentioned in this thread, the new Lyra 1.2.0 release now has experimental Mac support.
from lyra.
Related Issues (20)
- 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
- Build fails on MacOS due to bad Tensorflow link HOT 1
- Noise is being added to generated speech in Python E2E flow (TFLite Models) HOT 2
- The Lyra Parameters
- bazel build -c opt lyra/cli_example:encoder_main
- support of sdk 34 and ndk
- Why does the sampling result need to be multiplied by 256?
- cannot build --config=android_arm64
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.