hi, i'm new user for openWrt.
i write a simple tcp server with wolfSSL libary , it can build in Ubuntu.
But when i build in MT7620a evk board , can't find include file .
My question : about opkg install library (like wolfssl) , where is include file path ?
This is my Makefile:
LIB_PATH = /usr/local
#CFLAGS = -Wall -I$(LIB_PATH)/include
CFLAGS = -I$(LIB_PATH)/include
LIBS = -L$(LIB_PATH)/lib -lm
# option variables
DYN_LIB = -lwolfssl
STATIC_LIB = $(LIB_PATH)/lib/libwolfssl.a
DEBUG_FLAGS = -g -DDEBUG
DEBUG_INC_PATHS = -MD
OPTIMIZE = -Os
# Options
#CFLAGS+=$(DEBUG_FLAGS)
CFLAGS+=$(OPTIMIZE)
#CFLAGS+=$(QAT_FLAGS)
#LIBS+=$(QAT_LIBS)
#LIBS+=$(STATIC_LIB)
LIBS+=$(DYN_LIB)
ifeq ("$(platform)","x64")
CC =gcc
LIB =x64
TCP_LDFLAGS =
DAEMON_SRC = tcpserver.c
DAEMON_INC =-I./ -I./include $(LIBS) -lpthread
endif
ifeq ("$(platform)","cross")
CC =mipsel-openwrt-linux-gcc
LIB =
TCP_LDFLAGS =-ldl
DAEMON_SRC =tcpserver.c
DAEMON_INC =-I./ -I./include $(LIBS) -lpthread
endif
ifeq ("$(platform)","")
CC =mipsel-openwrt-linux-musl-gcc
LIB =
TCP_LDFLAGS = -g
DAEMON_SRC =tcpserver.c
DAEMON_INC =-I./ -I./include $(LIBS)
endif
all:
$(CC) $(DAEMON_SRC) $(DAEMON_INC) $(TCP_LDFLAGS) $(CFLAGS) -o light_daemon
clean:
rm light_daemon
when build in evk board , this is error message
root@OpenWrt:/tmp/nfs/light_1119# make
mipsel-openwrt-linux-musl-gcc tcpserver.c -I./ -I./include -L/usr/local/lib -lm -lwolfssl -g -I/usr/local/include -Os -o light_daemon
In file included from tcpserver.c:3:0:
tcpserver.h:19:29: fatal error: wolfssl/options.h: No such file or directory
compilation terminated.
make: *** [Makefile:47: all] Error 1