Problems on Cocos2d-x for iOS Programming - cocos2d-iphone

I am newbie to the CoCos2d-x Game engine. I am using the book "Learning Cocos2d".However, when I create a project, the "classes" folder doesn't contain the .m file. I can find the .cpp file only so that I cannot use the Objective C code (as the code in the course book). I have to convert the code from Objective C to Cpp. Is there any solution that Xcode can create a .m file for me?
Thanks

Cocos2d: Obj.C Based iPhone only
You can find Cocos2d sdk here: Download Cocos2d SDK
Cocos2d-x : C++ Bsed Crossplatform
You can find Cocos2d-x sdk here: Download Cocos2d-x SDK

Related

Where to find BGI file?

I am trying to plot circle using graphics.h library but all the tutorials and examples I have seen had "C:\TurboC\BGI" in the initgraph() function. As long I understand, the mentioned path leads to the graphics driver, but in my my PC I was unable to find any BGI file.
I am using mingw-w64 environment on visual studio code.
Is there any different command or add-on I should install to access graphics programming in c++?
It would be a lot of help, if anyone can suggest any alternative way to do graphics programming in c++.
Go to https://github.com/ananay/turboc OR download Turbo C++ software then use the installation location (which is C:/ in above example) /TurboC/BGI
BGI files come with Turbo C++

How to run Xcode C++ on iOS sumulator

How do I run C++ code, developed in Xcode, on the iOS simulator on a Macbook Pro?? Is C++ compatible with the iOS simulator? The command line has c++ but there is no option for iOS simulator on it.
You can mix Objective-C code and C++ by using Objective-C++. All you need to do to start using Objective-C++ is to start with an Objective-C project, then rename a source file to have the extension .mm instead of .m. Objective-C++ files can then include plain C++ headers directly, and you can compile plain C++ sources as part of the same Xcode project.
Here's a tutorial with more details.
The simulator can run iOS apps, it can't run terminal applications that won't run directly on an iOS device.
You can run C++ code in Xcode, but it'd be running on your Mac, not the iOS Simulator. Xcode when building for iOS (and therefore the simulator as well) only natively support Swift and Objective-C.

How to use OXml with C++ Builder 10.1 Berlin Update 2 Starter

I want to use the OXml component (OXml website) with C++ Builder 10.1 Berlin Update 2 Starter. I asked arround in the newsgroups of Embarcadero, in the Community of Embarcadero, on the forum of the creator of OXml. But no-one replied. I am new at using components. I used the TXMLDocument in Turbo C++ Explorer which worked well. But now I want to use a modern developmenttool.
My question is basically: How do I use OXml in C++ Builder Starter. I installed it as a component which created .hpp and .dcu files. But how do I use it further. I looked at the .hpp files and every .hpp file has its own namespace. I want to read XML files and extract the data within them so I can use it in my programs.
Hope someone can give me some examples how to do this.
Greetings,
Don

Configuring JSONCPP with cococ2dx

I ma using cocos2d-x with eclipse on mac osx. I am trying to configure JSON cpp into my cocos2d-X game. Can anyone tell me how i can integrate the library into my project ?
Cocos2d-x 2.2 and earlier versions has already support for jsoncpp library and it is used in Cocos2d-x extensions. Just check the Coco-Studio examples in TestCpp project.
Or you can take reference from extensions\CocoStudio\Reader\SceneReader.cpp which reads json file to load a scene.

how to get the header files for graphicsmagick

i am developing an image processing tool using QT. Am new to both QT & graphicsmagick(magick++) c++ library. i have planned to use c++ as my development language. can anyone suggest me how to get the graphicsmagick header files?
You download the graphicsmagick package for your platform from sourceforge.
Going to their sourceforge website maybe... http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/