Skip to content

which cross compiler can i use on raspberry pi 2? #792

Closed

Description

@zaazbb

on raspberry pi 1 B,
I used gcc-4.7-linaro-rpi-gnueabihf.tbz as a cross compile for qt.
but on raspberry pi 2, which cross compiler can i use, gcc-4.7-linaro-rpi-gnueabihf.tbz was configed for arm11, it should not work for raspberry pi 2.

Activity

  1. popcornmix commented on Feb 4, 2015

    @popcornmix
    Collaborator

    An arm11 target will work fine (and allows the library to be used on both Pi1 and Pi2 (like rest of raspbian).

    If you to force a Pi2 only build then -mcpu=cortex-a7 is the right flag.
    You may also want to play with -mfpu=neon-vfpv4

  2. zaazbb commented on Feb 5, 2015

    @zaazbb
    Author

    thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions