@ckh wrote:
Hello, after using the SDKbox and successfully importing facebook, I failed to compile my project, and the following errors occurs:
jni/../../Classes/PluginFacebookJSHelper.cpp: In function 'JSOBJECT* JS_NEW_OBJECT(JSContext*)': jni/../../Classes/PluginFacebookJSHelper.cpp:34:33: error: 'cx' was not declared in this scope return JS_NewObject(cx, NULL, NULL, NULL); ^ jni/../../Classes/PluginFacebookJSHelper.cpp: In function 'bool JS_ARRAY_SET(JSContext*, JSOBJECT*, uint32_t, JSOBJECT*)': jni/../../Classes/PluginFacebookJSHelper.cpp:57:72: error: could not convert 'pr' from 'JSPROPERTY_VALUE {aka JS::Rooted<JS::Value>}' to 'JS::MutableHandle<JS::Value>' return JS_SetElement(cx, JS::RootedObject(cx,array), index, pr ); ^ jni/../../Classes/PluginFacebookJSHelper.cpp: In function 'JSOBJECT* JS_NEW_ARRAY(JSContext*, uint32_t)': jni/../../Classes/PluginFacebookJSHelper.cpp:83:35: error: too few arguments to function 'JSObject* JS_NewArrayObject(JSContext*, int, jsval*)' return JS_NewArrayObject(cx, 0); ^ In file included from jni/../../Classes/PluginFacebookJSHelper.h:5:0, from jni/../../Classes/PluginFacebookJSHelper.cpp:2: D:\android\projects\colorMatchv1\frameworks\runtime-src\proj.android\../../js-bindings/external/spidermonkey/prebuilt/android/../../include/android/jsapi.h:3016:1: note: declared here JS_NewArrayObject(JSContext *cx, int length, jsval *vector); ^ jni/../../Classes/PluginFacebookJSHelper.cpp: In function 'bool js_PluginFacebookJS_PluginFacebook_getFriends(JSContext*, uint32_t, jsval*)': jni/../../Classes/PluginFacebookJSHelper.cpp:602:27: warning: 'cocos2d::CCArray' is deprecated (declared at D:\android\projects\colorMatchv1\frameworks\runtime-src\proj.android\../../js-bindings/cocos2d-x/cocos/3d/../deprecated/CCDeprecated.h:1034) [-Wdeprecated-declarations] cocos2d::CCArray *array = cocos2d::CCArray::create();
any Help is really appreciated. Thanks.
Posts: 1
Participants: 1