Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20707 Discussions

Picture Viewer(NiosWiki)

Altera_Forum
Honored Contributor II
1,032 Views

Hi all~ 

 

I have CycloneIII dev kit + NiosII embedded evaluation kit(NEEK). 

 

I do downloaded VGA Picture Viewer at http://nioswiki.jot.com/wikihome/vgaapplicationselectorupdater

 

1. In Nios2 IDE, File > New > NiosII C/C++ Application 

2. Select Blank Project, Name : Picture Viewer, Select cycloneIII_embedded_evaluation_kit_standard_sopc.ptf 

 

3. Copy from neek_vga_picture_viewer\sofeware_examples\app\picture_viewer\*.*  

to Picture Viewer 

4. Build Project 

 

I meet follow error message 

 

 

 

**** Build of configuration Debug for project picture_viewer **** 

 

make -s all includes  

Compiling alt_touchscreen.c... 

Compiling alt_tpo_lcd.c... 

Compiling alt_video_display.c... 

Compiling bmplib.c... 

Compiling elca_wrapper.c... 

Compiling simple_graphics.c... 

Compiling cdjpeg.c... 

Compiling jcomapi.c... 

Compiling jdapimin.c... 

Compiling jdapistd.c... 

Compiling jdatasrc.c... 

Compiling jdcoefct.c... 

Compiling jdcolor.c... 

Compiling jddctmgr.c... 

Compiling jdhuff.c... 

Compiling jdinput.c... 

Compiling jdmainct.c... 

Compiling jdmarker.c... 

Compiling jdmaster.c... 

Compiling jdmerge.c... 

Compiling jdphuff.c... 

Compiling jdpostct.c... 

Compiling jdsample.c... 

Compiling jerror.c... 

Compiling jfdctflt.c... 

Compiling jfdctfst.c... 

Compiling jfdctint.c... 

Compiling jidctflt.c... 

Compiling jidctfst.c... 

Compiling jidctint.c... 

Compiling jidctred.c... 

Compiling jmemmgr.c... 

Compiling jmemnobs.c... 

Compiling jquant1.c... 

Compiling jquant2.c... 

Compiling jutils.c... 

Compiling rdcolmap.c... 

Compiling pic_viewer.c... 

Linking picture_viewer.elf... 

obj/elca_fat/elca_wrapper.o(.text+0x64): In function `my_sd_fstat': 

../elca_fat/elca_wrapper.c:16: undefined reference to `elca_filelength' 

obj/elca_fat/elca_wrapper.o(.text+0xa4): In function `my_sd_close': 

../elca_fat/elca_wrapper.c:26: undefined reference to `elca_fclose' 

obj/elca_fat/elca_wrapper.o(.text+0x1ac): In function `my_sd_open': 

../elca_fat/elca_wrapper.c:56: undefined reference to `elca_fopen' 

obj/elca_fat/elca_wrapper.o(.text+0x1c0):../elca_fat/elca_wrapper.c:58: undefined reference to `elca_fopen' 

obj/elca_fat/elca_wrapper.o(.text+0x250): In function `my_sd_write': 

../elca_fat/elca_wrapper.c:74: undefined reference to `elca_fwrite' 

obj/elca_fat/elca_wrapper.o(.text+0x2bc): In function `my_sd_read': 

../elca_fat/elca_wrapper.c:91: undefined reference to `elca_fread' 

obj/pic_viewer.o(.text+0x34c): In function `filetask': 

../pic_viewer.c:313: undefined reference to `elca_findfirst' 

obj/pic_viewer.o(.text+0x38c):../pic_viewer.c:326: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x390):../pic_viewer.c:326: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x3f8):../pic_viewer.c:330: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x3fc):../pic_viewer.c:330: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x444):../pic_viewer.c:338: undefined reference to `elca_chdir' 

obj/pic_viewer.o(.text+0x464):../pic_viewer.c:341: undefined reference to `elca_findfirst' 

obj/pic_viewer.o(.text+0x488):../pic_viewer.c:347: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x48c):../pic_viewer.c:347: undefined reference to `ffblk' 

obj/pic_viewer.o(.text+0x6f4):../pic_viewer.c:402: undefined reference to `elca_findnext' 

obj/pic_viewer.o(.text+0x718):../pic_viewer.c:404: undefined reference to `elca_chdir' 

obj/pic_viewer.o(.text+0x734):../pic_viewer.c:407: undefined reference to `elca_findfirst' 

obj/pic_viewer.o(.text+0x768):../pic_viewer.c:413: undefined reference to `elca_findnext' 

obj/pic_viewer.o(.text+0x778):../pic_viewer.c:414: undefined reference to `elca_findfirst' 

obj/pic_viewer.o(.text+0x7bc):../pic_viewer.c:428: undefined reference to `elca_findfirst' 

obj/pic_viewer.o(.text+0x2324): In function `initialize_io_devices': 

../pic_viewer.c:1114: undefined reference to `elca_fat_mount' 

obj/pic_viewer.o(.text+0x2384):../pic_viewer.c:1127: undefined reference to `elca_chdir' 

obj/pic_viewer.o(.text+0x23a8):../pic_viewer.c:1131: undefined reference to `elca_chdir' 

collect2: ld returned 1 exit status 

make: *** [picture_viewer.elf] Error 1 

Build completed in 18.844 seconds 

 

Please help me!!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
325 Views

i also have the same problem, help me!

0 Kudos
Altera_Forum
Honored Contributor II
325 Views

picture_viewer (project) is meant to be built in NiosII command shell (software build tools flow).

0 Kudos
Reply