- Code: Select all
main.c29:22 fatal error: bcm_host.h: No much file or directory
It's having a paddy over the
- Code: Select all
#include "bcm_host.h"
Any help at all?
main.c29:22 fatal error: bcm_host.h: No much file or directory#include "bcm_host.h"RichardUK wrote:I've just tried it and there is an error in the make file. The path to the libfreetype.so is wrong, remove "arm-linux-gnueabi" from the path. After that it built and ran ok from the terminal.
cd /opt/vc/src/hello_pi/hello_font
sudo nano ./Makefile
OBJS=main.o
BIN=hello_font.bin
LDFLAGS+=../libs/vgfont/libvgfont.a -L$(SDKSTAGE)/usr/lib $(SDKSTAGE)/usr/lib/libfreetype.so -lz
include ../Makefile.include
cc: error: /usr/lib/libfreetype.so: No such file or directory
make: *** [hello_font.bin] Error 1
rm main.o
E: Invalid operation libfreetype-dev
0 upgraded, 0 newly installed, 0 to remove and 0 not upgradedRichardUK wrote:Which distro you using?
dom wrote:Are you on Squeeze or Wheezy ? On Wheezy the file is here:
/usr/lib/arm-linux-gnueabi/libfreetype.so
#include "bcm_host.h"