This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

unknown CPU architecture

Hi, Guys,

I compiled a shared object using mali GPU. But when linking it to produce an application I got an error:.../libGLES_mali.so:unknown CPU architecture.The CFLAGES is  -mcpu=cortex-a15  -O2.

What's wrong? I need some help.

Best Regards!

Parents
  • I have built a binary that links against libGLES_mail. I compiled it on Intel Core(TM) platform to run it on the ARM and the toolchain was a corss-platform version (android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-gcc-4.9). The libGLES_mail.so I got is from a device with platform mt6752.

    In addtion, today I exchanged the gcc version to an x64 version (android-ndk-r10c/toolchains/aarch64-linux-android-4.9/prebuilt/windows/bin/aarch64-linux-android-gcc-4.9).The error "unknown CPU architecture" was gone instead of an "skip incompatible -lCLES_mali" error.

Reply
  • I have built a binary that links against libGLES_mail. I compiled it on Intel Core(TM) platform to run it on the ARM and the toolchain was a corss-platform version (android-ndk-r10c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-gcc-4.9). The libGLES_mail.so I got is from a device with platform mt6752.

    In addtion, today I exchanged the gcc version to an x64 version (android-ndk-r10c/toolchains/aarch64-linux-android-4.9/prebuilt/windows/bin/aarch64-linux-android-gcc-4.9).The error "unknown CPU architecture" was gone instead of an "skip incompatible -lCLES_mali" error.

Children