Code: Select all
main.c29:22 fatal error: bcm_host.h: No much file or directoryCode: Select all
#include "bcm_host.h"Code: Select all
main.c29:22 fatal error: bcm_host.h: No much file or directoryCode: Select all
#include "bcm_host.h"
I don't quite understand, how do I build and then run it from the terminal?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.
Code: Select all
cd /opt/vc/src/hello_pi/hello_font
Code: Select all
sudo nano ./Makefile
Code: Select all
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
Code: Select all
cc: error: /usr/lib/libfreetype.so: No such file or directory
make: *** [hello_font.bin] Error 1
rm main.o

Code: Select all
E: Invalid operation libfreetype-dev

Code: Select all
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
Squeeze, and I changed the directory as per:RichardUK wrote:Which distro you using?
In the make file; so that's nice, and that worked. It still has a problem over the line:dom wrote:Are you on Squeeze or Wheezy ? On Wheezy the file is here:
/usr/lib/arm-linux-gnueabi/libfreetype.so
Code: Select all
#include "bcm_host.h"