unable to process assets while packaging cocos2d-x android

后端 未结 1 1176
南旧
南旧 2021-01-03 04:06

I just started working on cocos2d-x to build games. I have completed setup. I am getting below error when I run \"HelloCpp\" sample.

(skipping file \'.gitign         


        
1条回答
  •  孤城傲影
    2021-01-03 04:59

    This problem has multiple solutions and I tried each one of them, and the last one worked properly. I am giving you the exact steps I took to get it work for me.

    1.Check if Cygwin has the neccessary packages, if not install them. The following packages are required -

    autoconf, automake, binutils, gcc-core, gcc-g++, gcc4-core, gcc4-g++, gdb, pcre, pcre-devel, gawk, make
    

    (I skipped gcc4-core and gcc4-g++)

    2.Tried renaming Marker Felt.ttf to remove the space, however since it gets regenerated, I searched for the file in all of my C: drive and renamed it everywhere.

    3.Then I ran Eclipse in Administrator mode.

    4.I was getting the same error although only once this time. So I changed the permission of the Asset folder in the build_native.sh itself. Just add the following line at the end of your build_native.sh file.(Taken from here)

    chmod 777 -R "$APP_ANDROID_ROOT"/assets
    

    and voila, it worked. I am not sure which one of the step was not required so I put everything here. I am guessing that running eclipse in admin mode was not required, since I can work now in normal mode too. Just in case you get into same problem you can try running it in admin mode.

    0 讨论(0)
提交回复
热议问题