求教:froyo 中如何启动overlays.cpp中的main()函数

解决方案 »

  1.   

    目录拷贝出来,然后改makefile的LOCAL_MODULE_TAGS := eng编译,做固件, 烧进去, 终端运行test-overlays 就行了
      

  2.   

    o  
    那我没有板子  
    在模拟器里面可以起这个main()不?
      

  3.   

    一样的。 编好了在adb shell里面运行即可。
      

  4.   

    http://topic.csdn.net/u/20110217/09/29808a90-0f0f-4fcc-a0ee-49e7c62fa998.html
    中可以说的详细点不?
    copy哪个目录到哪里去?改哪个makefile文件阿?
    下面是我的代码treeaopclinux tests # pwd
    /work/froyo/frameworks/base/libs/surfaceflinger/tests
    aopclinux tests # tree
    .
    ├── Android.mk
    ├── overlays
    │   ├── Android.mk
    │   └── overlays.cpp
    └── resize
        ├── Android.mk
        └── resize.cpp2 directories, 5 files
    aopclinux tests #
      

  5.   

    overlays这个目录不要放在tests吧,android build系统没研究过,貌似放在里面不编译。 你就把这个目录拷贝到根目录下看看。
    makefile就是overlays目录下的Android.mk
      

  6.   

    搞定 多谢the wind from May
    五月风吹代码醉
    直把我司当谷歌thanks