Comments (9)
The README has instructions on how to build a custom clang. Do you still get the error after following those.
from lyra.
Yes, i have used the command "cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=release ../llvm".
from lyra.
Did that work? And did you ninja installed clang afterwards?
from lyra.
It did not work. About ”-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++“, does it support other compiler(gcc or g++)?
from lyra.
Currently only clang is supported, because the std implementations need to be the same as the ones used to build the .so library.
from lyra.
The question seems to be what version of clang you can use to build a bootstrapped clang. We have used clang 6.0 to 12.0 to build our clang toolchain. I believe 3.9.1 is quite old circa 2016. Most package managers have a more recent version that you could try (if in ubuntu/debian, do apt update
before installing clang). We haven't tried using gcc or other compilers, so to keep things simple I would try using a more recent clang.
from lyra.
When i use bazel to build the project, i encountered this error:
WARNING: /search/odin/zhuweifeng/.cache/bazel/bazel_zhuweifeng/cbee13c87ab2f3c1be98316600f9f92e/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 (53 packages loaded, 1576 targets configured).
INFO: Found 1 target...
ERROR: /search/odin/zhuweifeng/.cache/bazel/bazel_zhuweifeng/cbee13c87ab2f3c1be98316600f9f92e/external/com_google_audio_dsp/audio/dsp/portable/BUILD:319:10: Compiling audio/dsp/portable/write_wav_file_generic.c failed: undeclared inclusion(s) in rule '@com_google_audio_dsp//audio/dsp/portable:write_wav_file_generic':
this rule is missing dependency declarations for the following files included by 'audio/dsp/portable/write_wav_file_generic.c':
'/search/odin/zhuweifeng/bazel/llvm-project/build_clang/lib/clang/12.0.0/include/stdint.h'
'/search/odin/zhuweifeng/bazel/llvm-project/build_clang/lib/clang/12.0.0/include/stddef.h'
'/search/odin/zhuweifeng/bazel_/llvm-project/build_clang/lib/clang/12.0.0/include/stdarg.h'
Target //:encoder_main failed to build
INFO: Elapsed time: 55.377s, Critical Path: 13.00s
INFO: 223 processes: 72 internal, 151 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
Can you give me some suggestions?
from lyra.
Did you install the custom clang version like explained in the README file? Particularly, did you run "sudo ninja install"? Because it seems like it isn't finding the includes that should be under /usr/local/lib/clang/12.0.0/include. Maybe @mchinen has more insight on this particular error.
from lyra.
The new Lyra v0.0.2 doesn't require any custom clang installation anymore.
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.