Forum Discussion

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

NIOS IDE and makefile problems kill me.

hi

sorry for my poor eng.

I'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.

Code:

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

###

### * * 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 'creating binary "$(BIN)"'

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

****@echo '... done'

****@echo

depend:

****@echo

****@echo 'checking dependencies'

****@$(SHELL) -ec '$(CC) -MM $(CFLAGS) -I$(INCDIR) -I$(ADDINCDIR) $(SRC) $(ADDSRC) * * * * * * * * *\

* * * * | sed '\''s@\(.*\)\.o[ :]@$(OBJDIR)/\1.o$(SUFFIX):@g'\'' * * * * * * * \

* * * * >$(DEPEND)'

****@echo

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

****@echo 'compiling object file "$@" ...'

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

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

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

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

include $(DEPEND)

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

[CODE]

and I have all the source files.

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

here.

reference_software/jm86.zip

plz help me save me

I&#39;m about to die...

No RepliesBe the first to reply