chimpoid
Member
Hi all,
I finally figured out the setup for compiling with image, mixer etc. in SDL but on running make I am getting the following errors.
Functions seem ok and the files are being found now but I am worried that my SDL image lib might be chewed. Can anyone shed any light on this?
Thanks
Chimpoid
I finally figured out the setup for compiling with image, mixer etc. in SDL but on running make I am getting the following errors.
Functions seem ok and the files are being found now but I am worried that my SDL image lib might be chewed. Can anyone shed any light on this?
Code:
garhol@ubuntu:~/gpdev/whack$ make
/usr/local/devkitPro/devkitGP2X/bin/arm-linux-g++ -static -o whack.gpe main.o `/usr/local/devkitPro/devkitGP2X/bin/arm-linux-sdl-config --libs` -lSDLmain -lSDL_image -lSDL_mixer -lSDL_ttf
/usr/local/devkitPro/devkitGP2X//lib/libSDL_image.a(IMG_jpg.o): In function `IMG_LoadJPG_RW':
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:206: undefined reference to `jpeg_std_error'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:217: undefined reference to `jpeg_CreateDecompress'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:219: undefined reference to `jpeg_read_header'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:230: undefined reference to `jpeg_calc_output_dimensions'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:247: undefined reference to `jpeg_start_decompress'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:253: undefined reference to `jpeg_finish_decompress'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:257: undefined reference to `jpeg_destroy_decompress'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:251: undefined reference to `jpeg_read_scanlines'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:211: undefined reference to `jpeg_destroy_decompress'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_jpg.c:159: undefined reference to `jpeg_resync_to_restart'
/usr/local/devkitPro/devkitGP2X//lib/libSDL_image.a(IMG_png.o): In function `IMG_isPNG':
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:86: undefined reference to `png_sig_cmp'
/usr/local/devkitPro/devkitGP2X//lib/libSDL_image.a(IMG_png.o): In function `png_read_data':
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:94: undefined reference to `png_get_io_ptr'
/usr/local/devkitPro/devkitGP2X//lib/libSDL_image.a(IMG_png.o): In function `IMG_LoadPNG_RW':
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:123: undefined reference to `png_create_read_struct'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:131: undefined reference to `png_create_info_struct'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:281: undefined reference to `png_destroy_read_struct'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:147: undefined reference to `png_set_read_fn'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:150: undefined reference to `png_read_info'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:151: undefined reference to `png_get_IHDR'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:155: undefined reference to `png_set_strip_16'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:160: undefined reference to `png_set_packing'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:169: undefined reference to `png_get_valid'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:198: undefined reference to `png_read_update_info'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:200: undefined reference to `png_get_IHDR'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:250: undefined reference to `png_read_image'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:172: undefined reference to `png_get_tRNS'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:189: undefined reference to `png_set_expand'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:164: undefined reference to `png_set_expand'
/usr/local/gp2x/libs-gp2x/SDL_image/IMG_png.c:196: undefined reference to `png_set_gray_to_rgb'
collect2: ld returned 1 exit status
make: *** [whack.gpe] Error 1
Thanks
Chimpoid