Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocosBuilder build failed on Xcode. Can somebody pls upload a working binary? #434

Open
edudemy opened this issue Apr 24, 2014 · 11 comments

Comments

@edudemy
Copy link

edudemy commented Apr 24, 2014

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.

@sleepybuddha
Copy link

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'

@HyeYoungKim
Copy link

I also have the same problem. Please tell me how to solve.

@edudemy
Copy link
Author

edudemy commented May 14, 2014

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.

@HyeYoungKim
Copy link

Thank you for your comment.
I obtained working binary. And I deleted the CocosBuilder source.
So I couldn't that.
Sorry.

@shinhirota
Copy link

@edudemy
Copy link
Author

edudemy commented May 26, 2014

In which file is this second diff? @shinhirota @58721e1

Subproject commit ...

@shinhirota
Copy link

Strictly speaking, it is not a file but checkout of submodule. Please try

$ cd CocosBuilder/libs/cocos2d-iphone
$ git checkout e15080a4569a7dd80737d8c6f2206fcf91ca098f

@patrickhoey
Copy link

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:
3351040

There is a multi-step process in order to make this work (detached HEAD) with the latest for tag “release-1.1-RC0”

  1. 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
  1. $ cd CocosBuilder/libs/cocos2d-iphone
  2. $ git checkout 9bd04c2286e32a8bc5ba90f85de1170b91d86d1f

@edudemy
Copy link
Author

edudemy commented Aug 21, 2014

Can you post the configuration setttings and steps you used for the build.

@ryanlee0
Copy link

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.

@mattscott
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants