Creating Cocos2dxGame for iOS using eclipse on Windows Machine - cocos2d-x

I am using windows machine and trying to make a game for iOS in cocos2dx. The editor I am using is Eclipse. Version of cocos2dx is latest.
I have followed many tutorials but not a single tutorial guides me how to code in eclipse for iOS using cocos2dx.
I have seen Classes folder which contains Appdelegate.h and cpp along with helloworld.h and cpp.
When I create a new android project using existing project, i am unable to find classes folder.
I need help on how to get started.
Thank you

Related

Getting error while creating JavaFX11 application in Apache Netbeans 10

i am new to java fx and i have downloaded Apache Netbeans 9 which runs on java 11.
since java fx is shipped separately, i have downloaded openjfx-11.0.1_SDK and followed steps in this link https://openjfx.io/openjfx-docs/#install-javafx
when i try to create java fx application in apache netbeans , i am getting below error
Failed to automatically set-up a JavaFX Platform.
Please go to Platform Manager, create a non-default Java SE platform, then go to the JavaFX tab,
enable JavaFX and fill in the paths to valid JavaFX SDK and JavaFX Runtime.
Note: JavaFX SDK can be downloaded from JavaFX website
attaching screen shot of netbeans 10.
This is for the future developers that will stumble on this problem. You can follow this video for Installing JavaFX13 and integrate it with Apache Netbeans 11.2. Try following the instructions here
There might be problems with CSS autocomplete but you can create a JavaFx project now.
Edited: As suggested from the other answer, you can download the JavaFX from the official page of JavaFX.
I had the same issue on Netbeans 11. I solved this issue by following below steps.
Download the javafx.zip file from the website and after downloading it put it on JDK folder.
First, click on Manage Platforms and then click on Add platform and after clicking on Add platform it will ask of the filename, so give the path till JDK folder.
After giving path click on next and it will ask for platform name and platform sources so in platform sources give the path till src.zip (jdk/lib/src.zip) and press finish button.
After finishing button, you will see the new platform is added with the same name you have given platform name then click on it and go-to sources and click on Add Jar/Folder button and give the path till javafx.zip file which is saved on JDK folder.
After giving path click on add Jar/folder and close it. After closing it click on JavaFX platform and in that you will see the platform name is there click on it and create the project.
The problem is fixing by jdk1.8. Download and install at the page - https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html for your platform. For me, it was "Linux x64 Compressed Archive"(https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz)
after that:
setting up 1
setting up 2
It may be too late, but I figured it out nonetheless. You, and all other people reading this while trying to figure out how to use JavaFX with any Apache Netbeans version should:
create a new Library, name it JavaFx and in it, put all the .jar files(not the src.zip file) inside the lib directory of the unzipped javafx installation.
create a new normal java project. Go to project properties, and to module path, add the library JavaFx.
create a new module-info.java file (netbeans automates it) in that project and in it, you should put a dependency to all of the JavaFx components, if netbeans didn't already do that (in my case, it did. I didn't even have to hand code a single dependency). And yes, declare the module as "open module".
In essence, I just told you to modularize your project

Cocos Studio: Cocos Framework is not installed error

I installed Cocos Studio v2.3.3 to C:\Cocos using the link to a non-framework included package on the cocos2d-x.org site. I then unpacked cocos2d-x v3.9 using the zip file provided into the C:\Cocos\frameworks\cocos2d-x-3.9 - but Cocos Studio doesn't recognize that the Cocos2d-x framework is installed.
When I look in the Platform section of the Preferences menu item under the Edit menu, it show this:
And as expected, when I try to modify an already created project options, I see this:
I've tried all the suggestions posted in the Cocos2d-x forums, including but not limited to editing the Frameworks\FrameworksVersionList.xml to include the entry for cocos2d-x-3.9 (it was already there), editing the cocos2d.ini file in tools\console\bin, removing various combinations and then all cocos environment variables and quite a few others. None of the solutions either by themselves or in combination with one another worked.
Has anyone gotten Cocos Studio to work with a separate installation of Cocos2d-x framework?
Details of the solution with various things I tried are listed in this blog post: http://vijay.tech/talks/solved-cocos-studio-cocos-framework-is-not-installed-error/ Note that the post has a registry edit script (.REG file) attached for convenience.
But the essential steps are listed here:
Download and install Cocos for Windows V2.3.3 (the one without framework) to C:\Cocos
Download and unzip cocos2d-x-3.9.zip to C:\Cocos\frameworks\cocos2d-x-3.9
Manually create the following registry entries on Windows (64 bit):
HKLM\Software\Wow6432Node\CocosFramework\InstallDir as a REG_SZ and set it to C:\Cocos
HKLM\Software\Wow6432Node\CocosFramework\3.9\EngineVersion as a REG_SZ and set it to cocos2d-x-3.9
HKLM\Software\Wow6432Node\CocosFramework\3.9\Path as a REG_SZ and set it to C:\Cocos\frameworks\cocos2d-x-3.9
Create a file named version with the contents cocos2d-x-3.9 in C:\Cocos\frameworks\cocos2d-x-3.9
If you also want to do Android development, then Android SDK, Android NDK, Ant and JDK paths should be set in the Platform section of the Edit/Preferences menu item, else skip this step.

