static cross compile gtk-2.16.6+gtk-directfb+arm-linux (arm-linux-gcc-3.4.4+glib-2.3.5)
-----------------------------------------------------------------------
In Ubuntu 10.4 Desktop and "root" login
apt-get install build-essential libncurses5-dev
apt-get install autoconf
apt-get install libtool
apt-get install gettext
apt-get install libglib2.0-dev
apt-get install libgtk2.0-dev
-----------------------------------------------------------------------
1. tslib 1.4
-----------------------------------------------------------------------
make clean
export PREFIX=/usr/gtkdfb
./autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --cache-file=arm-linux.cache --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
2. zlib-1.2.3
-----------------------------------------------------------------------
make clean
export LDFLAGS=-L$PREFIX/lib
export CFLAGS="-I$PREFIX/include"
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
CC=arm-linux-gcc ./configure --prefix=$PREFIX
make
make install Ps:its default static
-----------------------------------------------------------------------
3. glib 2.24.1
-----------------------------------------------------------------------
make clean
export LDFLAGS=-L$PREFIX/lib
export CFLAGS="-g -I$PREFIX/include"
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
echo ac_cv_type_long_long=yes>arm-linux.cache
echo glib_cv_stack_grows=no>>arm-linux.cache
echo glib_cv_uscore=no>>arm-linux.cache
echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache
echo ac_cv_func_posix_getgrgid_r=yes>>arm-linux.cache
CC=arm-linux-gcc ./configure --host=arm-linux --build=i386-linux --prefix=$PREFIX --cache-file=arm-linux.cache --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
4. atk 1.29.2
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --build=i386-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
5. jpeg6b
-----------------------------------------------------------------------
make clean
export CC=arm-linux-gcc
CC=arm-linux-gcc AR=arm-linux-ar AR2=arm-linux-ranlib ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
mkdir $PREFIX/man
mkdir $PREFIX/man/man1
make
make install
make install-lib
-----------------------------------------------------------------------
6. libpng-1.2.33
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
7. expat-2.0.1
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
8. freetype-2.3.7
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
9. libxml2-2.6.31
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
10. fontconfig-2.6.0
-----------------------------------------------------------------------
make clean
export LIBXML2_CFLAGS=-I$PREFIX/include/libxml2
export LIBXML2_LIBS="-L$PREFIX/lib -lxml2"
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-freetype-config=$PREFIX/bin/freetype-config --with-arch=arm --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
11. tiff-3.7.4
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
12. DirectFB-1.3.0
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-gfxdrivers=none --enable-png --enable-jpeg --enable-tiff --enable-zlib --enable-sdl=no --enable-gif=no --disable-x11 --enable-static=yes --enable-shared=no
make
make install Rember making execute file need add two links or system core error:
/usr/gtkdfb/lib/directfb-1.3-0/wmlibdirectfb_fbdev.o
/usr/gtkdfb/lib/directfb-1.3-0/wmlibdirectfbwm_default.o
-----------------------------------------------------------------------
13. pixman-0.12.0
-----------------------------------------------------------------------
make clean
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
14. cairo-1.8.10
-----------------------------------------------------------------------
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --without-x --disable-xlib --disable-xlib-xrender --enable-directfb --enable-freetype --disable-win32 --enable-pdf --enable-ps --enable-png --enable-static=yes --enable-shared=no
make
make install
-----------------------------------------------------------------------
15. pango-1.20.2
-----------------------------------------------------------------------
modify configure file
have_cairo=true
have_cairo_png=true
have_cairo_ps=true
have_cairo_pdf=true
have_cairo_freetype=true
make clean
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --enable-static=yes --enable-shared=no --without-x --enable-cairo=yes --with-included-modules=basic-fc
make
make install
-----------------------------------------------------------------------
16. gtk+-2.16.6
-----------------------------------------------------------------------
mark function:
_gtk_marshal_OBJECT__VOID in gtk+-2.16.6/perf/marshalers.c
modify configure:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org" >&2;}
{ (exit 1); exit 1; }; }
to
{ (echo 1); echo 1; }; } make clean
export PREFIX=/usr/gtkdfb
export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib"
export CFLAGS="-I$PREFIX/include"
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
echo gio_can_sniff=yes>arm-linux.cache
echo ac_cv_path_GTK_UPDATE_ICON_CACHE=/usr/bin/gtk-update-icon-cache>>arm-linux.cache
echo ac_cv_path_GDK_PIXBUF_CSOURCE=/usr/bin/gdk-pixbuf-csource>>arm-linux.cache
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-gdktarget=directfb --without-x --enable-static=yes --enable-shared=no --without-libtiff --without-libjpeg --without-libjasper --with-included-loaders=ani,bmp,ico,icns,pcx,png,gif,pnm,ras,tga,wbmp,xbm,xpm --disable-glibtest --cache-file=arm-linux.cache
or
CC=arm-linux-gcc ./configure --host=arm-linux --prefix=$PREFIX --with-gdktarget=directfb --without-x --disable-modules --with-included-loaders=ani,bmp,ico,icns,pcx,png,gif,pnm,ras,tga,wbmp,xbm,xpm --enable-static=yes --enable-shared=no --without-libtiff --without-libjpeg --disable-glibtest --cache-file=arm-linux.cache
make
make install
static cross compile gtk-2.16.6+gtk-directfb+arm-linux (arm-linux-gcc-3.4.4+glib-2.3.5)的更多相关文章
- cross compile vlc 播放器
上一篇文章介绍了如何交叉编译 FFmpeg ,继续介绍 VLC播放器 交叉编译 . 首先下载 vlc 源码 我用的是 2.2.6 地址 : http://mirrors.neusoft.edu ...
- 产品中 configure/cross compile的一个bug
在mac机上, 为iPhone版本编译产品. 运行./configure报错如下: configure:22793: error: cannot run test program while cros ...
- Cross compile perl
Alex Suykov had do some work for this purpose, and my compile script is based on her patch. Steps St ...
- wchar_t是内置还是别名(亲测有效:wchar_t在windows下是16位整数的别名,在linux等平台下是32位整数的别名。MSVC2008开始默认是/Zc:wchar_t)
接前一篇C++ ABI之名字改编(以Qt为例),继续看看C++名字改编相关的问题. 问题 MSVC 有一对选项/Zc:wchar_t- 与 /Zc:wchar_t控制wchar_t 于是 wchar_ ...
- GTK+重拾--07 GTK+中的事件
(一):写在前面 在这一个小节中,我们主要是学习GTK+2.0中最重要的部分.就是信号和事件.GTK+函数工具库是基于"事件"系统的.全部的GUI应用都是基于"事件&qu ...
- 基于gtk的imshow:用gtk读取并显示图像
gtk实现imshow,最naive的做法是用gtk的组件去读取图像,然后show出来:后续再考虑用GTK显示用别的方式例如stb image读取的图像.先前基于GDI实现imshow时也是这一思路, ...
- gcc-5.4.0 static dwarf2 compile
------------------------------------------------------------------------------- 又开始折腾了, 静态编译 gcc-5.4 ...
- 【Gtk】feorda下gtk安装详解
feorda下gtk安装详解 1.yum在线安装gtk 1)pkg-config -version查看pkg-config的版本(本机测试是0.25) 2)安装必要组建:(在root权限下) ...
- GTK+重拾--09 GTK+中的组件(一)
(一):写在前面 在这篇文章中主要介绍了GTK+程序中的各种构件,这是解说构件的第一个部分,另外一部分将在下一个小节中讲到. 构件是建立一个GUI程序的基础.在GTK+的长期发展过程中.一些特定的构件 ...
随机推荐
- 如何在JDK1.8中愉快地处理日期和时间
如何在JDK1.8中愉快地处理日期和时间 JDK1.8新增了LocalDate和LocalTime接口,为什么要搞一套全新的处理日期和时间的API?因为旧的java.util.Date实在是太难用了. ...
- visio2007使用记录
安装时, 需要有选择性的安装, 不是所有的组件 都需要安装, 如office工具, office共享功能, visio中的.net可编程支持就用不着安装.... visio中的cad(加载项), 可以 ...
- 关于帧中继和ppp的补充笔记
帧中继: · 两个设备都要启用 帧中继功能, 否则是不能 ping通的 · 两个设备上的接口serial要 no shutdown · · 一定要配置dlci地址(号). 否则就不能起来pvc 可以 ...
- java.lang.reflect.Method
java.lang.reflect.Method 一.Method类是什么 Method是一个类,位于java.lang.reflect包下. 在Java反射中 Method类描述的是 类的方法信息, ...
- 有利于SEO优化的DIV+CSS的命名规则小结
可以先去这里温习一下CSS和HTML的知识!DIV+CSS规范命名大全集合 CSS开发技巧整理 一.CSS文件及样式命名 1.CSS文件命名规范 全局样式:global.css/master.css ...
- 【Solr】索引库查询界面详解
目录 索引库查询界面详解 回到顶部 索引库查询界面详解 q:主查询条件.完全支持lucene语法.还进行了扩展. fq:过滤查询.是在主查询条件查询结果的基础上进行过滤.例如:product_pric ...
- hdu.5212.Code(莫比乌斯反演 && 埃氏筛)
Code Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submi ...
- oracle数据库表空间扩容方法
1. 先查询表空间在物理磁盘上存放的位置,注意使用sysdba的账号登陆. SELECT tablespace_name, file_id, file_name, ), ) total_space F ...
- Mac os壁纸提取
想必用过Mac os系统的朋友都知道mac壁纸,提取出来用作壁纸是十分好看的 下面给出壁纸的位置,自己用文件管理器打开然后复制出来即可! 系统盘:/Library/DesktopPictures
- MySQL编译安装
1.准备工作 其官方站点为http://www.mysql.com/ 为了避免发生端口冲突.程序冲突现象.建议先查询MySQL软件的安装情况,确认没有使用以RPM方式安装的mysql-server.m ...