在海思hi3520上移植minigui3.0

首先从官网上下载以下几个包:libminigui-gpl-3.0.12.tar.gz,minigui-res-be-3.0.12.tar.gz,mg-samples-3.0.12.tar.gz,zlib-1.2.2.tar.gz,libpng-1.2.37.tar.gz,libmgplus-1_2_4.tar.gz,freetype-2.3.9-fm20100818.tar.gz,jpegsrc.v7.tar.gz。

 

 

安装libz

./configure --prefix=/home/server/zjf/workspace/usr/

修改Makefile文件,将所有的gcc修改为arm-hismall-linux-gcc,替换命令:

:1,$s/gcc/arm-hismall-linux-gcc/g

make

make install

 

安装libpng

export CFLAGS=/home/server/zjf/workspace/usr/include/

export LDFLAGS=/home/server/zjf/workspace/usr/lib

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

make

make install

 

安装freetype

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

make

make install

 

安装jpeg

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

make

make install

 

安装libminigui-gpl

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

修改src/newgal/pcxvfb/Makefile.in,将第195行的-I/usr/include注释掉

make

make install

 

安装libmgplus

export PKG_CONFIG_PATH=/home/server/zjf/workspace/usr/lib/pkgconfig/

export CPPFLAGS=-I/home/server/zjf/workspace/usr/include

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

make

make install

 

安装minigui-res

./configure --prefix=/home/server/zjf/workspace/usr/ --host=arm-hismall-linux

make

make install

 

编译mg-sample

./configure --host=arm-hismall-linux

export cFLAGS=/home/server/zjf/workspace/usr/include/:/opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/include/

 

至此,该安装的东西都已经安装好了,但是运行mg-sample中的例子却无法成功运行,因为hi3520的fbcon与linux的fbcon不同,需要在minigui中修改

 

1、复制vo_open.c和vo_open.h至libminigui_ths/src/newgal/fbcon目录下

2、修改该目录下的Makefile.am,在最后加入vo_open.c和vo_open.h

3、把platform文件夹复制到/home/server/zjf/workspace/usr下

4、Makefile.in里,在FBCON_SRCS中加入vo_open.c和vo_open.h,在am__objects_1中加入vo_open.lo

5、打开fbvideo.c,在FB_VideoInit函数中加入

if(HI_SUCCESS != MppSysInit())
	{
		return -1;
	}

	if(HI_SUCCESS != EnableVoDev(HD))
	{
		MppSysExit();
		return -1;
	}

在fbvideo.c开头添加头文件

#include "hifb.h
#include "vo_open.h

6、

export CFLAGS="-I/home/server/zjf/workspace/usr/include -I/home/server/zjf/workspace/usr/platform/include"
export LDFLAGS="-L/home/server/zjf/workspace/usr/lib -L/home/server/zjf/workspace/usr/platform/lib"

7、重新编译libminigui_ths

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值