当前位置: 技术问答>linux和unix
求指导,libpng找不到
来源: 互联网 发布时间:2016-12-19
本文导语: 大家好, mips-linux-gnu/bin/ld: warning: libpng15.so.15, needed by ./lib/libcairo.so, not found (try using -rpath or -rpath-link) ./lib/libcairo.so: undefined reference to `png_set_packswap@PNG15_0' ./lib/libcairo.so: undefined reference to `png_get_io_ptr@PNG1...
大家好,
mips-linux-gnu/bin/ld: warning: libpng15.so.15, needed by ./lib/libcairo.so, not found (try using -rpath or -rpath-link)
./lib/libcairo.so: undefined reference to `png_set_packswap@PNG15_0'
./lib/libcairo.so: undefined reference to `png_get_io_ptr@PNG15_0'
./lib/libcairo.so: undefined reference to `png_set_palette_to_rgb@PNG15_0'
这是我在编译cairo测试程序时遇到的问题。
./lib/下libpng15.so.15 libpng15.so都是有的,而且都不是symlink,为什么老找不到呢?求指导呀。
mips-linux-gnu/bin/ld: warning: libpng15.so.15, needed by ./lib/libcairo.so, not found (try using -rpath or -rpath-link)
./lib/libcairo.so: undefined reference to `png_set_packswap@PNG15_0'
./lib/libcairo.so: undefined reference to `png_get_io_ptr@PNG15_0'
./lib/libcairo.so: undefined reference to `png_set_palette_to_rgb@PNG15_0'
这是我在编译cairo测试程序时遇到的问题。
./lib/下libpng15.so.15 libpng15.so都是有的,而且都不是symlink,为什么老找不到呢?求指导呀。
|
编译的时候加上 -lpng表示要连接png库