Hi Kornel,
I installed Ubuntu Linux virtual OS on my host laptop.
I modified the PKG_CONFIG lib.rs code as you described in the link which you shared.
I used the following command to cross-compile my source code:
cargo build --target=armv7-unknown-linux-gnueabihf
after doing so, I got the following error message from the compiler:
Compiling pkg-config v0.3.17
error[E0583]: file not found for module compress
** --> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:17:1**
** |**
17 | pub mod compress;
** | ^^^^^^^^^^^^^^^^^**
** |**
** = help: to create the module compress
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/compress.rs"**
error[E0583]: file not found for module control
** --> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:18:1**
** |**
18 | pub mod control;
** | ^^^^^^^^^^^^^^^^**
** |**
** = help: to create the module control
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/control.rs"**
error[E0583]: file not found for module data
** --> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:19:1**
** |**
19 | pub mod data;
** | ^^^^^^^^^^^^^**
** |**
** = help: to create the module data
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/data.rs"**
error[E0583]: file not found for module manifest
** --> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:20:1**
** |**
20 | pub mod manifest;
** | ^^^^^^^^^^^^^^^^^**
** |**
** = help: to create the module manifest
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/manifest.rs"**
error[E0583]: file not found for module dependencies
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:21:1
|
21 | mod dependencies;
| ^^^^^^^^^^^^^^^^^
|
= help: to create the module dependencies
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/dependencies.rs"
error[E0583]: file not found for module ok_or
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:22:1
|
22 | mod ok_or;
| ^^^^^^^^^^
|
= help: to create the module ok_or
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/ok_or.rs"
error[E0583]: file not found for module wordsplit
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:23:1
|
23 | mod wordsplit;
| ^^^^^^^^^^^^^^
|
= help: to create the module wordsplit
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/wordsplit.rs"
error[E0583]: file not found for module error
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:24:1
|
24 | mod error;
| ^^^^^^^^^^
|
= help: to create the module error
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/error.rs"
error[E0583]: file not found for module tararchive
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:25:1
|
25 | mod tararchive;
| ^^^^^^^^^^^^^^^
|
= help: to create the module tararchive
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/tararchive.rs"
error[E0583]: file not found for module debarchive
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:26:1
|
26 | mod debarchive;
| ^^^^^^^^^^^^^^^
|
= help: to create the module debarchive
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/debarchive.rs"
error[E0583]: file not found for module config
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:27:1
|
27 | mod config;
| ^^^^^^^^^^^
|
= help: to create the module config
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/config.rs"
error[E0583]: file not found for module pathbytes
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:28:1
|
28 | mod pathbytes;
| ^^^^^^^^^^^^^^
|
= help: to create the module pathbytes
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/pathbytes.rs"
error[E0583]: file not found for module listener
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:29:1
|
29 | pub mod listener;
| ^^^^^^^^^^^^^^^^^
|
= help: to create the module listener
, create file "/home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/listener.rs"
error[E0463]: can't find crate for quick_error
--> /home/eybi/.cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.17/src/lib.rs:16:14
|
16 | #[macro_use] extern crate quick_error;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to 14 previous errors
Some errors have detailed explanations: E0463, E0583.
For more information about an error, try rustc --explain E0463
"
========================================================================
Any suggestion what to do next?