nvda2 speech and debian install error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi

I am trying to compile nvda2speech for debian, but I get the following error when running compile.sh, I have installed all dependencies. How could I solve this problem


Compiling nvda2speechd64.dll
Compiling nvda2speechd32.dll
Compiling nvda2speechd
error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:273:36
    |
273 |         (*c).callback_begin = Some(cb);
    |                               ---- ^^ expected fn pointer, found fn item
    |                               |
    |                               arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32) {cb}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:273:31
    |
273 |         (*c).callback_begin = Some(cb);
    |                               ^^^^^--^
    |                                    |
    |                                    this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:274:34
    |
274 |         (*c).callback_end = Some(cb);
    |                             ---- ^^ expected fn pointer, found fn item
    |                             |
    |                             arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32) {cb}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:274:29
    |
274 |         (*c).callback_end = Some(cb);
    |                             ^^^^^--^
    |                                  |
    |                                  this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:275:37
    |
275 |         (*c).callback_cancel = Some(cb);
    |                                ---- ^^ expected fn pointer, found fn item
    |                                |
    |                                arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32) {cb}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:275:32
    |
275 |         (*c).callback_cancel = Some(cb);
    |                                ^^^^^--^
    |                                     |
    |                                     this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:276:36
    |
276 |         (*c).callback_pause = Some(cb);
    |                               ---- ^^ expected fn pointer, found fn item
    |                               |
    |                               arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32) {cb}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:276:31
    |
276 |         (*c).callback_pause = Some(cb);
    |                               ^^^^^--^
    |                                    |
    |                                    this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:277:37
    |
277 |         (*c).callback_resume = Some(cb);
    |                                ---- ^^ expected fn pointer, found fn item
    |                                |
    |                                arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _) {cb}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32) {cb}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:277:32
    |
277 |         (*c).callback_resume = Some(cb);
    |                                ^^^^^--^
    |                                     |
    |                                     this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

error[E0308]: mismatched types
   --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:278:33
    |
278 |         (*c).callback_im = Some(cb_im);
    |                            ---- ^^^^^ expected fn pointer, found fn item
    |                            |
    |                            arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(u64, u64, _, _)`
                  found fn item `unsafe extern "C" fn(usize, usize, _, _) {cb_im}` help: the type constructed contains `unsafe extern "C" fn(usize, usize, u32, *mut i8) {cb_im}` due to the type of the argument passed    --> /home/sysadmin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/speech-dispatcher-0.15.1/src/lib.rs:278:28
    |
278 |         (*c).callback_im = Some(cb_im);
    |                            ^^^^^-----^
    |                                 |
    |                                 this argument influences the type of `Some`
note: tuple variant defined here
   --> /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/option.rs:580:5

For more information about this error, try `rustc --explain E0308`.
error: could not compile `speech-dispatcher` (lib) due to 6 previous errors
cp: cannot stat 'target/release/nvda2speechd': No such file or directory

https://github.com/RastislavKish/nvda2speechd

Elias

To unsubscribe from this group and stop receiving emails from it, send an email to blinux-list+unsubscribe@xxxxxxxxxx.




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]