-
Notifications
You must be signed in to change notification settings - Fork 230
Description
I'm trying to compile sources using ninja, unfortunately I'm getting the error bellow. Any idea? I can use cmake (CMakeLists.txt file in src folder), but I'm not sure this is for the production use. And finally, could you please provide me w/ the .pc file? Thanks a lot.
[18/18] g++ -O2 -ftree-vectorize -DNDEBUG obj/src/flif-enc.o obj/src/flif.o obj/src/flif-dec.o obj/src/io.o obj/src/common.o obj/src/...rc/image/image.o obj/src/image/crc32k.o obj/src/image/color_range.o obj/src/transform/factory.o pkg-config --libs libpng -o src/flif
FAILED: src/flif
g++ -O2 -ftree-vectorize -DNDEBUG obj/src/flif-enc.o obj/src/flif.o obj/src/flif-dec.o obj/src/io.o obj/src/common.o obj/src/maniac/bit.o obj/src/maniac/chance.o obj/src/maniac/symbol.o obj/src/image/image-rggb.o obj/src/image/image-pam.o obj/src/image/image-metadata.o obj/src/image/image-png.o obj/src/image/image-pnm.o obj/src/image/image.o obj/src/image/crc32k.o obj/src/image/color_range.o obj/src/transform/factory.o pkg-config --libs libpng -o src/flif
/usr/local/bin/ld: obj/src/image/image-metadata.o: in function image_save_metadata(char const*, Image const&, char const*)': image-metadata.cpp:(.text+0x6b0): undefined reference to lodepng_default_decompress_settings'
/usr/local/bin/ld: image-metadata.cpp:(.text+0x6c5): undefined reference to lodepng_inflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGDecompressSettings const*)' /usr/local/bin/ld: obj/src/image/image-metadata.o: in function image_load_metadata(char const*, Image&, char const*)':
image-metadata.cpp:(.text+0xbd9): undefined reference to lodepng_default_compress_settings' /usr/local/bin/ld: image-metadata.cpp:(.text+0xbe7): undefined reference to lodepng_deflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGCompressSettings const*)'
/usr/local/bin/ld: obj/src/image/image-png.o: in function image_save_png(char const*, Image const&)': image-png.cpp:(.text+0x80c): undefined reference to lodepng_default_decompress_settings'
/usr/local/bin/ld: image-png.cpp:(.text+0x823): undefined reference to lodepng_inflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGDecompressSettings const*)' /usr/local/bin/ld: image-png.cpp:(.text+0x8d4): undefined reference to lodepng_default_decompress_settings'
/usr/local/bin/ld: image-png.cpp:(.text+0x8eb): undefined reference to lodepng_inflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGDecompressSettings const*)' /usr/local/bin/ld: obj/src/image/image-png.o: in function image_load_png(char const*, Image&, metadata_options&)':
image-png.cpp:(.text+0x1c0d): undefined reference to lodepng_default_compress_settings' /usr/local/bin/ld: image-png.cpp:(.text+0x1dd5): undefined reference to lodepng_deflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGCompressSettings const*)'
/usr/local/bin/ld: image-png.cpp:(.text+0x2018): undefined reference to lodepng_deflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGCompressSettings const*)' /usr/local/bin/ld: image-png.cpp:(.text+0x2206): undefined reference to lodepng_default_compress_settings'
/usr/local/bin/ld: image-png.cpp:(.text+0x222e): undefined reference to `lodepng_deflate(unsigned char**, unsigned int*, unsigned char const*, unsigned int, LodePNGCompressSettings const*)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.