Skip to content

Compilation on Raspberry Pi 3 with Ubuntu Mate 16.04 #16

@teute03

Description

@teute03

I had a issue to compile the library on a Raspberry Pi 3 with Ubuntu Mate 16.04, with this error:
g++ -Wall -fPIC -fno-rtti -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -c ArduiPi_OLED.cpp
In file included from /usr/include/stdio.h:933:0,
from ./ArduiPi_OLED_lib.h:21,
from ArduiPi_OLED.cpp:36:
/usr/include/arm-linux-gnueabihf/bits/stdio.h: In function ‘int getchar()’:
/usr/include/arm-linux-gnueabihf/bits/stdio.h:44:14: sorry, unimplemented: Thumb-1 hard-float VFP ABI
getchar (void)
^

I just updated the Makefile to change the CCFLAGS to "-march-native" and it works.

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