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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章