Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

NIOS IDE and makefile problems kill me.

hi http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

sorry for my poor eng.

I&#39;m kor. student and trying to compile h.264 decoder (jm86.zip) for NIOS II, using NIOS IDE tool but I faced big fat desperate problem.

I have makefile( for.. might be for i386??) and all the source code and *.h files, but I cannot compile it for NIOS II by using NIOS IDE!!!

you know I have to compile the source files via NIOS IDE to make it work.

So... anyone have any idea??

how can I open the makefile(I aleady have)?

how can I cross-compile it?

I have makefile like this.

---------------# ### ## Makefile for H.26L encoder# ### ## generated for UNIX/LINUX environments# ## by H. Schwarz# ##

NAME= ldecod

# ## include debug information: 1=yes, 0=no# DBG= 0

DEPEND= dependencies

BINDIR= ../bin

INCDIR= inc

SRCDIR= src

OBJDIR= obj

ADDSRCDIR= ../lcommon/src

ADDINCDIR= ../lcommon/inc

CC= $(shell which gcc)

LIBS= -lm

FLAGS= -ffloat-store -Wall -I$(INCDIR) -I$(ADDINCDIR)

ifdef DBG

SUFFIX= .dbg

FLAGS+= -g

else

SUFFIX=

FLAGS+= -O2

endif

OBJSUF= .o$(SUFFIX)

SRC= $(wildcard $(SRCDIR)/*.c)

ADDSRC= $(wildcard $(ADDSRCDIR)/*.c)

OBJ= $(SRC:$(SRCDIR)/%.c=$(OBJDIR)/%.o$(SUFFIX)) $(ADDSRC:$(ADDSRCDIR)/%.c=$(OBJDIR)/%.o$(SUFFIX))

BIN= $(BINDIR)/$(NAME)$(SUFFIX).exe

default: depend bin tags

dependencies:

@echo "" >dependencies

clean:

@echo remove all objects

@rm -f $(OBJDIR)/*

tags:

@echo update tag table

@ctags inc/*.h src/*.c

bin: $(OBJ)

@echo

@echo &#39;creating binary "$(BIN)"&#39;

@$(CC) -o $(BIN) $(OBJ) $(LIBS)

@echo &#39;... done&#39;

@echo

depend:

@echo

@echo &#39;checking dependencies&#39;

@$(SHELL) -ec &#39;$(CC) -MM $(CFLAGS) -I$(INCDIR) -I$(ADDINCDIR) $(SRC) $(ADDSRC)

| sed &#39;\&#39;&#39;s@\(.*\)\.o[ :]@$(OBJDIR)/\1.o$(SUFFIX):@g&#39;\&#39;&#39;

>$(DEPEND)&#39;

@echo

$(OBJDIR)/%.o$(SUFFIX): $(SRCDIR)/%.c

@echo &#39;compiling object file "$@" ...&#39;

@$(CC) -c -o $@ $(FLAGS) $<

$(OBJDIR)/%.o$(SUFFIX): $(ADDSRCDIR)/%.c

@echo &#39;compiling object file "$@" ...&#39;

@$(CC) -c -o $@ $(FLAGS) $<

include $(DEPEND)

---------------------------------

and I have all the source files.

http://ftp3.itu.ch/av-arch/jvt-site/ (http://ftp3.itu.ch/av-arch/jvt-site/)

here.

reference_software/jm86.zip

plz help me save me

I&#39;m about to die... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
No RepliesBe the first to reply