ubuntu16.04安装libpng zlib png++

首先安装libpng和zlib1.2.11,下载地址:点击打开链接

install method:http://blog.csdn.net/bawenmao/article/details/50052963


test config methods:

jennifer@jennifer-pc:~$ pkg-config libpng12 --libs --cflags
-I/usr/local/include/libpng12 -L/usr/local/lib -lpng12
jennifer@jennifer-pc:~$ pkg-config zlib --libs --cflags
-I/usr/local/include -L/usr/local/lib -lz
jennifer@jennifer-pc:~$ pkg-config libpng12 zlib --libs --cflags
-I/usr/local/include/libpng12 -I/usr/local/include -L/usr/local/lib -lpng12 -lz


HOW TO USE

for project Image with image.cpp:

g++ -o Image Image.cpp -I `pkg-config libpng15 zlib --libs --cflags`

HOW TO INSTALL PNG++

cd png++
sudo make
sudo make test
sudo make docs
sudo make install
jennifer@Jennifer:/usr/local/png++-0.2.5$ sudo make install

mkdir -p /usr/local/include/png++
cp *.hpp /usr/local/include/png++
if [ -d doc ]; then \
    dir=/usr/local/share/doc/png++-0.2.5; \
    rm -rf $dir; \
    mkdir -p $dir \
    && cp -r AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO doc/html $dir; \
    cd /usr/local/share/doc; \
    [ -L png++ ] && rm png++; \
    [ -d png++ ] || ln -s png++-0.2.5 png++; \
fi
jennifer@Jennifer:/usr/local/png++-0.2.5$






你可能感兴趣的:(Python菜鸟学习,opencv,deep,learning)