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+的长期发展过程中.一些特定的构件 ...
随机推荐
- strtol,strtoll,strtoul, strtoull字符串转化成数字
今天看kafka,有一个参数选项中有: 'S' seq=strtoull(optarg,NULL,10); do_seq=1; 之后查找了下 strtoull 函数的功能,了解如下: ---- ...
- C# web api返回类型设置为json的两种方法
web api写api接口时默认返回的是把你的对象序列化后以XML形式返回,那么怎样才能让其返回为json呢,下面就介绍两种方法: 方法一:(改配置法) 找到Global.asax文件,在Applic ...
- asp.net core 笔记
dnvm use 1.0.0-rc1-final -r clr 切换版本
- PHP弹出提示框并跳转到新页面即重定向到新页面
本文为大家介绍下使用PHP弹出提示框并跳转到新页面,也就是大家所认为的重定向,下面的示例大家可以参考下 这两天写一个demo,需要用到提示并跳转,主要页面要求不高,觉得没必要使用AJAX,JS等, ...
- 通过Canvas及File API缩放并上传图片完整示例
<!DOCTYPE html> <html> <head> <title>通过Canvas及File API缩放并上传图片</title> ...
- U盘操作系统,Kali Linux操作系统安装
为什么要用U盘装操作系统,那好处多了去了.1.随身携带,想用就用.2.平常娱乐还是用Windows比较方便,不用做双系统那么麻烦. 准备: U盘,从天猫上买了个三星闪存盘,32G,USB3.0: 从官 ...
- A funny story in regard to a linux newbie
ZZ from here : ask what kernel ring buffer is A few days ago I started thinking that my linux educa ...
- import()函数
- WP8微信5.3开始内测 支持Cortana语音 两微破冰了?
WP版微信v5.3内测版昨发布了,进行了一些小幅升级,最意外的是原生支持WP8.1版Cortana语音命令操作.要知道微软的聊天机器人“小冰”在微信上存在不到4天,就被微信全面封杀退出,现在微信又内测 ...
- oracle数据库启动
遇到个白痴问题,放假停电,回来时启动数据库,发现无法进入oracle管理员界面. 如下输入,但是显示的命令无效. [oracle@crm001 database]$ sqlplus / as sysd ...