Skip to content

zhangyufei49/cocos2d-x_2_0_4_templete_for_qtcreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cocos2d-x's project template for qtcreator on *nix OS.

How to use it

  • Clone project template

  • Copy cocos2d_2.x_linux and cocos2d_3.x_linux to to qtcreator's wizard directory

    • at home (maybe path does not exist, so just create it): ~/.config/QtProject/qtcreator/templates/wizards
    • or system-wide: /usr/share/qtcreator/templates/wizards
  • Set COCOS2D_ROOT environment variable. In case of ubuntu:

    • open the .profile file in your home path
    • and add similar line at the end of the file:
    • export COCOS2D_ROOT=$HOME/your-path-to-cocos2d/
  • If you're using cocos2dx version 2.x, please also compile cocos2d-x's libs. Open a terminal and input these commands:

cd $COCOS2D_ROOT
chmod +x make-all-linux-project.sh
./make-all-linux-project.sh

wait it finished

  • Now you can open your QtCreator, press Ctrl+N, select the "Non-Qt project" category and look for cocos2d-x's icon. Choose it and enjoy coding!

About

cocos2d-x_2_0_4_templete_for_qtcreator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published