Skip to content

Cross-Compilation for Raspberry Pi 4 Not Working #1

@busFred

Description

@busFred

The cross-compilation settings in cross_files.txt doesn't work for the latest Raspberry Pi 4.
I changed the [host_macine] section to the following:

[host_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'

But when I copied the compiled files to the Raspberry Pi 4, it shows the following message:
bash: ./example.cpp.o: cannot execute binary file: Exec format error
I also tried to execute the "sca3300-exe" file, but it didn't work. The file exists and has been set to be executable, but the terminal keeps saying the file doesn't exist when I tries to execute it.

I also tried to do local compilation, but the Raspberry Pi 4 always freeze when linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions