CocosBuilder
CocosBuilder copied to clipboard
CocosBuilder build failed on Xcode. Can somebody pls upload a working binary?
Cloned the latest CocosBuilder and tried to build it. It failed.
If someone downloaded the CocosBuilder binary file (from the previous site CocosBuilder.com) or have built a binary pls upload it on dropbox or else where, and post the link here.
Same here! I get for "git submodule update --init --recursive" fatal: reference is not a tree: b51de15acb37d72719b03314771e4caa04e57a33 Unable to checkout 'b51de15acb37d72719b03314771e4caa04e57a33' in submodule path 'cocos2d-iphone'
I also have the same problem. Please tell me how to solve.
Trying to execute the ./BuildDistribution.sh file under scripts directory in Terminal.
It says missing CCMenu.h while compiling CCBPMenu.h -- seems we have to locate the exact commit of the missing file.
Seems like CCMenu folder has been altered/tampered when the project was abandoned in favor of Spritebuilder project a year back. The other folders date 2 years back - look for working commits from year back.
Thank you for your comment. I obtained working binary. And I deleted the CocosBuilder source. So I couldn't that. Sorry.
I changed 2 files and was able to build it.
https://github.com/shinhirota/CocosBuilder/commit/58721e1a8aa5cf220d57c526f21c44ffb4acb708
In which file is this second diff? @shinhirota @58721e1
Subproject commit ...
Strictly speaking, it is not a file but checkout of submodule. Please try
$ cd CocosBuilder/libs/cocos2d-iphone
$ git checkout e15080a4569a7dd80737d8c6f2206fcf91ca098f
This fatal: reference is not a tree: b51de15acb37d72719b03314771e4caa04e57a33
was quite annoying.
I have made some initial fixes that will at least get you past getting all the proper submodules: 3351040a54f590e0ae4a46ec5c8b2247777887d9
There is a multi-step process in order to make this work (detached HEAD) with the latest for tag “release-1.1-RC0”
- Under the root directory of this repository, edit the “.gitmodules” with the following diffs:
diff --git a/.gitmodules b/.gitmodules
index 70efbcf..e61c729 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,12 +1,12 @@
[submodule "CocosBuilder/libs/cocos2d-iphone"]
path = CocosBuilder/libs/cocos2d-iphone
- url = https://github.com/cocos2d/cocos2d-iphone.git
+ url = git://github.com/cocos2d/cocos2d-iphone-classic.git
[submodule "CocosBuilder/libs/ssziparchive"]
path = CocosBuilder/libs/ssziparchive
- url = https://github.com/vlidholt/ssziparchive
+ url = git://github.com/vlidholt/ssziparchive
[submodule "CocosBuilder/libs/Fragaria"]
path = CocosBuilder/libs/Fragaria
- url = https://github.com/vlidholt/Fragaria.git
+ url = git://github.com/vlidholt/Fragaria.git
[submodule "Examples/CocosBuilderExample/libs/CCBReader"]
path = Examples/CocosBuilderExample/libs/CCBReader
url = git://github.com/cocos2d/CCBReader.git
-
$ cd CocosBuilder/libs/cocos2d-iphone
-
$ git checkout 9bd04c2286e32a8bc5ba90f85de1170b91d86d1f
Can you post the configuration setttings and steps you used for the build.
Understand me though my English is a little awkward, I am not good at English. I think the reason build failed is [cocos2d-iphone] submodule. When I did "git submodule update --init --recursive" command, cocos2d-iphone folder was empty. So I just did "git checkout" to change commit to "Commit : 5e8fdee5cdc4450ad32f5a8579ee6a0fdcbb1cfa", "Date: May 22, 2013 at 2:29:31 AM GMT+9" But, there was no "ccFPSImages.m" file. So I just down load that file from another github project. And I could build it successfuly.
Okay just worked through this.
Make sure you pull branch v3.5.0.
Step 1: Follow patrickhoey's Step 1 and modify .gitmodules
Step 2: Make sure you're in the root directory of the CocosBuilder project and run: git submodule update --init --recursive
This will error on cocos-iphone-classic.
Step 3: cd CocosBuilder/libs/cocos2d-iphone
Step 4: git checkout 5e8fdee5cdc4450ad32f5a8579ee6a0fdcbb1cfa
Step 5: Get a copy of this project in an entirely separate directory. There have been files removed at some point that need to be re-added. https://github.com/cocos2d/cocos2d-iphone-classic
Step 6: Copy the following files from the cocos2d-iphone-classic project: cocos-iphone-classic/cocos2d/ccFPSImages.m --> CocosBuilder/libs/cocos2d-iphone/cocos2d/ccFPSImages.m cocos-iphone-classic/cocos2d/Support/uthash.h --> CocosBuilder/libs/cocos2d-iphone/cocos2d/Support/uthash.h cocos-iphone-classic/cocos2d/Support/utlist.h --> CocosBuilder/libs/cocos2d-iphone/cocos2d/Support/utlist.h
This worked for me.