MTK编译MODIS

MTK-MODIS编译运行环境搭建

1.   编译前的准备工作

A.      编译工具和辅助工具

(1)    ADS1.2

http://www.mcu123.com/down/get.asp?id=39&type=0&url=1

(2) ADS1.2_update_848.exe

http://dlwt.csdn.net/fd.php?i=573120840754350&s=7cd53e5b2002a18e4499730eff41bf44

(3)     MSYS

http://nchc.dl.sourceforge.net/project/mingw/MSYS%20Base%20System/msys-1.0.11/MSYS-1.0.11.exe

(4)     MinGW

http://nchc.dl.sourceforge.net/project/mingw/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe

(5)ActivePerl

http://downloads.activestate.com/ActivePerl/releases/5.10.1.1007/ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi

B.      编译环境搭建

FIRST   按默认路径安装ADS1.2,并安装848补丁包

Next       按默认路径安装Perl

bin 目录添加到环境变量path中。

 

Next       按默认路径安装7_zip

 

Next       安装MinGW

之后, 拷贝../MinGW../Tools/MinGW

 设置make.exe

改名mingw32-make.exe(../Tools/MinGW)make.exe,并放在tools目录下。

 

 

Next       安装MSYS

之后,拷贝../msys/1.0../Tools/MSYS。注意这里是1.0目录下的文件。

 

测试环境:

DOS进入Tools目录中运行chk_evn,出现下列信息就表明换进搭建成功了。

OS is Windows 2000 or XP. => [OK]

Shell is cmd.exe. => [OK]

 

This is perl, v5.10.1 built for MSWin32-x86-multi-thread

(with 2 registered patches, see perl -V for more detail)

 

Copyright 1987-2009, Larry Wall

 

Binary build 1007 [291969] provided by ActiveState http://www.ActiveState.com

Built Jan 26 2010 23:15:11

 

Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.

 

Complete documentation for Perl, including FAQ lists, should be found on

this system using "man perl" or "perldoc perl".  If you have access to the

Internet, point your browser at http://www.perl.org/, the Perl Home Page.

 

Perl installed. => [OK]

sh.exe shall not exist in path. => [OK]

C:/Progra~1/ARM/ADSv1_2/Bin/tcc.exe shall exist. => [OK]

 

C:/Program Files/ARM/ADSv1_2/Bin/tcpp.dll modified time shall later than 2/9/200

2. => [OK]

 

make.exe modified time shall later than 18/6/2003. => [OK]

 

MinGW/bin/gcc.exe modified time shall later than 7/8/2003. => [OK]

 

MSYS/bin/make.exe modified time shall later than 9/7/2003. => [OK]

 

../plutommi/Customer/ResGenerator/7za.exe modified time shall later than 1/1/200

3. => [OK]

 

Build environment is ready!

 

(注意:如果系统安装了cygwin,而且在path中添加了路径的,需要将其删除)

 

2.   编译MODIS

编译命令当然还是:

Make 工程名 gprs new_modis/ gen_modis/ codegen_modis

这里注意:

1、         DOS进入源码根目录下运行make

2、  工程名:这个名字不是自己取的,这个名字要在make文件夹下边去找,

类似:TELSDA25_08A_GEMINI_GPRS.makTELSDA25_08A_GEMINI就是工程名。

 

好现在运行:

Make TELSDA25_08A_GEMINI GPRS gen_modis

提示:

 

Change Working Directory to MoDIS

perl createMoDIS.pl ../make/TELSDA25_08A_GEMINI_gprs.mak

 

../tst/database_modis/GEMINI/FALSE/BPGUInfoCustomApp_pc

已复制         1 个文件。

modislibroot=MoDIS_LIB/MT6225/S00/gprs/GEMINI/FALSE

DISABLE JAVA

Read ../build/TELSDA25_08A_GEMINI/log/info.log...

 

 

drv_graphics => ../../interface/hwdrv/che_sw.h does NOT exist!

drv_sim => ../../modis/drv_sim/src/w32_freeimage.c does NOT exist!

media => ../../drv/idp/include/image_effect.h does NOT exist!

media => ../../drv/idp/include/img_comm.h does NOT exist!

media => ../../drv/idp/include/imgdma.h does NOT exist!

media => ../../drv/idp/include/imgproc.h does NOT exist!

media => ../../drv/idp/include/resizer.h does NOT exist!

media => ../../media/camera/include/aaa_process_v2.h does NOT exist!

media => ../../media/camera/include/camera_webcam_v2.h does NOT exist!

media => ../../media/common/include/aud_build_cache.h does NOT exist!

Generate project file ......modis_fs drv_sim comm applib.....bmt.....comm.....co

nn_app.....custom.....drm.....drv_graphics.....drv_idp.....drv_sim.....dt.....ex

t_modem.....fm_drv.....fmt.....inet_app.....l4misc.....media.....media_app.....m

mi_app.....mmi_framework.....mmiresource.....modis_fs.....nvram.....vendorapp...

..verno.....xmlp.....zi.....Write MoDIS.dsw

Finish createMoDIS

已复制         1 个文件。

已复制         1 个文件。

 

Change Working Directory to MoDIS

 

完了以后运行:

Make TELSDA25_08A_GEMINI GPRS codegen_modis

 

一大片的运行结果提示之后就可以在VC中去编译,一切OK

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值