qingxiang-jia / full-cloud-pinyin

An attempt to use Google Input Tools as the backend for input methods on Linux
GNU General Public License v3.0
7 stars 0 forks source link

Build error in latest changes #14

Closed monk-blade closed 10 months ago

monk-blade commented 10 months ago
parallels@ubuntu-linux-22-04-desktop:~/projects/full-cloud-pinyin$ cargo build 
   Compiling fcp v0.1.0 (/home/parallels/projects/full-cloud-pinyin)
error[E0659]: `zmq` is ambiguous
  --> src/main.rs:3:5
   |
3  | use zmq::Server;
   |     ^^^ ambiguous name
   |
   = note: ambiguous because of multiple potential import sources
   = note: `zmq` could refer to a crate passed with `--extern`
   = help: use `::zmq` to refer to this crate unambiguously
note: `zmq` could also refer to the module defined here
  --> src/main.rs:14:1
   |
14 | pub mod zmq;
   | ^^^^^^^^^^^^
   = help: use `crate::zmq` to refer to this module unambiguously

For more information about this error, try `rustc --explain E0659`.
error: could not compile `fcp` (bin "fcp") due to previous error
qingxiang-jia commented 10 months ago

I cannot reproduce this. I am using main at 105e203.

qingxiang-jia commented 10 months ago

It might be your Rust compiler. Can you try using the latest (release version) to build it? Ubuntu usually has vastly outdated packages (similar to what happened last time with ZMQ in C++).

To try latest Rust, use rustup.

monk-blade commented 10 months ago

Yes. solved it. Thanks.