




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
MTK资源的编译VC+中的Win32 Application和Win32 Console Application区别MTK资源编译加载时找不到模块的头文件?2009-03-30 13:31分类:MTK平台技术文档 字号: 大大 中中 小小 如:discoverydiscoveryincmyappDefs.h文件在资源编译时找不到,为什么呢?如果这么个模块是我们自己新加入的,则很有可能没有在目录(plutommiCustomerResGenerator)下的makefile中添加我们自己头文件目录。以下是该makefile文件中的有关系统中所有module的头文件路径设置;该makefile文件是由资源编译加载程序所使用。include custom_option.txtinclude custom_include.txtPLUTO_INC = -I ./././Discovery/DiscoveryInc -I ./customerinc -I ././MMI/PoC/PoCInc -I ././MMI/DebugLevels/DebugLevelInc -I ././MMI/Calls/CallsInc -I ././MMI/ChatApp/ChatAppInc -I ././MMI/EmailApp/EmailAppInc -I ././MMI/IMPS/IMPSInc -I ././MMI/Inc -I ././MMI/Inc/ImgID -I ././MMI/Inc/MenuID -I ././MMI/Inc/StringID -I ././MtkApp/MtkAppInc -I ././MtkApp/EngineerMode/EngineerModeInc -I ././MtkApp/Connectivity/ConnectivityInc -I ././MtkApp/SoundRecorder/SoundRecorderInc -I ././MtkApp/AudioPlayer/AudioPlayerInc -I ././MtkApp/ABRepeater/ABRepeaterInc -I ././MtkApp/mmiapi/include -I ././MMI/Framework/osl/oslinc -I ././MMI/CallManagement/CommonFiles/CommonInc -I ././MMI/CallManagement/OutgoingCallManagement/OutgoingInc -I ././MMI/CallManagement/IncomingCallManagement/IncomingInc -I ././MMI/GSMCallApplication/CommonFiles/CommonInc -I ././MMI/GSMCallApplication/OutgoingCallManagement/OutgoingInc -I ././MMI/GSMCallApplication/IncomingCallManagement/IncomingInc -I ././MMI/Setting/SettingInc -I ././MMI/PhoneBook/PhoneBookInc -I ././MMI/CommonScreens/CommonScreensInc -I ././MMI/Framework/CommonFiles/CommonInc -I ././MMI/Framework/Tasks/TasksInc -I ././MMI/Framework/EventHandling/EventsInc -I ././MMI/Framework/History/HistoryInc -I ././MMI/Framework/MemManager/MemManagerInc -I ././MMI/DataAccount/DataAccountInc -I ././MMI/FunAndGames/FunAndGamesInc -I ././MMI/gui/gui_inc -I ././MMI/gui/oem_inc -I ././MMI/DateTime/DateTimeInc -I ././MMI/MiscFramework/MiscFrameworkInc -I ././MMI/Help/HelpInc -I ././MMI/IdleScreen/IdleScreenInc -I ././MMI/Messages/MessagesInc -I ././MMI/NITZHandler/NITZInc -I ././MMI/PROFILES/ProfilesInc -I ././MMI/SAT/SATInc -I ././MMI/SSC/SSCInc -I ././MMI/Organizer/OrganizerInc -I ././MMI/Extra/ExtraInc -I ././MMI/JataayuAppjBrowserMMIjBrowserMMIInc -I ././MMI/UnifiedMMS/MMSApp/MMSAppInc -I ././MMI/JataayuAppjCommonModulesjProvisioningjProvisioningInc -I ././MMI/JataayuAppjCommonModulesjProfileHandlerjProfileHandlerInc -I ././MMI/JataayuAppjMMSMMIjMMSMMIInc -I ././MMI/Customer/CustResource -I ././MMI/FontData -I ././MMI/debuglevels/DebugLevelInc -I ././MMI/MainMenu/MainMenuInc -I ././MMI/ems/emsinc -I ././MMI/Dictionary/DictInc -I ././MMI/Framework/NVRAMManager/NVRAMManagerInc -I ././MMI/EbookReader/EbookInc -I ././MMI/VoIP/VoIPInc -I ././MMI/UCM/UCMInc -I ./././kal/include -I ./././ps/interfaces/enum -I ./././ps/l4/include -I ./././ps/gen/mcd -I ./././ps/interfaces/local_inc -I ././MMI/CPHS/CPHSInc -I ././MMI/audio/audioinc -I . -I ./././custom/audio/MT6208_CEVB -I ./Customize -I ./. -I ./././custom/audio/CHICAGO2003_BB -I ./././custom/audio/KLM2003_BB -I ./././interface/mmi -I ././MTkApp/Camera/CameraInc -I ././MTkApp/Video/VideoInc -I ././MTkApp/FileMgr/FileMgrInc -I ./././j2me/interface -I ./././j2me/jam/include -I ././MTkApp/GDI/GDIInc -I ./././fmtinclude -I ././MTkApp/vObjects/vObjectInc -I ././MMI/Stopwatch/StopwatchInc -I ././MTkApp/FMRadio/FMRadioInc -I ././MTkApp/FMScheduleRec/FMScheduleRecInc -I ././MTkApp/VRSD/VRSDInc -I ././MTkApp/VRSI/VRSIInc -I ././MTkApp/PhotoEditorPhotoEditorInc -I ././MTkApp/BGSound/BGSoundInc -I ././MMI/ResourceInc -I ./././vendor/wap/jataayu4/adaptation/mmi/srcs/include -I ././MtkAppJavaAgencyJavaAgencyInc -I ././MMI/UnifiedMessage/UnifiedMessageInc -I ././MtkApp/DLAgent/DLAgentInc -I ././MTkApp/BarcodeReader/BarcodeReaderInc -I ././MTkApp/SWFlash/SWFlashInc -I ././MTkApp/SyncML/SyncMLInc -I ././MMI/UnifiedComposer/UnifiedComposerInc -I ././MtkApp/VideoEditor/VideoEditorInc -I ././MTkApp/DeviceManagement/DeviceManagementInc -I ././MtkApp/CentralConfigAgent/CentralConfigAgentInc -I ././MTkApp/Avatar/AvatarInc -I ././MtkApp/CSBrowser/CSBrowserInc -I ././MtkApp/PictBridge/PictBridgeInc -I ././MMI/BrowserApp/Browser/BrowserInc -I ././MMI/BrowserApp/Profile/ProfileInc -I ././MMI/BrowserApp/PushInbox/PushInboxInc -I ././MTkApp/RightsMgr/RightsMgrInc -I ././MtkApp/DMUIApp/DMUIAppInc -I ././MMI/MobileService/MobileServiceInc -I ././MMI/CustomerService/CustomerServiceInc -I ./././vendor/langlearn/app/inc -I ./././vendor/mercury_master/inc -I ././MTkApp/MyFavorite/MyFavoriteInc -I ././MtkApp/MobileTVPlayer/MobileTVPlayerInc -I ././MMI/VideoCall/VideoCallInc -I ././MMI/UnifiedMMS/MMSBGSR/MMSBGSRInc -I ./././vendor/gis/mapbar/mmi/inc -I ././mercury_master/inc -I ./././vendor/mercury_master/incINC = $(PLUTO_INC) $CUSTOM_INC如以上红色标注的就是我们自己添加的模块头文件路径,这样在编译加载资源时(make resgen时 )就不会提示找不到我们自己模块的头文件了。当然了,我们也可以将我们模块的头文件路径放置在变量CUSTOM_INC中,那么怎样放进去呢?这个就要追溯到Gsm2.mak文件了,看下resgen行为就明白了。# Resource generate#resgen:ifeq ($(strip $(call Upper,$(LEVEL),VENDOR)if exist $(MMIDIR)VendorAppDevResourceResGenerator.bat ($(MMIDIR)VendorAppDevResourceResGenerator.bat -t)elseif exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (echo CUSTOM_OPTION = $(foreach def,$(BOARD_VER) $(PLATFORM) $(LCD_MODULE) $(EXT_CAM_MODULE) $(CMOS_SENSOR),-D $(def) $(MMIDIR)customerresGeneratorcustom_option.txt) )toolsstrcmpex.exe TRUE TRUE e makecus_opt.tmp $(foreach def,$(COM_DEFS),-D $(def)if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (type makecus_opt.tmp $(MMIDIR)customerresGeneratorcustom_option.txt) )toolsstrcmpex.exe TRUE TRUE e maketgt_opt.tmp $(foreach def,$(COM_DEFS) $(LCD_MODULE),/D $(def)if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (del $(MMIDIR)mmiTargetOption.txt) & (copy /Y maketgt_opt.tmp $(MMIDIR)MMITargetOption.txt) )toolsstrcmpex.exe TRUE TRUE e makeinc.tmp $(foreach inc,$(COMMINCDIRS),$(inc)if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (type makeinc.tmp $(MMIDIR)customerresGeneratorcustom_include.tmp) )以上红色语句表示,函数foreach将目录变量COMMINCLUDIRS中的目录路径一个个解析出来放到零时文件inc.tmp中,然后再将零时文件内容复制到custom_include.tmp中。ifeq ($(strip $(NEED_COPY_MMIFEATURE),CUSTOMER_MMI)if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (perl -e open F,$(MMIDIR)customerresGeneratorcustom_include.tmp;my $i=join(,);close F;$i =s/s+/ /gs;$i = s/(S+)/-I .$1/gs;print CUSTOM_INC = $i; $(MMIDIR)customerresGeneratorcustom_include.txt) & (perl -e open F,$(MMIDIR)customerresGeneratorcustom_include.tmp;my $i=join(,);close F;$i =s/s+/ /gs;$i = s/(S+)/I .$1n/gs;print $i; $(MMIDIR)MMIGlobalTargetPathDef) & (if exist $(MMIDIR)customerreplace_project_name.pl (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerUpdateSkin.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerUpdateSkin.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat YYY $(patsubst %_MMI,%,$(CUSTOMER) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat YYY $(patsubst %_MMI,%,$(CUSTOMER) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat YYY $(patsubst %_MMI,%,$(CUSTOMER) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerUpdateSkin.bat YYY $(patsubst %_MMI,%,$(CUSTOMER) $(MMIDIR)customerUpdateSkin.bat) ) ) if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (if exist $(MMIDIR)customerreplace_project_name.pl (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerremakeResource.bat) ) & (del $(MMIDIR)customerresGeneratorcustom_include.tmp) & ($(MMIDIR)customerResGenerator_HW.bat $(MMI_VERSION) $(CUSTOMER) )elseif exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (perl -e open F,$(MMIDIR)customerresGeneratorcustom_include.tmp;my $i=join(,);close F;$i =s/s+/ /gs;$i = s/(S+)/-I .$1/gs;print CUSTOM_INC = $i; $(MMIDIR)customerresGeneratorcustom_include.txt) & (perl -e open F,$(MMIDIR)customerresGeneratorcustom_include.tmp;my $i=join(,);close F;$i =s/s+/ /gs;$i = s/(S+)/I .$1n/gs;print $i; $(MMIDIR)MMIGlobalTargetPathDef) & (if exist $(MMIDIR)customerreplace_project_name.pl (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerUpdateSkin.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerUpdateSkin.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerUpdateSkin.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION) $(MMIDIR)customerUpdateSkin.bat) ) ) if exist $(MMIDIR)customer (if /I $(RUN_RESGEN) EQU TRUE (if exist $(MMIDIR)customerreplace_project_name.pl (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator_HW.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerResGenerator_HW.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerResGenerator.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerResGenerator.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat SSS $(patsubst %_MMI,%,$(OPTR_SPEC) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat MMM $(patsubst %_MMI,%,$(MAIN_LCD_SIZE) $(MMIDIR)customerremakeResource.bat) & (perl $(MMIDIR)customerreplace_project_name.pl $(MMIDIR)customerremakeResource.bat PPP $(patsubst %_MMI,%,$(OPTR_PATH) $(MMIDIR)customerremakeResource.bat) ) & (del $(MMIDIR)customerresGeneratorcustom_include.tmp) & ($(MMIDIR)customerResGenerator_HW.bat $(MMI_VERSION) $(CUSTOMER) )endif # cop
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 固体饮料加工工节假日后复工安全考核试卷含答案
- 建设工程合同标准范本解析
- 2025房产担保合同样本
- 幼儿园招生计划书撰写及注意事项
- 2025农产品买卖合同
- 电大人力资源考试复习资料汇编
- 5.4一元一次方程的解法(2)教学设计 浙教版七年级数学上册
- 航运未来趋势与潜力探索-洞察及研究
- 2025产品购销合同书版本范本
- 大型商超食品过敏原标识管理办法
- 东芝电梯CV180故障诊断
- 毕业设计住宅楼采暖系统设计
- 三年级上册数学课件-5 间隔排列|苏教版
- 退伍军人职业规划课件
- 压花艺术课件
- 洗眼器教育培训
- 调查研究方法与调研报告写作讲义课件
- 《心理学史》-新行为主义课件
- 干燥综合症的中医治疗冯兴华公开课课件
- 汉字五千年第七章 汉字与姓氏文化课件
- 关于开具无犯罪记录证明的函(模板)
评论
0/150
提交评论