However, I’m quite a novice and I was unable to run the examples from this folder properly.
I’ve imported HelloPluginsLua into Cocos Code IDE.
I’ve managed to run it on my device (However, only after modifying my AppDelegate.cpp, Android.mk etc).
I’ve got a black screen with a lot of choices: facebook, ads, etc but when I press them, they just didn’t function.
I remember that it was unable to find classes like plugin or plugin.PluginManager…
Moreover, I was unable to find any manual on how to prepare the project to run these examples with Lua. There is only a kind of manual for C++ samples (https://github.com/cocos2d-x/plugin-x/wiki/Sample).
BTW I’m working under Windows and for Android devices.
jni/../../../cocos2d-x/plugin/luabindings/manual/lua_pluginx_manual_callback.cpp: In function 'int lua_pluginx_protocols_FacebookAgent_login(lua_State*)':
jni/../../../cocos2d-x/plugin/luabindings/manual/lua_pluginx_manual_callback.cpp:778:66: error: 'tolua_err' was not declared in this scope
if (!toluafix_isfunction(tolua_S,2,"LUA_FUNCTION",0,&tolua_err))
^
jni/../../../cocos2d-x/plugin/luabindings/manual/lua_pluginx_manual_callback.cpp:800:66: error: 'tolua_err' was not declared in this scope
if (!toluafix_isfunction(tolua_S,3,"LUA_FUNCTION",0,&tolua_err))
^
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [enabled by default]
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [enabled by default]
make.exe: *** [obj/local/armeabi/objs/cocos2dlua_shared/__/__/__/cocos2d-x/plugin/luabindings/manual/lua_pluginx_manual_callback.o] Error 1