@slackmoehrle Any updates on FB SdkBox plugin for (get friend list,invite friends,app request,score api )…?
I don’t have an update at this time. I will talk to engineering and get back to this thread.
I am working on integrate Android facebook via SDKBOX in my cocos2dx project,
I followed the steps, but always got java.lang.NoClassDefFoundError: com.facebook.R$layout fatal error.
the cocos2dx version i am using is 2.2.6, and sdkbox facebook version is sdkbox-facebook_v1.2.1.0_for_v2.
I am not familiar with Android development. Please give me a hand figure out whats wrong and how can I fix it,
Appreciate for any response!
Ok, I’ll create a sample for Facebook with 2.2.6 tomorrow.
Thank you!
Is there anyway to login FB silently? I mean, using login cache if device got it, so you can login in background meanwhile the game is loading.
I don’t know that there is, I can ask our engineering team about this.
Hey,
I just tried to update sdkbox and here what i got:
updating facebook v1.3.0.18 -> v1.3.1.8
sdkbox instance has no attribute 'android_set_element'
Installation failed :(
failed to update package facebook
Could you guys check it out?
Thanks.
what version of the installer?
Can you also run:
$ sdkbox symbols
$ sdkbox -vv import facebook
and post the output of both.
I just ran sdkbox update again to check it before running your suggestions, and it successfully updated
I’m affraid it’s not compiling. Here is $ sdkbox -vv import facebook
output:
"facebook": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-facebook_v1.3.1.8_for_v2.tar.gz",
"sha1": "645829a6360745e0d774909336a6bc93c21d491a"
},
"v3": {
"bundle": "sdkbox-facebook_v1.3.1.8.tar.gz",
"sha1": "62d2a77a6aba25423ce409de74129a8e4a88609c"
}
}
}
},
"flurryanalytics": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-flurryanalytics_v1.3.1.8_for_v2.tar.gz",
"sha1": "34a772b0e72d5351a646ddc7e800cfe271103d8e"
},
"v3": {
"bundle": "sdkbox-flurryanalytics_v1.3.1.8.tar.gz",
"sha1": "623fd5e2c2c17d19a23c09418091ef184c4dcd0a"
}
}
}
},
"fyber": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-fyber_v1.3.1.8_for_v2.tar.gz",
"sha1": "dfd65bed27eb192f5397cf3e1ee56ec1c5ac046d"
},
"v3": {
"bundle": "sdkbox-fyber_v1.3.1.8.tar.gz",
"sha1": "db38d2a381e0c6929fe4a87e0e57c74bd7f441ef"
}
}
}
},
"googleanalytics": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-googleanalytics_v1.3.1.8_for_v2.tar.gz",
"sha1": "983609ad97b71a454bca4e440f591cb5978c9955"
},
"v3": {
"bundle": "sdkbox-googleanalytics_v1.3.1.8.tar.gz",
"sha1": "b1740ce9db20d7b4dd9ab7927d518eb4dcbf14a3"
}
}
}
},
"iap": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-iap_v1.3.1.8_for_v2.tar.gz",
"sha1": "ed9d21b308e8510440d9155d0865ba6fb973869c"
},
"v3": {
"bundle": "sdkbox-iap_v1.3.1.8.tar.gz",
"sha1": "37df097d4103121ca6402993f2ffc8f477121002"
}
}
}
},
"kochava": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-kochava_v1.3.1.8_for_v2.tar.gz",
"sha1": "56cbe4bad740904430a7015b192aae2141f543de"
},
"v3": {
"bundle": "sdkbox-kochava_v1.3.1.8.tar.gz",
"sha1": "5146a47774c9579ee7ef75cc5e207b6e6effd21f"
}
}
}
},
"review": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-review_v1.3.1.8_for_v2.tar.gz",
"sha1": "1684ff166fa471f22684db341b681a59e5530bc6"
},
"v3": {
"bundle": "sdkbox-review_v1.3.1.8.tar.gz",
"sha1": "fa77336a933fd803275c5b660e02df3de3b68ae3"
}
}
}
},
"soomlagrow": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-soomlagrow_v1.3.1.8_for_v2.tar.gz",
"sha1": "31e9c6fab00117ae9eba1d98833bf524c40f74f1"
},
"v3": {
"bundle": "sdkbox-soomlagrow_v1.3.1.8.tar.gz",
"sha1": "6c2089fe0a6a4f29c8feb9cb20c1a1cdf45c6244"
}
}
}
},
"tune": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-tune_v1.3.1.8_for_v2.tar.gz",
"sha1": "e18f504cbc61fe79b4ca5712c4878d579bab1503"
},
"v3": {
"bundle": "sdkbox-tune_v1.3.1.8.tar.gz",
"sha1": "301225005a28a2b757e9b7d26169c4259ea40793"
}
}
}
},
"vungle": {
"versions": {
"1.3.1.8": {
"v2": {
"bundle": "sdkbox-vungle_v1.3.1.8_for_v2.tar.gz",
"sha1": "90ff359c5956dfe6cf32ca7fe65c15c04b446b25"
},
"v3": {
"bundle": "sdkbox-vungle_v1.3.1.8.tar.gz",
"sha1": "45d83893eebf9f21a9876ac019c756ecab6fa268"
}
}
}
}
}
}
googleanalytics soomlagrow fyber review vungle iap anysdk agecheq flurryanalytics facebook bee7 SDKBOX chartboost kochava adcolony tune
cocos2d-x installation directory C:/cocos2d-x-3.8/
cocos2d-x header directory C:/cocos2d-x-3.8/cocos/
cocos2d-x version 3.7.0
cocos2d-x project root C:/CocosProjects/Kelimece/
fallback to cocos project search False
cocos2d-x project type cpp
loaded package manifest
loaded cocos project
failed to load xcode project
loaded android project
load android studio project
supported projects cocos android android studio
package base name facebook
skipping download of sdkbox-facebook_v1.3.1.8.tar.gz, already exists as C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/
setting plugin source to C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/
SHA1 of downloaded package aa0c208ceb86aa432edfce190475287c92a6f9c3
adding to backup Android.mk.RZmarCV3.sdkbox.temp as C:/CocosProjects/Kelimece/proj.android/jni/Android.mk
adding to backup AndroidManifest.xml.6FRsvJD5.sdkbox.temp as C:/CocosProjects/Kelimece/proj.android/AndroidManifest.xml
adding to backup project.properties.lZfcYDdA.sdkbox.temp as C:/CocosProjects/Kelimece/proj.android/project.properties
found sdkbox.package at C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/sdkbox.package
skipping copying file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/sdkbox.framework to unknown dest n/a
skipping copying file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/PluginFacebook.framework to unknown dest n/a
skipping copying file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKCoreKit.framework to unknown dest n/a
skipping copying file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKLoginKit.framework to unknown dest n/a
skipping copying file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKShareKit.framework to unknown dest n/a
defining constant SDKBOX_PLUGIN_NAME=>Facebook
checking patch status of file Cocos2dxActivity.java against patch Cocos2dxActivity.java.3.8.patch
preprocessing patch Cocos2dxActivity.java.3.8.patch into Cocos2dxActivity.java.3.8.patch.j83ZVxBf.sdkbox.temp
crlf: 4 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 1
crlf: 8 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 2
crlf: 26 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 3
crlf: 30 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 4
crlf: 40 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 5
crlf: 47 lf: 0 cr: 0 - file: src/org/cocos2dx/lib/Cocos2dxActivity.java hunk: 6
- 6 hunks for src/org/cocos2dx/lib/Cocos2dxActivity.java
total files: 1 total hunks: 6
has_patched: C:\CocosProjects\Kelimece\cocos2d\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxActivity.java = True
checking patch status of file AppDelegate.cpp against patch AppDelegate.cpp.cpp.3.0.patch
preprocessing patch AppDelegate.cpp.cpp.3.0.patch into AppDelegate.cpp.cpp.3.0.patch.XO4Y35zd.sdkbox.temp
crlf: 3 lf: 0 cr: 0 - file: AppDelegate.cpp hunk: 1
crlf: 8 lf: 0 cr: 0 - file: AppDelegate.cpp hunk: 2
- 2 hunks for AppDelegate.cpp
total files: 1 total hunks: 2
has_patched: C:\CocosProjects\Kelimece\Classes\AppDelegate.cpp = False
adding to backup AppDelegate.cpp.xSfjOcGs.sdkbox.temp as C:/CocosProjects/Kelimece/Classes/AppDelegate.cpp
Saving to C:/CocosProjects/Kelimece/Classes/AppDelegate.cpp from AppDelegate.cpp.xSfjOcGs.sdkbox.temp
Saving to C:/CocosProjects/Kelimece/proj.android/project.properties from project.properties.lZfcYDdA.sdkbox.temp
Saving to C:/CocosProjects/Kelimece/proj.android/AndroidManifest.xml from AndroidManifest.xml.6FRsvJD5.sdkbox.temp
Saving to C:/CocosProjects/Kelimece/proj.android/jni/Android.mk from Android.mk.RZmarCV3.sdkbox.temp
Creating backup archive C:/CocosProjects/Kelimece/backup-2015-10-17.zip
Backup Completed.
skipped config_merge_section C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/sdkbox_config.json.sample C:/CocosProjects/Kelimece/Resources/sdkbox_config.json
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/sdkbox.framework n/a
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/PluginFacebook.framework n/a
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKCoreKit.framework n/a
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKLoginKit.framework n/a
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/ios/FBSDKShareKit.framework n/a
skipped xcode_add_framework sdkbox.framework
skipped xcode_add_framework PluginFacebook.framework
skipped xcode_add_framework FBSDKCoreKit.framework
skipped xcode_add_framework FBSDKLoginKit.framework
skipped xcode_add_framework FBSDKShareKit.framework
skipped xcode_add_framework Security.framework
skipped xcode_add_framework AdSupport.framework
skipped xcode_add_source sdkbox_config.json
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/libs/PluginFacebook.jar C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/libs/PluginFacebook.jar
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/libs/sdkbox.jar C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/libs/sdkbox.jar
copy C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/libs/facebook_lib to C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/libs/facebook_lib
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/jni/sdkbox C:/CocosProjects/Kelimece/proj.android/jni/sdkbox
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/jni/pluginfacebook C:/CocosProjects/Kelimece/proj.android/jni/pluginfacebook
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/libs/PluginFacebook.jar C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/libcocos2dx/libs/PluginFacebook.jar
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/libs/sdkbox.jar C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/libcocos2dx/libs/sdkbox.jar
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/jni/sdkbox C:/CocosProjects/Kelimece/proj.android-studio/app/jni/sdkbox
skipped copy_file C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/android/jni/pluginfacebook C:/CocosProjects/Kelimece/proj.android-studio/app/jni/pluginfacebook
skipped android_set_permission INTERNET
skipped android_add_library_reference C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/libs/./facebook_lib
skipped android_add_activity com.facebook.FacebookActivity android:configChanges=keyboard|keyboardHidden|screenLayout|screenSize|orientation android:theme=@android:style/Theme.Translucent.NoTitleBar android:label=@string/app_name
skipped android_add_element application meta-data {'name': 'com.facebook.sdk.ApplicationId', 'value': '@string/facebook_app_id'} None
skipped android_add_element application provider {'authorities': 'com.facebook.app.FacebookContentProvider_replace_with_your_app_id_', 'name': 'com.facebook.FacebookContentProvider', 'exported': 'true'} None
skipped android_set_element application None {'hardwareAccelerated': 'true'} None False
skipped android_add_static_library PluginFacebook
skipped android_add_static_library sdkbox
skipped android_add_call import-add-path, $(LOCAL_PATH)
skipped android_add_call import-module, ./sdkbox
skipped android_add_call import-module, ./pluginfacebook
found facebook_app_id already set to "742164562593704", skipping.
found facebook_app_id already set to "your_app_id", skipping.
skipped android_add_key_value 1 APP_PLATFORM android-15
skipped android_add_key_value 2 LOCAL_LDLIBS -landroid
skipped android_add_key_value 2 LOCAL_LDLIBS -llog
android added key:valuetarget-android-15
android added key:valuetarget-android-15
skipped patch_file Cocos2dxActivity.java
patches found [u'C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/plugin/AppDelegate.cpp.cpp.3.0.patch']
patching file AppDelegate.cpp with patch AppDelegate.cpp.cpp.3.0.patch
preprocessing patch AppDelegate.cpp.cpp.3.0.patch into AppDelegate.cpp.cpp.3.0.patch.yKbB4s1j.sdkbox.temp
crlf: 3 lf: 0 cr: 0 - file: AppDelegate.cpp hunk: 1
crlf: 8 lf: 0 cr: 0 - file: AppDelegate.cpp hunk: 2
- 2 hunks for AppDelegate.cpp
total files: 1 total hunks: 2
processing 1/1: AppDelegate.cpp
source file is different - AppDelegate.cpp
failed to apply hunk 0
>>>>>>>>>>>>>>>>>>>
@@ -1,2 +1,3 @@
#include "AppDelegate.h"
#include "HelloWorldScene.h"
+#include "PluginFacebook/PluginFacebook.h"
<<<<<<<<<<<<<<<<<<<
failed to apply hunk 1
>>>>>>>>>>>>>>>>>>>
@@ -30,3 +31,5 @@
}
bool AppDelegate::applicationDidFinishLaunching() {
+
+ sdkbox::PluginFacebook::init();
<<<<<<<<<<<<<<<<<<<
failed to patch file AppDelegate.cpp
Some installation steps failed.
Please refer to the online documentation, for instructions on how to complete the installation manually.
Documentation: http://sdkbox-doc.github.io/en/plugins/facebook/v3-cpp/
Installation completed with errors :|
Performing at_exit cleanup.
Tracking: {'sdkbox_version': '0.5.7.13', 'cocos': '3.7.0', 'args': {'patcherrors': 0, 'forcedownload': 0, 'nohelp': 0, 'dryrun': None, 'verbose': 2, 'plugin': u'C:/Users/DeathStar/.sdkbox/plugins/sdkbox-facebook_v1.3.1.8/', 'symbol': None, 'noupdate': 0, 'days': 10, 'server': 'download.sdkbox.com/installer/v1/', 'project': 'C:/CocosProjects/Kelimece/proj.android/', 'china': 0, 'installer': 'C:\\CocosProjects\\Kelimece\\proj.android\\sdkbox.pyc', 'forcecopy': 0, 'command': 'import', 'manifest': 'manifest.json', 'nopatching': 0, 'jsonapi': 0}, 'return_status': 'completed'}
tracking http://metrics.sdkbox.com/?%7B%22sdkbox_version%22%3A%220.5.7.13%22%2C%22cocos%22%3A%223.7.0%22%2C%22args%22%3A%7B%22patcherrors%22%3A0%2C%22forcedownload%22%3A0%2C%22nohelp%22%3A0%2C%22dryrun%22%3Anull%2C%22verbose%22%3A2%2C%22plugin%22%3A%22C%3A%2FUsers%2FDeathStar%2F.sdkbox%2Fplugins%2Fsdkbox-facebook_v1.3.1.8%2F%22%2C%22symbol%22%3Anull%2C%22noupdate%22%3A0%2C%22days%22%3A10%2C%22server%22%3A%22download.sdkbox.com%2Finstaller%2Fv1%2F%22%2C%22project%22%3A%22C%3A%2FCocosProjects%2FKelimece%2Fproj.android%2F%22%2C%22china%22%3A0%2C%22installer%22%3A%22C%3A%5C%5CCocosProjects%5C%5CKelimece%5C%5Cproj.android%5C%5Csdkbox.pyc%22%2C%22forcecopy%22%3A0%2C%22command%22%3A%22import%22%2C%22manifest%22%3A%22manifest.json%22%2C%22nopatching%22%3A0%2C%22jsonapi%22%3A0%7D%2C%22return_status%22%3A%22completed%22%2C%22CDID%22%3A%22a1d3c7175f5c03d9e525cf00d95ef78a0b4fd918%22%7D
And here is the $ sdkbox symbols
oıutput:
SDKBOX installer script symbols:
ANDROID_ACTIVITY_NAME n/a
ANDROID_ACTIVITY_PATH n/a
ANDROID_COCOS_PACKAGE_ROOT C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/
ANDROID_COCOS_SRC_DIR C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/src/org/cocos2dx/lib/
ANDROID_JNI_DIR C:/CocosProjects/Kelimece/proj.android/jni/
ANDROID_LIBS_DIR C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/java/libs/
ANDROID_MANIFEST C:/CocosProjects/Kelimece/proj.android/AndroidManifest.xml
ANDROID_MK C:/CocosProjects/Kelimece/proj.android/jni/Android.mk
ANDROID_MK_USES_WILDCARDS False
ANDROID_PROJECT_DIR C:/CocosProjects/Kelimece/proj.android/
ANDROID_PROPERTIES C:/CocosProjects/Kelimece/proj.android/project.properties
ANDROID_SDK_DIR C:/adt-bundle-windows-x86_64-20140702/sdk/
ANDROID_STUDIO_JNI_DIR C:/CocosProjects/Kelimece/proj.android-studio/app/jni/
ANDROID_STUDIO_LIBS_DIR C:/CocosProjects/Kelimece/cocos2d/cocos/platform/android/libcocos2dx/libs/
ANDROID_STUDIO_MANIFEST C:/CocosProjects/Kelimece/proj.android-studio/app/AndroidManifest.xml
ANDROID_STUDIO_MK C:/CocosProjects/Kelimece/proj.android-studio/app/jni/Android.mk
ANDROID_STUDIO_MK_USES_WILDCARDSFalse
ANDROID_STUDIO_PROJECT_DIR C:/CocosProjects/Kelimece/proj.android-studio/
ANDROID_STUDIO_PROPERTIES C:/CocosProjects/Kelimece/proj.android-studio/app/project.properties
COCOS_2DX_ROOT C:/cocos2d-x-3.8/
COCOS_2DX_VERSION 3.7.0
COCOS_BACKUP_DIR C:/CocosProjects/Kelimece/backup-2015-10-17/
COCOS_CLASSES_DIR C:/CocosProjects/Kelimece/Classes/
COCOS_PROJECT_DIR C:/CocosProjects/Kelimece/
COCOS_PROJECT_HINT C:/CocosProjects/Kelimece/
COCOS_PROJECT_TYPE cpp
COCOS_RESOURCES_DIR C:/CocosProjects/Kelimece/Resources/
IOS_PROJECT_DIR n/a
SDKBOX_DIR C:/Users/DeathStar/.sdkbox/
XCODE_PROJECT n/a
XCODE_PROJECT_DIR n/a
And i get “WindowsError: [Error 32] The process cannot access the file because it is
being used by another process” when i try to restore a backup.
Installer version is the latest one.
Compile error after sdkbox update:
In file included from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:28:0,
from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/SplashScene.h:5,
from jni/../../Classes/SplashScene.cpp:1:
jni/../../Classes/LoginRegisterScene.h: In static member function 'static LoginRegisterScene* LoginRegisterScene::create()':
C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../platform/CCPlatformMacros.h:44:49: error: cannot allocate an object of abstract type 'LoginRegisterScene'
__TYPE__ *pRet = new(std::nothrow) __TYPE__(); \
^
jni/../../Classes/LoginRegisterScene.h:20:2: note: in expansion of macro 'CREATE_FUNC'
CREATE_FUNC(LoginRegisterScene);
^
In file included from jni/../../Classes/SplashScene.cpp:2:0:
jni/../../Classes/LoginRegisterScene.h:13:7: note: because the following virtual functions are pure within 'LoginRegisterScene':
class LoginRegisterScene : public cocos2d::Layer, sdkbox::FacebookListener, public cocos2d::extension::EditBoxDelegate
^
In file included from jni/../../Classes/LoginRegisterScene.h:6:0,
from jni/../../Classes/SplashScene.cpp:2:
jni/PluginFacebook/PluginFacebook.h:219:22: note: virtual void sdkbox::FacebookListener::onRequestInvitableFriends(const sdkbox::FBInvitableFriendsInfo&)
virtual void onRequestInvitableFriends( const FBInvitableFriendsInfo& friends ) = 0;
^
jni/PluginFacebook/PluginFacebook.h:220:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsWithInviteIdsResult(bool, const string&)
virtual void onInviteFriendsWithInviteIdsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:221:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsResult(bool, const string&)
virtual void onInviteFriendsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:223:22: note: virtual void sdkbox::FacebookListener::onGetUserInfo(const sdkbox::FBGraphUser&)
virtual void onGetUserInfo( const FBGraphUser& userInfo ) = 0;
^
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]
[armeabi] Compile++ thumb: cocos2dcpp_shared <= LoginRegisterScene.cpp
make.exe: *** [obj/local/armeabi/objs/cocos2dcpp_shared/__/__/Classes/SplashScene.o] Error 1
make.exe: *** Waiting for unfinished jobs....
[armeabi] Compile++ thumb: cocos2dcpp_shared <= App42HttpClient.cpp
In file included from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:28:0,
from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/LoginRegisterScene.h:5,
from jni/../../Classes/LoginRegisterScene.cpp:1:
jni/../../Classes/LoginRegisterScene.h: In static member function 'static LoginRegisterScene* LoginRegisterScene::create()':
C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../platform/CCPlatformMacros.h:44:49: error: cannot allocate an object of abstract type 'LoginRegisterScene'
__TYPE__ *pRet = new(std::nothrow) __TYPE__(); \
^
jni/../../Classes/LoginRegisterScene.h:20:2: note: in expansion of macro 'CREATE_FUNC'
CREATE_FUNC(LoginRegisterScene);
^
In file included from jni/../../Classes/LoginRegisterScene.cpp:1:0:
jni/../../Classes/LoginRegisterScene.h:13:7: note: because the following virtual functions are pure within 'LoginRegisterScene':
class LoginRegisterScene : public cocos2d::Layer, sdkbox::FacebookListener, public cocos2d::extension::EditBoxDelegate
^
In file included from jni/../../Classes/LoginRegisterScene.h:6:0,
from jni/../../Classes/LoginRegisterScene.cpp:1:
jni/PluginFacebook/PluginFacebook.h:219:22: note: virtual void sdkbox::FacebookListener::onRequestInvitableFriends(const sdkbox::FBInvitableFriendsInfo&)
virtual void onRequestInvitableFriends( const FBInvitableFriendsInfo& friends ) = 0;
^
jni/PluginFacebook/PluginFacebook.h:220:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsWithInviteIdsResult(bool, const string&)
virtual void onInviteFriendsWithInviteIdsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:221:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsResult(bool, const string&)
virtual void onInviteFriendsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:223:22: note: virtual void sdkbox::FacebookListener::onGetUserInfo(const sdkbox::FBGraphUser&)
virtual void onGetUserInfo( const FBGraphUser& userInfo ) = 0;
^
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/cocos2dcpp_shared/__/__/Classes/LoginRegisterScene.o] Error 1
make.exe: Leaving directory `C:/CocosProjects/Kelimece/proj.android'
Error running command, return code: 2.
You have to implement these additional functions for Facebook invite.
In .h file:
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
void onInviteFriendsWithInviteIdsResult(bool result , const std::string & description);
In .cpp file:
void LoginRegisterScene::onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string){
}
void LoginRegisterScene::onInviteFriendsWithInviteIdsResult(bool result, const std::string & description){
}
The error:
jni/../../Classes/LoginRegisterScene.h:115:39: error: 'FBInvitableFriendsInfo' does not name a type
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
^
jni/../../Classes/LoginRegisterScene.h:115:64: error: ISO C++ forbids declaration of 'invitable_friends_and_pagination_json_as_string' with no type [-fpermissive]
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
^
In file included from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:28:0,
from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/SplashScene.h:5,
from jni/../../Classes/SplashScene.cpp:1:
jni/../../Classes/LoginRegisterScene.h: In static member function 'static LoginRegisterScene* LoginRegisterScene::create()':
C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../platform/CCPlatformMacros.h:44:49: error: cannot allocate an object of abstract type 'LoginRegisterScene'
__TYPE__ *pRet = new(std::nothrow) __TYPE__(); \
^
jni/../../Classes/LoginRegisterScene.h:20:2: note: in expansion of macro 'CREATE_FUNC'
CREATE_FUNC(LoginRegisterScene);
^
In file included from jni/../../Classes/SplashScene.cpp:2:0:
jni/../../Classes/LoginRegisterScene.h:13:7: note: because the following virtual functions are pure within 'LoginRegisterScene':
class LoginRegisterScene : public cocos2d::Layer, sdkbox::FacebookListener, public cocos2d::extension::EditBoxDelegate
^
In file included from jni/../../Classes/LoginRegisterScene.h:6:0,
from jni/../../Classes/SplashScene.cpp:2:
jni/PluginFacebook/PluginFacebook.h:219:22: note: virtual void sdkbox::FacebookListener::onRequestInvitableFriends(const sdkbox::FBInvitableFriendsInfo&)
virtual void onRequestInvitableFriends( const FBInvitableFriendsInfo& friends ) = 0;
^
jni/PluginFacebook/PluginFacebook.h:221:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsResult(bool, const string&)
virtual void onInviteFriendsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:223:22: note: virtual void sdkbox::FacebookListener::onGetUserInfo(const sdkbox::FBGraphUser&)
virtual void onGetUserInfo( const FBGraphUser& userInfo ) = 0;
^
In file included from jni/../../Classes/LoginRegisterScene.cpp:1:0:
jni/../../Classes/LoginRegisterScene.h:115:39: error: 'FBInvitableFriendsInfo' does not name a type
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
^
jni/../../Classes/LoginRegisterScene.h:115:64: error: ISO C++ forbids declaration of 'invitable_friends_and_pagination_json_as_string' with no type [-fpermissive]
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
^
[armeabi] Compile++ thumb: cocos2dcpp_shared <= App42Service.cpp
In file included from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:28:0,
from C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/LoginRegisterScene.h:5,
from jni/../../Classes/LoginRegisterScene.cpp:1:
jni/../../Classes/LoginRegisterScene.h: In static member function 'static LoginRegisterScene* LoginRegisterScene::create()':
C:\CocosProjects\Kelimece\proj.android\../cocos2d/cocos/3d/../platform/CCPlatformMacros.h:44:49: error: cannot allocate an object of abstract type 'LoginRegisterScene'
__TYPE__ *pRet = new(std::nothrow) __TYPE__(); \
^
jni/../../Classes/LoginRegisterScene.h:20:2: note: in expansion of macro 'CREATE_FUNC'
CREATE_FUNC(LoginRegisterScene);
^
In file included from jni/../../Classes/LoginRegisterScene.cpp:1:0:
jni/../../Classes/LoginRegisterScene.h:13:7: note: because the following virtual functions are pure within 'LoginRegisterScene':
class LoginRegisterScene : public cocos2d::Layer, sdkbox::FacebookListener, public cocos2d::extension::EditBoxDelegate
^
In file included from jni/../../Classes/LoginRegisterScene.h:6:0,
from jni/../../Classes/LoginRegisterScene.cpp:1:
jni/PluginFacebook/PluginFacebook.h:219:22: note: virtual void sdkbox::FacebookListener::onRequestInvitableFriends(const sdkbox::FBInvitableFriendsInfo&)
virtual void onRequestInvitableFriends( const FBInvitableFriendsInfo& friends ) = 0;
^
jni/PluginFacebook/PluginFacebook.h:221:22: note: virtual void sdkbox::FacebookListener::onInviteFriendsResult(bool, const string&)
virtual void onInviteFriendsResult( bool result, const std::string& msg )= 0;
^
jni/PluginFacebook/PluginFacebook.h:223:22: note: virtual void sdkbox::FacebookListener::onGetUserInfo(const sdkbox::FBGraphUser&)
virtual void onGetUserInfo( const FBGraphUser& userInfo ) = 0;
^
jni/../../Classes/LoginRegisterScene.cpp: At global scope:
jni/../../Classes/LoginRegisterScene.cpp:923:6: error: prototype for 'void LoginRegisterScene::onRequestInvitableFriends(const sdkbox::FBInvitableFriendsInfo&)' does not match any in class 'LoginRegisterScene'
void LoginRegisterScene::onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string){
^
In file included from jni/../../Classes/LoginRegisterScene.cpp:1:0:
jni/../../Classes/LoginRegisterScene.h:115:7: error: candidate is: void LoginRegisterScene::onRequestInvitableFriends(const int&)
void onRequestInvitableFriends(const FBInvitableFriendsInfo & invitable_friends_and_pagination_json_as_string);
^
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/cocos2dcpp_shared/__/__/Classes/SplashScene.o] Error 1
make.exe: *** Waiting for unfinished jobs....
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/cocos2dcpp_shared/__/__/Classes/LoginRegisterScene.o] Error 1
make.exe: Leaving directory `C:/CocosProjects/Kelimece/proj.android'
Error running command, return code: 2.
You are missing this function
also make sure to use sdkbox:: FBInvitableFriendsInfo
But before SDKBox facebook latest update, i did use none of these and got no compilation errors. Why now i have to implement them all?
Because we added Facebook invite functionality.
Use it how?