I wrote a code to control a servo. But in order to build that I was using the terminal with a simple makefile. But now I decided to build my code at Eclipse IDE. However I could not figure out how. Here is the makefile:
LIBUSB = /usr/lib TARGET = servochk OPTS=-Wall -D_GNU_SOURCE OBJS= $(TARGET).o sub2usbfunc.o usblin.o CFLAGS=$(OPTS) -I$(LIBUSB)/include #LDFLAGS=-L$(LIBUSB)/lib -lusb # Looks like there was an error here... LDFLAGS=-lusb all: $(TARGET) #fsusb_demo $(TARGET): $(OBJS) #fsusb_demo: $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) clean: -rm $(TARGET) *.o
I added all the .c,.h.,.o files into the folder which Eclipse IDE created. However when I try to build it I get the error message:
Launch failed. Binary not found.
What should I do? Could you please help me?
By the way, what I mean from all the .c,.h,.o files are: servochk.c -> main code to control the servo servochk.o sub2.hs ub2usbfunc.c sub2usbfunc.o usblin.c usblin.h usblin.o