project-navigation
Personal tools

Author Topic: Problem compiling ref_gl.dev  (Read 5302 times)

Offline lfloden

  • Rookie
  • ***
  • Posts: 68
    • View Profile
Problem compiling ref_gl.dev
« on: November 15, 2006, 04:55:23 am »
I'm getting these errors when trying to compile the latest ref_gl.dev file.

../../src/ref_gl/gl_image.o(.text+0xa60):gl_image.c: undefined reference to `png_get_io_ptr'
../../src/ref_gl/gl_image.o(.text+0xaf1):gl_image.c: undefined reference to `png_check_sig'
../../src/ref_gl/gl_image.o(.text+0xb4c):gl_image.c: undefined reference to `png_create_read_struct'
../../src/ref_gl/gl_image.o(.text+0xb8c):gl_image.c: undefined reference to `png_create_info_struct'
../../src/ref_gl/gl_image.o(.text+0xbb0):gl_image.c: undefined reference to `png_destroy_read_struct'
../../src/ref_gl/gl_image.o(.text+0xbe7):gl_image.c: undefined reference to `png_create_info_struct'
../../src/ref_gl/gl_image.o(.text+0xc0a):gl_image.c: undefined reference to `png_destroy_read_struct'
../../src/ref_gl/gl_image.o(.text+0xc50):gl_image.c: undefined reference to `png_set_read_fn'
../../src/ref_gl/gl_image.o(.text+0xc72):gl_image.c: undefined reference to `png_read_png'
../../src/ref_gl/gl_image.o(.text+0xc84):gl_image.c: undefined reference to `png_get_rows'
../../src/ref_gl/gl_image.o(.text+0xdf3):gl_image.c: undefined reference to `png_destroy_read_struct'
../../src/ref_gl/gl_image.o(.text+0xe36):gl_image.c: undefined reference to `png_create_write_struct'
../../src/ref_gl/gl_image.o(.text+0xe5b):gl_image.c: undefined reference to `png_create_info_struct'
../../src/ref_gl/gl_image.o(.text+0xe77):gl_image.c: undefined reference to `png_destroy_write_struct'
../../src/ref_gl/gl_image.o(.text+0xe9a):gl_image.c: undefined reference to `png_init_io'
../../src/ref_gl/gl_image.o(.text+0xee2):gl_image.c: undefined reference to `png_set_IHDR'
../../src/ref_gl/gl_image.o(.text+0xef5):gl_image.c: undefined reference to `png_set_compression_level'
../../src/ref_gl/gl_image.o(.text+0xf08):gl_image.c: undefined reference to `png_set_compression_mem_level'
../../src/ref_gl/gl_image.o(.text+0xf1a):gl_image.c: undefined reference to `png_write_info'
../../src/ref_gl/gl_image.o(.text+0xf7d):gl_image.c: undefined reference to `png_write_image'
../../src/ref_gl/gl_image.o(.text+0xf8f):gl_image.c: undefined reference to `png_write_end'
../../src/ref_gl/gl_image.o(.text+0xfa1):gl_image.c: undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status

dllwrap.exe: c++ exited with status 1
make.exe: *** [../../ref_gl.dll] Error 1

Execution terminated


From what it looks like, a bunch of variables are not set.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Problem compiling ref_gl.dev
« Reply #1 on: November 15, 2006, 08:17:33 am »
this is fixed in current trunk

just add -lpng to your linker flags. (be sure you have the libpng 1.2.8 package installed)