You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This was the fix! I changed it to "-march=native" (not -march-native) in two places in Makefile and make worked with just a couple of insignificant warnings like "unused variable." Thanks again!
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.
The text was updated successfully, but these errors were encountered: