關於使用Carbide編譯及配置的一點注意事項

來源:互聯網
上載者:User

1、產生的目標檔案名可以在***.mpp裡設定,如:TARGET handler.app

 

2、目標檔案名將在“$(EPOCROOT)Epoc32"release"$(PLATFORM)"$(TARGET)"”檔案夾裡產生,如上面產生的目標檔案為“$(EPOCROOT)Epoc32"release"$(PLATFORM)"$(TARGET)"handler.app”

 

3、修改了目標檔案名後,需要手動的修改pkg檔案,如:

"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.app" -"!:\system\apps\handler\handler.app"

如果目標檔案名修改成Handler1.app上面的也需要修改,SDK不會自動幫你刪掉handler.app,它還會指向原來的handler.app檔案,此時新產生的handler1.app沒有打入包裡,會造成程式混亂。

 

4、修改了目標檔案名後,需要重新定義_reg.rss檔案註冊app,如:app_file="handler1";

 

5、在S60 2nd中,應用程式存入手機的位置是和應用程式名稱緊密聯絡的,如果應用程式名稱改變,存入的位置也要隨著改變,編譯後資源檔名也要改變,如:

"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.app"                 -"!:\system\apps\handler\handler.app"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.rsc" -"!:\system\apps\handler\handler.rsc"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.aif" -"!:\system\apps\handler\handler.aif"

 要改成

"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler1.app"                 -"!:\system\apps\handler1\handler1.app"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.rsc" -"!:\system\apps\handler1\handler1.rsc"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.aif" -"!:\system\apps\handler1\handler1.aif"

而在S60 3rd中,只需要改變輸出檔案名即可,路徑無需改變。如:

"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.exe" -"!:\sys\bin\handler1.exe"
"$(EPOCROOT)Epoc32\data\z\resource\apps\handler.rsc"-"!:\resource\apps\handler1.rsc"
"$(EPOCROOT)Epoc32\data\z\resource\apps\handler_loc.rsc"-"!:\resource\apps\handler1_loc.rsc"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\handler_reg.rsc"-"!:\private\10003a3f\import\apps\handler1_reg.rsc"

注意:S60 3rd與S60 2nd目標路徑有很大的不同。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.