How to install cocos-2d templates in Xcode 5? - cocos2d-iphone

When i am trying to execute following command from Terminal in Maverick os(Xcode 5) to install templates of cocos2d 3.0 rc-1, I am getting following message.
-bash: install.sh: command not found
What could be the reason ?
Please help by giving some meaningful comments/hint...

Download Latest Cocos2d.
Open the terminal (Don't type anything).
Drag the install file (install-templates.sh/install.sh) into the terminal.
Finally press enter only.
Now,you check the Xcode->New Project there you get cocos2d.

To install cocos2d to Xcode on Mavericks, in terminal type in the following commands. Also you should move the cocos2d folder to your desktop just for simplicity.
cd ~\Desktop\[Cocos2d Folder];
sudo install.sh //I think you are missing the 'sudo'
Then enter in your password when you are prompted. Text will not show up even if you are typing. After terminal finishes you can open up you xcode and you should see a cocos2d template option on the left navigation bar.
Tutorial: http://iphonedevsdk.com/forum/ad-hoc-beta-testing/75910-how-to-install-cocos2d-in-xcode.html
Cocos2d: http://www.cocos2d-iphone.org/download/

Simply use Cocos2d installer that they provide on there website
http://www.cocos2d-iphone.org/blog/wp-content/uploads/2014/01/Cocos2D-3.0.dmg
The link will start the download and them install the dmg, the program takes care of the rest :D
If you'd like to read up on it go to http://www.cocos2d-iphone.org/download/ and look at the section marked 1)

Related

How to run the SFML template?

I have installed the SFML templates (SFML App and SFML CLT) for Xcode to learn more about the library and improve my c++ skills. But I get an Error when I'm trying to run the template.
I have already installed the SFML framework and some external libraries, which SFML depends on.
But when I choose the template "SFML App" to create a new project and I try to run it, I get this error:
ditto: can't get real path for source '/Users/SFML/Desktop/packaging/tmp/install/Library/Frameworks/sfml-system.framework'
couldn't copy /Users/SFML/Desktop/packaging/tmp/install/Library/Frameworks/sfml-system.framework to /Users/seadkurtovic/Library/Developer/Xcode/DerivedData/My_First_SFML_App-bcabgonrxpifggalnkqaxhpyqygs/Build/Products/Debug/My First SFML App.app/Contents/Frameworks//sfml-system.framework
Command PhaseScriptExecution failed with a nonzero exit code
Does anyone know what I did wrong? Because I have actually followed everything carefully according to this tutorial: SFML and Xcode (macOS)
I had the same problem! And I found the answer here:
https://en.sfml-dev.org/forums/index.php?topic=24677.0
Build phases -> Run script -> check "Run script only when installing"
Here is the image:
https://imgur.com/LGZjxN7
Hmm, did you try installing the command line tools for XCode?
Try run this code inside the terminal:
xcode-select --install

Adding appropriate debugger to BeagleBone Qt Kit

I downloaded gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz, extracted it and in Qt Kit selected debugger as arm-linux-gnueabihf-gdb, and I get following error:
I am not sure why debugger is not appropriate for this situation?
I solved a problem after several hours of searching for solution.
Follow these steps:
sudo apt-get install gdb-multiarch
In your BBB kit for debugger select gdb-multiarch from /usr/bin/, it should work now!

how to uninstall iTerm2

After searcher for about an hour and only getting install options I have to ask. How to uninstall iTerm2.
So some how I passed a big load of JSON into it (don't ask) and now it has lost the plot some what. So I want to kill it and start over, profile and all.
If it's installed by Homebrew then you could use brew cask uninstall iterm2.
If it's installed by a manually downloaded DMG file then
you could goto the /Applications folder in Finder, find the iTerm
Icon, right-click it and then move to trash.
Moving iTerm2 from Applications to Trash or performaning a brew uninstall --cask iterm2 may not be enough as it leaves behind Finder Context Menu Items:
There's FAQ entry covering how to remove all settings:
defaults delete com.googlecode.iterm2
However, running the above command does not remove the items from the Finder Context Menu even after a killall Finder.
I opened an issue on the iTerm repo on GitLab: https://gitlab.com/gnachman/iterm2/issues/8459.
Look there for updates on how to uninstall iTerm2 completely.
To completely remove in using terminal:
Quit the app.
Open Terminal and execute the following.
sudo rm ~/Library/Preferences/com.googlecode.iterm2.plist
sudo rm -r ~/Library/Application\ Support/iTerm2
sudo rm -r /Applications/iTerm.app
Use the free drag-and-drop AppCleaner app
Doing so will locate and remove all iTerm files like so:
Search iterm globally to ensure that all executable programs named iterm on your Mac are deleted. Then right-click the context menu and select open with iterm once. At this time, it will report an error. Click OK. Right click again to view the context menu, and you will find that iterm has disappeared from your list.

How to install Command Line Tools for Xcode 5.0.2 in OSX Mavericks?

I need to install the Command Line Tools, in order to be able to compile Node C++ stuff.
Using xcode-select
Trying to use
xcode-select --install
Yields
Looking in Xcode's Preferences, Downloads
Trying to access the Downloads panel in Xcode
Version 5.0.2 (5A3005)
Yields
(no option to install Command Line Tools)
How the hell do I install these tools? Installing them by hand didn't help either
Two possible paths.
1)
Use the "Locations" pane in Xcode Preferences. You're looking for something like this:
2)
You can download the tools from Apple's website, where it's sitting:
Interestingly enough, the description for the Command Line tools lists a date, but not a compatible Xcode version. So the one I've opened up the disclosure triangle for is likely to be the one you want.

Qt on beagle bone black (full install not cross-compile)

I want to use qt on beagle bone black same as we use on desktop without "cross compiling" and "tool chain" stuff. I already done this for raspberry pi running raspbian wheezy using
apt-get install qtcreator
command. I searched on google and found something called qt embedded for BBB. I followed
opkg update
opkg install qt4-embedded --force-depends
opkg install libqtcoree-dev libqtguie-dev
instructions and installed qt embedded on BBB running Armstrong on it.
Now i have a project developed on my desktop in qt creator and i want to build it on BBB. I am searching for this from last two days with no success, all i found eveywhere is "cross compile" and "tool chain". Does anyone knows how to build qt project on BBB natively (whether it is possible or not?)?
I copied my folder containing qt project on Armstrong desktop.
Then i go in directory
cd Desktop/DisplayPara
and tried
qmake DisplayPara.pro
it only shows somthing like this
sh: -d:command not found
sh: -d:command not found
I tried
qmake -project DisplayPara.pro
which also end up with same error. I don't know what's going wrong ? any help, suggestions will appreciated. Thanx...
I didn't have any luck with those instructions either.
I removed all Qt packages and did:
opkg install qt4-embedded
opkg install qt4-embedded-dev
Then in the directory with my application I did:
source /usr/share/qtopia/environment-setup
qmake -project
qmake
make
Exit gnome (or other desktop). I just use Ctrl-Alt-F1 to get to a console window.
Then run:
./myapp -qws
The -qws flag makes the application run under its own Qtopia server.
I would like to be able to run under the Gnome desktop environment, but this is the only way I could get something that works.
Hints welcome.