Hallo Leute,
ich habe ein winziges Programm zur Anzeige einer Uhrzeit / Stoppuhr / ... erstellt.
Auf meiner VM unter Debian konnte ich es kompilieren,
jetzt wollte ich es am Raspberry unter archlinux compilieren und bekomme eine Fehlermeldung.
Vielleicht sollte ich dazu sagen dass ich auf Linux und C totaler Neuling bin,
wenngleich ich seit vielen Jahren professionell programmiere.
Ich denke dass es auch nur ein kurzer Ausflug in diese Materie bleiben wird.
Vielen Dank für eure Hilfe
Mandy
Danke für den Hinweis, so kann man das ganze auch lesen :-)
[root@alarmpi krs-display]# make
g++ -c display.c
In file included from display.c:6:0:
/usr/include/directfb/directfb.h:42:23: fatal error: dfb_types.h: No such file or directory
#include <dfb_types.h>
^
compilation terminated.
Makefile:19: recipe for target 'display.o' failed
make: *** [display.o] Error 1
[root@alarmpi krs-display]#
Das Makefile dazu, den dort vermute ich das Problem:
CC = g++
PROG = main
LIB = -ldirect -lfusion -pthread -lrt -ldirectfb
INCLUDES = -I /usr/include/directfb
all: main.o communication.o display.o
$(CC) $(INC) $(LIB) $(INCLUDES) -o main $^
clean:
rm -f *.o
main.o: main.c
$(CC) -c $^
communication.o: communication.c
$(CC) -c $^
display.o: display.c
$(CC) -c $^