Skip to content
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

Cross-compiling for aarch64, fatal error: limits: No such file or directory #396

Closed
sadilekivan opened this issue Nov 30, 2022 · 1 comment

Comments

@sadilekivan
Copy link

I have a working build when compiling for x86_64, but my final intention is to cross-compile for a RaspberryPi.

Fedora 37 (nushell)
sudo dnf install opencv-devel, which installed the following:

/home/ivan〉dnf list installed | find opencv                                                                                                                                                                     11/30/2022 04:54:15 PM
╭───┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 0 │ opencv.x86_64                                        4.6.0-7.fc37                        @fedora                                      │
│ 1 │ opencv-contrib.x86_64                                4.6.0-7.fc37                        @fedora                                      │
│ 2 │ opencv-core.x86_64                                   4.6.0-7.fc37                        @fedora                                      │
│ 3 │ opencv-devel.x86_64                                  4.6.0-7.fc37                        @fedora                                      │
╰───┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
/home/ivan〉rustc --version                                                                                                                                                                                      11/30/2022 04:54:19 PM
rustc 1.65.0 (897e37553 2022-11-02)

/home/ivan/code/recos〉let-env RUST_BACKTRACE = "full" ; cargo build -vv | save log => log.gz

Anything obvious I missed? I feel like I have all the dependencies I need.

@twistedfall
Copy link
Owner

I would guess that your cross-compile toolchain is not set up/installed properly. I have been successfully cross-building for RPi Zero although from the Gentoo system (using https://wiki.gentoo.org/wiki/Crossdev). This specific error message has already been reported several times, there is an issue for it: #322 Maybe you can find a workaround there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants