Vistual Studio: First steps

Goals

  1. Compile and run cocos2d-x tests on the emulator
  2. Set a breakpoint in Visual Studio.

Running cpp-test on the Emulator

1. Download cocos2d-x v3.0

2. Unzip it and then go to cocos2d-x/build directory

$ cd cocos2d-x/build

3. Open cocos2d-wp8.vc2012.sln with Visual Studio

$ start cocos2d-wp8.vc2012.sln

4. Set cpp-tests (Windows Phone Silverlight 8) as the default project:

  • Go to the Solution Explorer
  • Right click on cpp-tests (Windows Phone Silverlight 8)
  • Click on Set as StartUp Project

vs_default_project

5. Run cpp-tests on the Emulator

  • Press the Emulator 8.1 WVGA 4 inch button

run-emulator

6. If the following Dialog pops-up, just press Retry:

hypervisor

And that’s all. You should see the cpp-tests running on the Emulator:

cocos2d-emulator

Continue reading “Vistual Studio: First steps”

Comparing prices

Let’s compare some prices.

iOS:

Android:

Windows Phone 8:

 

Random thoughts:

  • Price-wise, Android is the cheapest.
  • Quality-wise, Android is also the cheapest. Developing for the NDK is very expensive (time-wise). So in the end developing for Android is much more expensive than developing for iOS (I don’t know yet how expensive is to develop for WinPhone).
  • iOS developers’ experience is years ahead of Android’s. Developing and debugging for Android’s NDK reminds me when I was developing for Linux in the 90s. Google, come one, please give us a good C++ IDE for the NDK.
  • You can develop Android apps using Mac, Windows or Linux. But you need a Mac to develop for iOS. And you need a PC in order to develop for Windows Phone.
  • Xcode became a great IDE. Not only because of compiler improvements, but also of how well it is integrated with iOS: OpenGL Frame grabber, GPU analysis, memory leak detection, CPU profiler, etc.
  • Six years ago, Visual Studio was the best IDE out there. It was way ahead of Xcode. I’m eager to use VS again. I’ll let you know my findings.

Installing Visual Studio

So, by now you should have Windows 8.1 up and running.

The next thing is to install the Windows Phone SDK.

A few days ago I tried the Windows Phone 8.0 SDK (it comes with Visual Studio Express 2012) and it works OK.

But VS 2013 Update 2 RC (announced 2 days ago) already comes with the Windows Phone SDK 8.1 (which also allows you to develop for WP 8). This is good, because you don’t need to have two versions of VS installed in your machine in order to develop for Windows and Windows Phone 8.

And yes, in VS 2012 you needed to install two versions of VS: one to develop for Windows and another to develop for Windows Phone. It is like you needed to install two versions of Xcode: One to develop for iOS and another to develop for Mac. Mmmmm….