Skip to content

v3.1 cannot be compiled successfully or crashed after fixing compilation issue #6

@cck3rry

Description

@cck3rry

There are several issues:

  1. The code cannot be compiled, because some file contains CCMenuItem.h header file, while its folder is not added. (Actually it's contained in cocos2d.h, unnecessary to include it explicitly)
    2 After fix first issue, the game is crashed on both Windows and Android, after debugging, it seems the PNGs are in "image" folder under Resources, however it's only file name in the source code, file doesn't exist "splash.png" is not under Resources.
    2.a Copy images from image folder to Resource root folder can fix the issue.
    2.b add /image/ to file name in source code. e.g. "/image/splash.png"
  2. The last issue is Android.mk file is not correct, many CPP files are not included

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions