Leyart / aseprite

Automatically exported from code.google.com/p/aseprite
0 stars 0 forks source link

Compile error on Ubuntu 14.04: undefined reference to `crc32' #421

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compile error under 14.04:

Scanning dependencies of target grid_ui_unittest
[ 97%] Building CXX object 
src/CMakeFiles/grid_ui_unittest.dir/ui/grid_ui_unittest.cpp.o
Linking CXX executable grid_ui_unittest
../lib/liblibpng.a(png.c.o): In function `png_reset_crc':
/home/b0073d/code/aseprite/third_party/libpng/png.c:111: undefined reference to 
`crc32'
../lib/liblibpng.a(png.c.o): In function `png_calculate_crc':
/home/b0073d/code/aseprite/third_party/libpng/png.c:152: undefined reference to 
`crc32'
../lib/liblibpng.a(png.c.o): In function `png_reset_zstream':
/home/b0073d/code/aseprite/third_party/libpng/png.c:757: undefined reference to 
`inflateReset'
../lib/liblibpng.a(pngread.c.o): In function `png_create_read_struct_2':
/home/b0073d/code/aseprite/third_party/libpng/pngread.c:123: undefined 
reference to `inflateInit_'
../lib/liblibpng.a(pngread.c.o): In function `png_read_row':
/home/b0073d/code/aseprite/third_party/libpng/pngread.c:561: undefined 
reference to `inflate'
../lib/liblibpng.a(pngread.c.o): In function `png_read_destroy':
/home/b0073d/code/aseprite/third_party/libpng/pngread.c:1067: undefined 
reference to `inflateEnd'
../lib/liblibpng.a(pngrutil.c.o): In function `png_inflate':
/home/b0073d/code/aseprite/third_party/libpng/pngrutil.c:333: undefined 
reference to `inflate'
/home/b0073d/code/aseprite/third_party/libpng/pngrutil.c:362: undefined 
reference to `inflateReset'
../lib/liblibpng.a(pngrutil.c.o): In function `png_read_finish_row':
/home/b0073d/code/aseprite/third_party/libpng/pngrutil.c:3847: undefined 
reference to `inflate'
/home/b0073d/code/aseprite/third_party/libpng/pngrutil.c:3879: undefined 
reference to `inflateReset'
../lib/liblibpng.a(pngwrite.c.o): In function `png_write_flush':
/home/b0073d/code/aseprite/third_party/libpng/pngwrite.c:841: undefined 
reference to `deflate'
../lib/liblibpng.a(pngwrite.c.o): In function `png_write_destroy':
/home/b0073d/code/aseprite/third_party/libpng/pngwrite.c:959: undefined 
reference to `deflateEnd'
../lib/liblibpng.a(pngwutil.c.o): In function `png_zlib_claim':
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:242: undefined 
reference to `deflateInit2_'
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:232: undefined 
reference to `deflateEnd'
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:251: undefined 
reference to `deflateInit2_'
../lib/liblibpng.a(pngwutil.c.o): In function `png_text_compress':
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:434: undefined 
reference to `deflate'
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:498: undefined 
reference to `deflate'
../lib/liblibpng.a(pngwutil.c.o): In function `png_zlib_release':
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:312: undefined 
reference to `deflateReset'
../lib/liblibpng.a(pngwutil.c.o): In function `png_write_finish_row':
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:2197: undefined 
reference to `deflate'
../lib/liblibpng.a(pngwutil.c.o): In function `png_write_filtered_row':
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:3136: undefined 
reference to `deflate'
/home/b0073d/code/aseprite/third_party/libpng/pngwutil.c:3136: undefined 
reference to `deflate'
collect2: error: ld returned 1 exit status
make[2]: *** [src/grid_ui_unittest] Error 1
make[1]: *** [src/CMakeFiles/grid_ui_unittest.dir/all] Error 2
make: *** [all] Error 2
What is the compilation error in the 'master' branch? WARNING: You
shouldn't report errors for 'dev' branch without a patch.

What compiler and OS are you using? Is it 64-bits?

Original issue reported on code.google.com by t...@b0073d.com on 30 Jun 2014 at 9:06

GoogleCodeExporter commented 9 years ago
This was in the Master branch. x64.

Original comment by t...@b0073d.com on 30 Jun 2014 at 9:16

GoogleCodeExporter commented 9 years ago
Running 'sudo apt-get build-dep aseprite' has fixed this.

b0073d@scimitar:~/code/aseprite/build$ sudo apt-get build-dep aseprite 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
The following NEW packages will be installed:
  debhelper dh-apparmor liballegro4-dev liballegro4.4 libgif-dev libgtest-dev
  libjpeg-turbo8-dev libjpeg8-dev libjpgalleg4.4 libloadpng4-dev libloadpng4.4
  libpng12-dev libtinyxml-dev libtinyxml2.6.2 libxcursor-dev libxext-dev
  libxfixes-dev libxpm-dev libxrender-dev libxxf86vm-dev po-debconf
  x11proto-fixes-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xf86vidmode-dev zlib1g-dev

Original comment by t...@b0073d.com on 30 Jun 2014 at 9:41