I m试图使用AppWeb,i写道了一个非常简单的方案,将AppWeb纳入我的申请中,它利用AppWeb图书馆的一个功能。
#include <appweb/appweb.h>
int main(int argc, char** argv)
{
return maRunWebServer("appweb.conf");
}
I dont know when I compile with gcc (or cc), it compiled successful. But, when I cross compile to Arm architecture, is have been getting error. This is my Makefile:
CC = gcc
LIBS = lib
FLAG = -lappweb -lmpr
TEST_TARGET = embed-appweb
OBJS = embed-appweb
all: clean compile
compile: run
$(CC) -Wall -L$(LIBS) $(FLAG) -o $(TEST_TARGET) $(OBJS).o
run:
$(CC) -Wall -L$(LIBS) $(FLAG) -c $(OBJS).c
clean:
@rm -rf $(TEST_TARGET) $(TEST_TARGET).trc *.o *~
@echo "Clean complete"
I was replace "CC = gcc" to "CC = arm-linux-gcc" in oder to cross compile. The error in my problem is:
arm-linux-gcc -Wall -Llib -lappweb -lmpr -c embed-appweb.c
embed-appweb.c:1:27: error: appweb/appweb.h: No such file or directory
embed-appweb.c: In function main :
embed-appweb.c:4: warning: implicit declaration of function maRunWebServer
make: *** [run] Error 1
i 确信图书馆“校准网”存在于我的夹“校准”中。
有些人可能告诉我,为什么会错? 并向我提出一些建议?
Thanks,