Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

导入工程到IDE时图象资源可能无法生成

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 2nd Edition, FP3,S60 3rd Edition

文章
huwell 在 28 Jun 2007 创建
最后由 hamishwillee 在 20 Oct 2011 编辑
  • 设备, 软件 版本: S60 2nd Edition, FP3,S60 3rd Edition
  • 说明:

当我们将一个Symbian应用程序工程导入到IDE时(如MetroWorks CodeWarrior或Microsoft Visual Studio),试图编译它,但bitmap资源会无法生成。

  • 详细描述:

在S60第三版上,multi-image文件(.mbm或.mif)以及相关的image header files(.mbg)是通过mifconv图象转换工具生成的。是bld.inf中通过一个扩展的makefile来完成的,这个方法在S60 2nd Edition, Feature Pack 3.就开始被支持。


这些扩展的makefile不会在IDE中随着工程的编译而被执行,因此图片文件和头文件将不会在编译时自动产生,通常这就导致工程因为缺少.mbg文件而失败。


  • 解决方案:

我们可以通过abld命令去生成这些图片资源,到\group目录下,输入

bldmake bldfiles
abld resource

在此后,工程就能被顺利导入IDE并被编译,注意如果图片资源(source bitmaps或SVG images)被修改了,那这个过程还要重复做一次。

This page was last modified on 20 October 2011, at 02:09.
86 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×