Setting up phonegap development environment

I am working on the windows-8 PC. And i have some HTML app gui which i want to convert to android mobile app.
I am new to phonegap.
How to setup the development environment for phonegap?
1> Following tool android developers app tells to use phonegap cli to create new project :--
http://phonegap.com/blog/2014/04/23/phonegap-developer-app/
This video uses Android sdk to create new project :--
http://www.youtube.com/watch?v=MF6dzbTDwdY
Which is the best methord to start working with phonegap ?
Do we need android SDK if we work with phonegap cli ?
2> This link tells to use commandline or IDE methord to create phonegap projects :--
https://github.com/phonegap/phonegap/wiki
3> What exactly is the relation between android SDK & phonegap cli .. ?
i would recommend you to use Cordova. Why? Yes, there is no realy reason why to do this, It's rather a question of what you like to work with.
I'm using Cordova. Maybe you read the Getting started guide and then the following documentation.
After you installed all, you can open up the CMD and create a new cordova project. If you want to know, how to do this, go on with the posted link above. A little bit under the setup instructions you can find a Guide which explains you, how to setup a new project and so on.
If you work with Cordova, you need Eclipse and i would recommend you to install Genymotion for having more options of deploying an app to a device.
Later on, if you would like to convert an Application to another platform you can use the Phonegap Build from Adobe. But normaly you can use your code like you wrote it for android 1:1 for iOS. Maybe there are some tiny differences, but they would'nt be fixed by the phonegap build i think. So... i would say there is no way to say "You should work with Phonegap" or "You should work with Cordova" it's your choice.
If you want to build app for android locally you'll need android SDK. This is because phonegap/cordova uses the android SDK to wrap the app.
Basically phonegap/cordova uses the SDK to compile the project for android platform and to build the APK file which can be installed in devices. You can interpret as Phonegap/cordova cli is an interface between android technology and cross platform technology. Similarly iOS will need some native technology to work with phonegap. Thiese SDK helps to build and package the app for their own platform which you've written in HTML/CSS/Javascript.

deploy cocos2dx existing ios project for android platform

I have a cocos2d-x project in ios platform and I want to deploy this project in android as well.Please help me and explain the steps for it.My cocos2d-x project contains Box2d features into it.
You have to create a sample project for the Android using cocos command and then need to configure some basic parameters. Check out wiki linked on official site .
https://github.com/chukong/cocos-docs/blob/master/manual/framework/native/getting-started/v3.0/how-to-start-a-new-game/en.md

How to change config settings on local ios phonegap build from the new Phonegap CLI?

FYI; Phonegap CLI: http://log.michaelbrooks.ca/post/phonegap-cli-preview
So, after making a build with the new Phonegap CLI, getting a project with the new Phonegap 3.0, I wanted to run my application on an ios simulator:
> phonegap local run ios
This successfully install the phonegap application onto the IOS 6.1 simulator and runs it- all good so far. Problem is that all REST-functionality is not working. I dig around and find out that the phonegap local run ios automatically creates a ios xcode project at /platforms/ios/. Inside this folder I can locate a config.xml-file with access origin set to only allow http://127.0.0.1*. Now, I want to change this, so I do. Problem is that when I run phonegap local run ios again the old config file is back.
So basically, the questions end out in:
How do I change the Phonegap configuration settings when using Phonegap CLI?
Ah, I feel very embarrassed now, but I think its better to share then to delete :)
If you have a config.xml file in your www-folder (which shipped originally, but I have removed) you can change the values from there. This file will be copied over.
So in my config.xml-file inside my apps www-folder I found:
<access origin="http://127.0.0.1*"/>
Just before the last tag, . I changed this to:
<access origin="*"/>
And then everything worked :)