DirectFB 之 环境配置
来源:互联网 发布:matlab数据标准化 编辑:程序博客网 时间:2024/06/06 09:10
1. 准备
directFB下载地址:http://www.directfb.org/index.php?path=Main%2FDownloads
本人采用的版本是DirectFB-1.5.3.tar.gz
测试程序下载地址:http://www.directfb.org/downloads/Extras/DirectFB-examples-1.5.3.tar.gz
2. 安装
1. 安装PNG、JPEG、FreeType2 support
#apt-get install libpng-devel
#apt-get install libjpeg-devel
#apt-get install freetype-devel
1. 解压
tar -xvf DirectFB-1.2.8.tar.gz
tar -xvf DirectFB-examples-1.2.0.tar.gz
2. 编译DFB
#cd DirectFB-1.5.3
#./configure
#make
#make instal
注:DFB(./configure)的提示:
PNG support is missing - many applications won't work correctly!
JPEG support is missing - many applications won't work correctly!
FreeType2 support is missing - many applications won't work correctly!
解决的方法可以参考:
(1)输入命令:
apt-cache search libpng
apt-cache search libjpeg
apt-cache search libfreetype
或 aptitude search libfreetype
(2) 根据提示安装
3. 配置环境变量
如果不更新环境变量,可能无法正常编译下面的例子
# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
建议最好将将以上环境变量添加到自己的 bash profile 中,例如 root 用户可以修改 /root/.bash_profile加入:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
指定directfb的库目录,如果不做这一步骤,无法正常运行,在/etc/ld.so.conf最后一行加入以下代码:/usr/local/lib,然后执行ldconfig。
或者是设置环境变量:export LD_LIBRARY_PATH=/usr/local/lib
4. 示例检查
#cd ..
#cd DirectFB-examples-1.2.0
#./configure
#make
#make install
运行例子
#./df_window
注:
/usr/include/x86_64-linux-gnu/sys/param.h:76:0: note: this is the location of the previous definition
df_dok.c:311:13: error: conflicting types for ‘shutdown’
/usr/include/x86_64-linux-gnu/sys/socket.h:232:12: note: previous declaration of ‘shutdown’ was here
make[2]: *** [df_dok.o] Error 1
解决方法:
改名字
0 0
- DirectFB 之 环境配置
- directFb配置
- Ubuntu 上配置DirectFB环境(亲测可用)
- DirectFB调试环境(directfbrc)
- DirectFB编译环境
- DirectFB环境搭建
- DirectFB配置信息
- GUI开发之DirectFB
- directfb之diretfbrc详解
- DirectFB 之 简介
- DirectFB 之 分段动画
- DirectFB 之 字体显示
- 笔记: 建立 DirectFB 运行环境
- Ubuntu 建立DirectFB 模拟环境
- 安装GTK+/DirectFB图形环境
- DirectFB入门前期环境搭建
- DirectFB
- DirectFB
- 修改有数据oracle字段类型 从number转为varchar
- windows phone 给系统控件颜色
- 谈谈LTE 4G技术(by quqi99)
- python操作redis简单例子
- Erlang代码反编译以及查看汇编码
- DirectFB 之 环境配置
- 为什么要有TIME_WAIT
- solr group分组查询
- iOS 7 教程:定制iOS 7中的导航栏和状态栏
- yum源总结
- 关于字节对齐
- eclipse如何自动提示
- sql语句提升like效率
- 挖另外一口井,从做视频开始