Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI'm having some trouble getting my IDE project to build. I'm starting with a fresh install of Quartus 4.2, Nios2 1.1, and the latest eCos and Linux from this site. My project directory initially contains two files:
main.c#include <stdio.h>
int main(void)
{
printf("Hello, eCos world!\n");
return 0;
} Makefile # Mostly written by Jonathan Larmour, Red Hat, Inc.# Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20# This file is in the public domain and may be used for any purpose
INSTALL_DIR=../dcpa-test_install
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
XCC = $(ECOS_COMMAND_PREFIX)gcc
XCXX = $(XCC)
XLD = $(XCC)
CFLAGS = -I$(INSTALL_DIR)/include
CXXFLAGS = $(CFLAGS)
LDFLAGS = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
# RULES
.PHONY: program clean
program: dcpa-test
$(INSTALL_DIR)/program_flash $<
dcpa-test: main.o
$(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $<
clean:
-rm -f hello *.o
%.o: %.c
$(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
%.o: %.cxx
$(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
%.o: %.cc
$(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $< I have built the library using nios2configtool; it is located in ../dcpa-test_install. I can build this code from the command line and it builds successfully. I then do New Advanced C/C++ Project, name it DCPATest, set the location to the directory with my two files, and Finish. I then right-click on my project in the list, and select Build. A window (looks like the build window) flickers on my screen. Right-clicking the project again shows that the Build Project item has disappeared from the menu. Selecting Build Project from the Project menu does the same thing. Right-clicking my project and selecting Properties brings up a window with "C/C++ Make Project" selected, the Make Builder tab in front, and it says "Missing builder information on project." I think I missed a step in setting my project up. Any ideas?