Skip to content

Commit

Permalink
add dependence lib
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozhengcoder committed Oct 17, 2018
1 parent cb5e3d4 commit 098fd8e
Show file tree
Hide file tree
Showing 3,485 changed files with 986,762 additions and 5 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
37 changes: 37 additions & 0 deletions example/my_rebuild_example/dependence_lib/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

```
1.安装zlib
tar zxvf zlib*.gz
cd zlib*/
./configure --prefix=/usr/local/zlib
make && make install
2.安装libpng
tar xzf libpng*.gz
cd libpng*/
./configure --prefix=/usr/local/libpng
make && make install
3.安装freetype
tar xzf freetype*.tar.gz
cd freetype*/
./configure --prefix=/usr/local/freetype
make && make install && make clean
4.安装Jpeg
tar xzf jpeg*.gz
cd jpeg*/
./configure --prefix=/usr/local/libjpeg
sed -i 's/CFLAGS\= -O2 -I\$(srcdir)/CFLAGS\= -O3 -I\$(srcdir) -fPIC/g' Makefile
mkdir -p /usr/local/libjpeg/include
mkdir -p /usr/local/libjpeg/lib
mkdir -p /usr/local/libjpeg/bin
mkdir -p /usr/local/libjpeg/man/man1
make && make install-lib && make install
5.安装GD
tar zxf libgd*.gz
cd libgd*/
./configure --prefix=/usr/local/libgd --with-png=/usr/local/libpng/ --with-jpeg=/usr/local/libjpeg/ --with-freetype=/usr/local/freetype/
make && make install
```
Binary file not shown.
Loading

0 comments on commit 098fd8e

Please sign in to comment.