AnsweredAssumed Answered

Launch SDL examples on BF548 EZKIT

Question asked by AlexNikitin on May 29, 2012
Latest reply on Jun 3, 2012 by Aaronwu

Hello. I am trying to launch SDL examples on BF548 EZKIT. But receive some errors:

 

/bin/bash ./libtool --tag=CC   --mode=link bfin-linux-uclibc-gcc  -I/mnt/cobd3/home/justice/bfl2011/staging/usr/include/libpng12   -pipe -Wall -g -O2      -mcpu=bf548-0.2 -D_GNU_SOURCE=1 -D_REENTRANT -I/mnt/cobd3/home/justice/bfl2011/staging/usr/include/SDL    -mcpu=bf548-0.2 -o showimage showimage.o libSDL_image.la -Wl,-rpath,/usr/lib -lSDL -lpthread                                              

libtool: link: bfin-linux-uclibc-gcc -I/mnt/cobd3/home/justice/bfl2011/staging/usr/include/libpng12 -pipe -Wall -g -O2 -mcpu=bf548-0.2 -D_GNU_SOURCE=1 -D_REENTRANT -I/mnt/cobd3/home/justice/bfl2011/staging/usr/include/SDL -mcpu=bf548-0.2 -o .libs/showimage showimage.o -Wl,-rpath -Wl,/usr/lib  ./.libs/libSDL_image.so -lpng -lz -ljpeg -lSDL -lpthread       

./.libs/libSDL_image.so: undefined reference to `_png_read_info'               

./.libs/libSDL_image.so: undefined reference to `_png_get_io_ptr'              

./.libs/libSDL_image.so: undefined reference to `_png_set_gray_to_rgb'         

./.libs/libSDL_image.so: undefined reference to `_png_set_expand'              

./.libs/libSDL_image.so: undefined reference to `_png_sig_cmp'

./.libs/libSDL_image.so: undefined reference to `_png_get_valid'               

./.libs/libSDL_image.so: undefined reference to `_png_create_read_struct'      

./.libs/libSDL_image.so: undefined reference to `_png_set_packing'             

./.libs/libSDL_image.so: undefined reference to `_png_create_info_struct'      

./.libs/libSDL_image.so: undefined reference to `_png_destroy_read_struct'     

./.libs/libSDL_image.so: undefined reference to `_png_set_strip_16'            

./.libs/libSDL_image.so: undefined reference to `_png_get_tRNS'                

./.libs/libSDL_image.so: undefined reference to `_png_read_update_info'        

./.libs/libSDL_image.so: undefined reference to `_png_set_read_fn'             

./.libs/libSDL_image.so: undefined reference to `_png_get_IHDR'                

./.libs/libSDL_image.so: undefined reference to `_png_read_image'              

collect2: ld returned 1 exit status                                            

make[4]: *** [showimage] Error 1                                               

make[4]: Leaving directory

`/mnt/cobd3/home/justice/bfl2011/lib/SDL_image/build-SDL_image-1.2.10'                                                              

make[3]: *** [all] Error 2                                                     

make[3]: Leaving directory `/mnt/cobd3/home/justice/bfl2011/lib/SDL_image'     

make[2]: *** [SDL_image] Error 2                                               

make[2]: Leaving directory `/mnt/cobd3/home/justice/bfl2011/lib'               

make[1]: *** [all] Error 2                                                     

make[1]: Leaving directory `/mnt/cobd3/home/justice/bfl2011/lib'               

make: *** [subdirs] Error 1

 

Please tell me how may I fix that?

Outcomes