Chartboost compilation fails

Hi Guys,

As said in http://discuss.cocos2d-x.org/t/integration-help-for-javascript/21389/6?u=kolbma
and http://discuss.cocos2d-x.org/t/integration-help-for-javascript/21389/8?u=kolbma i have trouble in compiling Chartboost from SDKBOX.
Infos:

19:09:10 In file included from jni/../../Classes/SDKBoxJSHelper.cpp:1:0:
19:09:10 jni/../../Classes/SDKBoxJSHelper.h:6:5: error: 'JSBool' does not name a type
19:09:10      JSBool js_to_number(JSContext *cx, jsval v, double *dp);
19:09:10      ^
19:09:10 jni/../../Classes/SDKBoxJSHelper.cpp:5:5: error: 'JSBool' does not name a type
19:09:10      JSBool js_to_number(JSContext *cx, jsval v, double *dp)
19:09:10      ^

A piece of error code i have with compilation.
IDE: Cocos Code IDE 2.0 (IntelliJ IDEA)
Cocos version: cocos-js v3.6
I compile for Android.

Where do I find jsapi.h @nite

Hope for help

It should be in frameworks/js-bindings/external/spidermonkey/include/ios/jsapi.h

I’m sorry, but I’m not able to find MOZJS_MAJOR_VERSION
@nite
http://pastebin.com/3daA4nhi

Sorry, my bad, try looking for frameworks/js-bindings/external/spidermonkey/include/ios/js-config-64.h

#define MOZJS_MAJOR_VERSION 33
#define MOZJS_MINOR_VERSION 1

Try our Cocos Helper https://github.com/SonarSystems/Sonar-Cocos-Helper

Stange, SDKBoxJSHelper should work with your version of cocos2d-js

I created one for you, download the SDKBoxHelper.h and SDKBoxHelper.cpp and replace the one you have. see if it works.
https://gist.github.com/darkdukey/5b2b8dc4542243dbd5c2

1 Like

tisk, tisk, @SonarSystems we are trying to solve a users issue. It is rather rude to suggest they look at another product as we are trying to help them. Please use better judgement.

1 Like

So many new errors…
I’m really confused…
You can find the latest logfile in the zip attached to this post.
log.zip (16.4 KB)

EDIT: So i found out that there has to be a Problem with this:

15:09:51     [javac] C:\Users\Marco\Documents\cocos\MathTap\frameworks\js-bindings\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxActivity.java:32: error: package org.cocos2dx.plugin does not exist
15:09:51     [javac] import org.cocos2dx.plugin.PluginWrapper;

So guys finally everything seems to work :blush:
I want to thank you all guys for helping me.
The solution for the last error i found here: Integration help for c++

So the .jar files needs to be in your-project-folder/cocos2d/cocos/platform/android/java/libs folder instead?

Yes weird but it really worked…