glib 下载编译

来源:互联网 发布:mac怎么把pdf文件拆分 编辑:程序博客网 时间:2024/06/05 21:10
msys2 下 minggw32 编译过程


########## iconv ##########
登录库主页下载最新的源代码
http://www.gnu.org/s/libiconv/
http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
静态编译源代码
./configure --prefix=/home/onejacky/rtoxbox/rtoxbox --enable-static --disable-shared
make 
make install
########## iconv ##########


########## gettext ##########
登录库主页下载最新的源代码
http://www.gtk.org/download/win32.php
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-0.18.1.1.tar.gz
静态编译源代码
./configure --prefix=/home/onejacky/rtoxbox/rtoxbox --disable-shared --enable-static --enable-threads=win32 --disable-java --disable-csharp --disable-openmp
make
make install
########## gettext ##########


########## glib ##########
登录库主页下载最新的源代码
http://www.gtk.org/download/win32.php
http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.1.tar.bz2
静态编译源代码
./configure --prefix=/home/onejacky/rtoxbox/rtoxbox --enable-static --disable-shared --with-threads=win32
./configure --prefix=/usr/local/glib --enable-static --disable-shared CFLAGS="-static"
make 
make install
########## glib ##########










1. ./autogen.sh
1) You don't have gtk-doc installed, and thus won't be able to generate the documentation.
2) configure: error: Package requirements (libffi >= 3.0.0) were not met:
解决办法
1]pacman -S pacman -S  mingw-w64-i686-gettext
3) configure: error:
  *** You must have either have gettext support in your C library, or use the
       *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
解决办法:
echo $PKG_CONFIG_PATH
1] pacman -S pacman -S  mingw-w64-i686-gettext
2. ./configure --prefix=/mingw32 
//./configure --prefix=/mingw32  --enable-static --disable-shared
3. make && make install
0 0
原创粉丝点击