免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1553 | 回复: 0
打印 上一主题 下一主题

moblin develop 环境搭建 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-12 21:13 |只看该作者 |倒序浏览

                                                                                                                                                                1.安装moblin image creator
$ git clone http://moblin.org/repos/tools/moblin-image-creator.git
        $ cd moblin-image-creator
$ git pull
        $ ./autogen.sh
        $ sudo make install
        $ sudo image-creator
依赖的软件包:

  •                        
  • git-core//一种软件配置工具                    
  • automake//生成Makefile的工具                    
  • autotools-dev//used by the automake and libtool packages                    
  • build-essential//本软件包包含一个列表,表中列出了在编译 Debian 软件包时所必须的软件包                    
  • dh-make//Creates Debian source packages for PHP PEAR and PECL extensions                    
  • fakeroot//Gives a fake root environment                    
  • python//是一种面向对象的解释性的计算机程序设计语言,Python 具有脚本语言中最丰富和强大的类库,足以支持绝大多数日常应用。                    
  • debootstrap//Bootstrap the Debian system

错误1:
/usr/bin/git-clone: 374: curl: not found
“缺少curl这个工具,curl是一个利用URL语法在命令行方式下工作的文件传输工具“
sudo apt-get install curl
错误2:./autogen.sh: 1: intltoolize: not found
apt-get install intltool
2.运行 image-creator

在Platform Project中选择CPU系列和相应操作系统,MIC(Moblin Image Creator)会通过apt-get从服务器上获取相应的Lib,tools等构造一个目标设备开发所需要的环境。
在Targets里生成具体的目标设备使用的一套默认文件系统。
通过Add Function Set添加其他软件包,如图

通过Terminal查看目标设备的文件系统,如图

创建Target Images,并启动目标设备。
3.安装目标设备显示依赖工具:xserver-xephyr
Xephyr is an X server that can be run inside another X server,
much like Xnest. It is based on the kdrive X server, and as a
result it supports newer extensions than Xnest, including render and
composite.
Testing Applications from a Target File System
# apt-get install xserver-xephyr\
To run a virtual X session, you must enable access to your display, by
running the following command from your workstation's terminal:
        $ xhost +SI:localuser:root
From your target's terminal, run the following commands to configure and run Xephyr:
        # export DISPLAY=:0
        # /etc/init.d/dbus start
        # xinit /etc/X11/xinit/xinitrc -- /usr/bin/Xephyr :2 -host-cursor -screen 1024x600x32 -dpi 96 -ac
可能会发生如下错误:
Could not init font path element /usr/share/fonts/X11/misc, removing from list!
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
Fatal server error:
could not open default font 'fixed'
这是由于找不到X11字体所致,需要将/usr/share/fonts/X11的字体从Host拷贝到目标文件系统
If you have the full-mobile-stack fset installed, you can run a script that automatically installs, configures, and runs Xephyr:
        # ume-xephyr-start
在MIC和xephyr的配合下,除了电源管理,无线通信,设备驱动程序,硬件加速,DSP媒体编解码等都可以
直接在开发主机上直接编写,编译,测试一次性完成,因为主机和目标设备都是基于X86指令集的,因此不
需要交叉编译和模拟,(^-^)。
                               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/61758/showart_1079488.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP