-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build on arm linux #5
Comments
And what happens when you follow the instructions in the error and set
LIBCLANG_PATH? Does that not resolve it?
|
i just went and installed a new version of libclang and now i get
|
it also appears to be the same error being hit by docs.rs |
I just tried running sudo apt-get install -y libspeechd-dev as that is what you do in your unit tests and I now get this:
|
I don't have access to an arm box to test on, and I can't seem to
duplicate this in either WSL or in GitHub's x86 CI. If you could debug
this and send a PR, that'd be helpful.
Thanks!
|
I'm a bit confused as a lot of the errors seem to be type errors related to the intergers |
You probably want to look at
https://github.com/ndarilek/speech-dispatcher-rs.
I just casually tried swapping the types to `u8` and the build failed.
Looks like bindgen may be generating slightly different code on ARM.
If you can tweak enough types to get speech-dispatcher-rs building on
ARM and submit a PR, I'll add the necessary conditional compilation
magic to make it work on X86 and push out a new release. It shouldn't be
too challenging--just tweak the types in the failing function signatures
until it builds. I can't do it because I don't have an ARM system, sorry.
|
Just wanted to mention I'm getting a similar error on a MacBook Air M1 (that is, ARM):
|
These should all be fairly easy fixes--just cast the variables correctly
and add a feature check that matches the ARM version of whatever
platform you're on--but I'm unlikely to have anything myself anytime
soon so it'll have to come from someone else. Sorry.
|
The compilation error has been fixed on the M1, but I can't get speech working on this platform. I also vaguely recall that I didn't get speech working on iOS either, but at the time I didn't debug further since I had other things to work on. Hoping the Linux issues should be easily fixed, since the compiler is catching them. I'm more worried about macOS, though, since the only way to call these APIs is to unsafely poke a bunch of ObjC at runtime and the compiler can't help. If anyone has any deeper mac experience, that'd be greatly appreciated. In the meantime, I'll see if I can at least score an Arm Linux server and get things compiling there. I'm curious if this is a general Arm failure, or if it just doesn't work on macOS. |
I have zero experience, but just wanted to let you know that I successfully get speech on my M1 using this: #7 |
@prewk meet @Ghorthalon. You're both trying to get this working on M1s, except it works for you and doesn't for him. It also works for me on my Intel mac. I am genuinely at a loss as to what to try next, other than posting to the Rust forums and hoping some mac Rust expert helps out. Would you two mind connecting sometime and seeing what you can figure out? You'll want to use master, since I added more logging and fixed the M1 compilation issue. I'd be very interested in any differences between your systems that might account for this behavior. Are you using different default languages, different default voices, or something else? Thanks a bunch. |
I basically just did let mut tts = TTS::new(Backends::AppKit).unwrap();
speaker.tts.speak("foo".to_string(), true).unwrap(); so everything default, I guess. (with #7) |
Oh, so you're explicitly using the AppKit backend? Never mind, then. I
thought you were using the default. Sorry for the ping, Talon.
|
Ahh, no my bad I might've just misunderstood how to use it properly haha. |
I'd be curious if swapping that out for a call to `TTS::default()?`
breaks things for you too. That should pick a sensible default for
whatever platform you're on, which in your case will be AVFoundation.
It's breaking for other folks, but learning that it breaks for you too
would at least give me a bit more closure. :)
|
Tried it - compiled but no sound! |
OK, good, we're back to everyone having the same problem. Whew. :P
|
Haha that's good (and bad!). |
Coming to this late, would suggest that usually when considering a conditional cast to |
Expected Behaviour: Project builds and runs successfully after adding tts to the dependencies list
Actual Behaviour: Project fails to run despite not using the library anywhere in code
running with a backtrace yields the following:
The text was updated successfully, but these errors were encountered: