Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi leewood,
I got little bit confused by looking at your prints. So first I will answer your query. <div class='quotetop'>QUOTE </div> --- Quote Start --- And I do not understand the flag "-l" ("-I" is the option in your gcc include flag, current path is only -I/home/leewood/uClinux-dist-test ),What dose it mean[/b] --- Quote End --- -I is for Include, its NOT "-l" or "-L" (I for Ireland or India). I took this print out of your previous mail (first post). In your first mail just check below following string.make: Entering directory `/home/leewood/uClinux-dist-test/user/w3cam' ---------------------------------------------------------------------------------------------- Makefile part which you have pasted OBJ = w3cam.o cgi.o v4l.o
default: w3cam.cgi vidcat vidcat.1 README ppmtoascii w3camd/w3camd
w3cam.cgi: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(LDLIBS$(LDLIBS_$@)) What I can observe here is your CFLAGS are not used while generating w3cam.o Dependency is like this w3cam.cgi -> w3cam.o -> w3cam.c -> *.h So add CFLAGS in you make file string like below w3cam.cgi: $(OBJ) $(CC) $ (CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(LDLIBS$(LDLIBS_$@)) or change the order w3cam.cgi: $(OBJ) $(CC) $(LDFLAGS) $ (CFLAGS) -o $@ $(OBJ) $(LIBS) $(LDLIBS$(LDLIBS_$@)) thanks, Ankur