[SOLVED]How to setup SDKBOX installer correctly on OS X

I am using mac OS X.

My project directory path is-- /Users/Abc/Documents/MCocosProject/FBDemo
“FBDemo” is my project.

My sdkbox_installer path is-- /Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox_installer
“sdkbox_installer” is the sdkbox installer folder after unzip.

My Facebook plugin path is-- /Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox-facebook_v1.2.1.0.tar.gz

I am wandering what command should I give to install “SDKBOX installer” …?

I would add /Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox_installer to your path.

Then cd into /Users/Abc/Documents/MCocosProject/FBDemo

and type sdkbox import facebook

2 Likes

@mannewalis thank you!!
I understand 2 and 3 line but how to add “/Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox_installer” to my path in terminal. what command I should execute to add …? or I have to copy sdkbox_installer folder and past some where…

presently my terminal looks like–
MacBook-Pro:~ Abc$

There are a few different ways to accomplish this, but if you are using BASH, you can edit your ~/.bash_profile

export SDKBOX_ROOT=/Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox_installer
export PATH=$SDKBOX_ROOT:$PATH

the execute: source ~/.bash_profile for this to take effect.

3 Likes

@slackmoehrle Thank you !!
I think I have to manually edit the .bash_profile file on a text editor.
I execute the command on terminal-- open ~/.bash_profile
Its popup a text file which contains all environment variable for ANT_ROOT,ANDROID_SDK_ROOT,NDK_ROOT,COCOS_TEMPLATES_ROOT,COCOS_CONSOLE_ROOT

export SDKBOX_ROOT=/Users/Abc/Desktop/1-L/Plugins-2dx/sdkbox_installer
export PATH=$SDKBOX_ROOT:$PATH
I am adding above 2 lines to that text file(bash_profile) by copy paste. that will be ok I think …? then execute: source ~/.bash_profile .what i have to do next to confirm --> Run setup.py on terminal …?

@mannewalis,@slackmoehrle now after adding “export SDKBOX_ROOT” and “export PATH” to .bash_profile I got this on my terminal :-
MacBook-Pro:FBDemo Abc$ sdkbox import facebook_v1.2.1.0
Traceback (most recent call last):
File “monolith.py”, line 4456, in
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 530, in getlocale
return _parse_localename(localename)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 443, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: UTF-8

add this to your bash profile as well…

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
1 Like

@mannewalis Thank you!! I have Added above two line bellow “export SDKBOX_ROOT”,“export PATH” on .bash_profile and execute the command “source ~/.bash_profile”.then I execute “sdkbox import facebook” command as bellow is my terminal output:-

MacBook-Pro:FBDemo Abc$ sdkbox import facebook


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 Chukong Technologies Inc. v0.5.6.11

downloading package sdkbox-facebook_v1.2.1.0.tar.gz


******** Manual Step ********


  1. Edit “project.properties”
    Set “target=android-15”

Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/facebook/v3-cpp/
Installation Successful :slight_smile:
MacBook-Pro:FBDemo Abc$

Do I need to do any thing else other than the above mentioned Manual Step …?

I believe for iOS there might be some code you need in AppDelegate. The docs you listed should mention all you need to do.

2 Likes

@mannewalis,@slackmoehrle
MacBook-Pro:Game Abc$ sdkbox import chartboost

CRC check failed 0x37a20942 != 0x64854cb7L
Installation failed frowning

But if I run the command –
MacBook-Pro:Game Abc$ sdkbox list

its shows the path like below–
chartboost
v1.2.1.0
sdkbox-chartboost_v1.2.1.0_for_v2.tar.gz
sdkbox-chartboost_v1.2.1.0.tar.gz installed as /Users/Abc/.sdkbox/plugins/sdkbox-chartboost_v1.2.1.0.tar.gz

After that error I import IAP and IAP is successfully done.
I am not from china…how to remove the path and freshly import chartboost.
Thank you!!

I solved my issue I Guess , 1st unhide all folders on my Mac by using terminal command and then navigated to /Users/Abc/.sdkbox/plugins/ path and delete the sdkbox-chartboost_v1.2.1.0.tar.gz and unzip folder of chart boost and Again Hide all content on my mac.

Then I executed sdkbox import chartboost command to freshly import chartboost.

Yes we are working on adding the ability to clean your .sdkbox folder and also update installations once new versions of the packages are released. In the mean time, you are doing the right thing :smile:

I got this message:
“Traceback (most recent call last):
File “monolith.py”, line 4456, in
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 530, in getlocale
return _parse_localename(localename)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py”, line 443, in _parse_localename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: UTF-8”

How to fix it?

Thanks

@windbk Try this suggested by @mannewalis