Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi,
actually I forgot how I fixed this problem. I tried windows OS later. I found there is a mistake in the makefile. I don't whether it can work in ubuntu. You can try this. Here is the makefile code: # TARGET = my_first_hps # CROSS_COMPILE = arm-linux-gnueabihf- CFLAGS = -g -Wall -I ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/include LDFLAGS = -g -Wall CC = $(CROSS_COMPILE)gcc ARCH= arm build: $(TARGET) $(TARGET): main.o $(CC) $(LDFLAGS) $^ -o $@ %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ .PHONY: clean clean: rm -f $(TARGET) *.a *.o *~ Hope you can fix it.