[Solved]Can not create C++ project in Cocos Studio

Hi,
I am facing a weird issue.
So I am using Cocos 2.2.8. I have downloaded Cocos Framework and installed it.Initially I had the zip file as well. So I am facing two issues.

  1. I can’t create C++ Project in Cocos Studio. Also there is no engine option to select(if it helps).
  2. Same issue happens when I try to run the project from cocos Studio. It gives error. It says that I need to install Cocos Framework.
    So I think that my installation of Cocos is not recognized at all.
    Any help will be greatly appreciated as I am running on tight schedule.

I assume that you have downloaded and installed the framework from the store. If that is so, it should have worked. The frameworks should reside in the “Framework” folder at the same directory as your Cocos application. Check to see if it is the case.

Edit: sorry, wrong thread. :slight_smile:

Hi
If by store you mean in-built store of Cocos then yes. Also to your second query. Cocos2dx framework does reside in Framework folder.

try to run the setup.py which is inside the framework-folder. Maybe that helps.

@Michael-Nopes that didnt worked.

Hi,
It has been few weeks, yet it has not been solved. It is quite frustrating. I don’t know why it is not working.

just create the c++ project via cocos console. you are still able to use cocos studio.

A C++ project in Cocos Studio?

Cocos Studio is an editor for Animations and Scenes! It’s not related to any programming language at all.

Are you referring to Cocos IDE? If so, Cocos IDE does not support C++. It only supports JS and LUA.

No but I need to run scene directly from Cocos studio to android phone.
If you look,clearly I can preview the scene, but I can’t Run on Android as Popup shows up on the screen as seen in Image.

@iQD New projects can be created with cocos studio.

@EvilDeveloper
Are you able to set the cocos framework here?

Mate,Na I am not able to set Cocos Framework at project setting .
but that it is the issue,in my case,when I try to create new project. It doesnt show Engine version and C++ mode is hidden. Also I have installed cocos framework. So you are using cocos via the zip file you download , the one which you download and install from cocos?

This is not Cocos Studio, but Cocos! Cocos Studio is the Animation/Scene editor.

The option in my Cocos version is grayed out anyways.

Cocos it just a project configuration and management tool, which can startup the other tools like Cocos IDE or Cocos Studio.

By not using the correct nomenclature in posts, it can lead to misunderstandings.

Hi,the issue persists in Cocos as well.

@iQD It is Cocos Studio… Cocos looks a little different … They use the same cocos console but @EvilDeveloper asked concerning Cocos Studio and NOT Cocos…


File - New Project:

Sorry, my bad. I forgot about that. Although the interfaces look the same.

But what is the purpose of the project language inside Cocos Studio?

I’m not able to test it, as the Cocos Store is not displaying anything, besides a empty error website.

The C++ option is grayed out.

The purpose of setting the langauge inside Cocos Studio is so your project is ready to start coding as you can create 2 different types of Cocos Studio projects:

  1. Resource project which is just the Cocos Studio stuff which you export and import into your project manually
  2. Complete project which is resource plus the Cocos code stuff and is linked and ready to start coding

Hope this helped clear things up

Are you referring to the Cocos IDE?

It makes sense in Cocos, but not Cocos Studio.
It’s like PhotoShop giving you the option to generate a VS project

Yeah, it is like at first they tried to use cocos studio and add the editor/cocos code ide in it. But now it looks like that isn’t working (in the near future?) and they are added a cocos console gui to cocos, too.
I wouldn’t mind the gui stuff and use cocos console instead.

Thanks,
Well,Thanks all. BTW @iQD, that “C++ option grayed out” is all the problem.
Anyhow. I don’t think that we are reaching any where near close to solution.