Open sheilbronn opened 1 year ago
Many thanks for your effort @thomasfla!
Hi @sheilbronn, I wish to test this code myself, it looks exactly what I need for my project. Had the same compilation issue myself on a Raspberry Pi Zero and on my Ubuntu machine; removing --std=c99
helps a bit. Finally I changed the Makefile
to:
FILES := ESPNOW_packet.o main.o
EXEFILE := echo
ESCAPE_START=\033[
ESCAPE_END=m
NOCOLOR=$(ESCAPE_START)0$(ESCAPE_END)
YELLOW=$(ESCAPE_START)1;33$(ESCAPE_END)
BLUE=$(ESCAPE_START)1;34$(ESCAPE_END)
RED=$(ESCAPE_START)0;31$(ESCAPE_END)
SDIR = src
IDIR = Includes
ODIR = bin
CC = gcc
CFLAGS = -g -Wall -Wno-unused-variable
INCLUDES = -I ${IDIR}
build:clear clean ${ODIR} ${FILES}
@echo -n "${YELLOW}link ${BLUE}./${ODIR}/${EXEFILE}${NOCOLOR}..."
@$(CC) -lm ${ODIR}/*.o -o ${ODIR}/${EXEFILE}
@echo "done!"
$(FILES): %.o:
@echo -n "${YELLOW}compile ${BLUE}./${SDIR}/$*.c${NOCOLOR}..."
@$(CC) -c ${SDIR}/$*.c $(CFLAGS) $(INCLUDES) -o ${ODIR}/$@
@echo "done!"
${ODIR}:
@echo -n "${YELLOW}create ${BLUE}./${ODIR}${NOCOLOR}..."
@mkdir -p ${ODIR}
@echo "done!"
clean:
@echo -n "${YELLOW}remove ${BLUE}./${ODIR}${NOCOLOR}..."
@rm -rf ${ODIR}
@echo "done!"
clear:
@clear
Are there any updates on this, e.g. regarding compilation on Debian 12 Bookworm?
When running
make
in/Linux-ESPNOW/wifiRawEcho
on a Raspberry Pi with Debian 11 (Bullseye) I get:Am I missing something (some declaration for SO_ATTACH_FILTER and SO_PRIORITY ?) that has to be installed for successfull compilation? Couldn't find any hints when google'ing... TIA!