Js runtime ccp编译报错

都按教程做了, 最后用ide打包apk,cpp不能通过编译

lid = JS_GetProperty(cx, global, “initializing”, &initializing) && JSVAL_TO_BOOLEAN(initializing);
^
jni/…/…/Classes/autoanysdkbindings.cpp:19:105: error: there are no arguments to ‘JSVAL_TO_BOOLEAN’ that depend on a template parameter, so a declaration of ‘JSVAL_TO_BOOLEAN’ must be available -fpermissive]
isNewValid = JS_GetProperty(cx, global, “initializing”, &initializing) && JSVAL_TO_BOOLEAN(initializing);
^
jni/…/…/Classes/autoanysdkbindings.cpp:19:105: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
jni/…/…/Classes/autoanysdkbindings.cpp:30:97: error: could not convert ‘typeClass->.proto’ from ‘JS::Heap<JSObject*>’ to ‘JS::Handle<JSObject*>’
JSObject *_tmp = JS_NewObject(cx, typeClass->jsclass, typeClass->proto, typeClass->parentProto);

3.5版本的js?js新版本改了新的绑定,我们目前还没支持

自己太粗了,原来没在main.cpp里 加 #include “PluginJniHelper.h”