cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.22k stars 7.06k forks source link

cocos/sdkbox import iap auto generated code bug #14147

Open mikrosNikolas opened 9 years ago

mikrosNikolas commented 9 years ago

Hi My setup is cocos on linux sdk and ndk from Android Studio installation.

I do cocos new -l cpp -d . -p to create a new project cd to the created directory and compile the project for android and/or android-studio cocos compile -p android cocos compile -p android --android-studio I test it on my mobile and it is ok.

Then I try to add iap with sdkbox sdkbox import iap

The operation successfully completes.

Then I try to re compile the project

And I get an Error the on #include "PluginIAP/PluginIAP.h" the this file does not exists. and it does not cause the folder is "pluginiap" and not "PluginIAP"

jni/../../Classes/AppDelegate.cpp:3:33: fatal error: PluginIAP/PluginIAP.h: No such file or directory

include "PluginIAP/PluginIAP.h"

I changed "PluginIAP" to "pluginiap" and it compiles.

This line was inserted automatically from sdkbox it not a mistake I made.

P.S. Is there any complete guide with example on how to create a plugin for sdkbox.

minggo commented 8 years ago

@darkdukey do you know where is the best place to report SDKBOX issues?

darkdukey commented 8 years ago

The best place for cocos2d-x related sdkbox issue is on the forum http://discuss.cocos2d-x.org/c/sdkbox

We're aware this issue, it only happens with certain disk format, will let you know once we have a fix for it.

minggo commented 8 years ago

thanks @darkdukey