001-Cocos2dx-2.1.3 environment setup-windows

Source: Internet
Author: User

001-Cocos2dx-2.1.3 environment setup-windows
1. Install vs20122. Download cocos2dx2.1.3, decompress the package, and install the vs template.The installation method must be in the dZ release of cmd? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vc9bQo6xjZLW91eK49sS/material =" http://www.2cto.com/uploadfile/Collfiles/20141015/2014101508454920.png "alt =" \ ">
3. Start vs to create a project:
4. After the project is created:
5. Configure the environment, add the header file path and lib pathIn View --> Property Manager:
In Debug, select. Win32.user.
Modify the include directory and library directory.
You need to configure all the header file directories of cocos2dx for the included directories, which are listed here. If they are missing, add them as needed: (replace % cocos2dxDir % with the actual path of cocos2dx) cocos2dxInclude: % cocos2dxDir % \ cocos2dx \ include; % cocos2dxDir % \ external; % cocos2dxDir % \ cocos2dx \ platform \ win32; % cocos2dxDir % \ external \ chipmunk \ include \ chipmunk; % variables % \ external \ sqlite3 \ include; % cocos2dxDir % \ cocos2dx \ kazmath \ include; % variables % \ cocos2dx \ platform; % cocos2dxDir % \ cocos2dx \ platform \ third_party \ win32; % cocos2dxDir % \ chipmunk \ include \ chipmunk; % cocos2dxDir % \ cocos2dx; % cocos2dxDir % \ CocosDenshion \ include; % cocos2dxDir % \ cocos2dx \ extensions; % extensions % \ cocos2dx \ extensions; % cocos2dxDir % \ cocos2dx \ extensions \ AssetsManager; % extensions % \ cocos2dx \ extensions \ LocalStorage; % cocos2dxDir % \ cocos2dx \ extensions \ network; % cocos2dxDir % \ cocos2dx \ extensions \ physics_nodes; % cocos2dxDir % \ cocos2dx \ extensions \ spine;
% Cocos2dxDir % \ cocos2dx \ extensions \ GUI \ CCControlExtension; % cocos2dxDir % \ cocos2dx \ extensions \ GUI \ CCEditBox; % cocos2dxDir % \ cocos2dx \ extensions \ GUI \ CCScrollView; % parameter % \ cocos2dx \ extensions \ CCNotificationCenter; % cocos2dxDir % \ cocos2dx \ extensions \ CCListView; % parameter % \ cocos2dx \ extensions \ CCControlExtension; % parameter % \ cocos2dx \ extensions \ CCBReader;
6. Download the OpenGL Development Library: GLEWHttps://www.opengl.org/sdk/libs/GLEW/
For the installation method, see "doc/index.html". I am vs2012 and installed the edisk, so the path is: E: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ VC \ include \ GL.

GLEW is a cross-platform C ++ extension Library Based on OpenGL graphical interfaces. All those who use OpenGL know that Windows currently only supports the Han numbers of OpenGL1.1, but OpenGL is now more than 2.0. To use these advanced OpenGL features, you must download the latest extensions. In addition, different video card companies will also release some extension functions that are supported only by their own graphics cards. If you want to use these extensions, you have to find the latest glext. h. With the GLEW extension library, you no longer have to worry about finding function interfaces, because GLEW can automatically identify all the OpenGL advanced extensions supported by your platform. That is to say, if you include a glew. h header file, you can use the full function of gl, glu, glext, wgl, and glx. GLEW supports various popular operating systems (including Windows, Linux, Mac OS X, FreeBSD, Irix, and Solaris ). Project home: http://glew.sourceforge.net/document address: http://glew.sourceforge.net/install.html: https://sourceforge.net/project/downloading.php? Group_id1_67586&filename=glew-1.5.1-src.zip
7. Compile:
8. RunPrepare the dll file of cocos2dx before running. The simplest way is to copy all the dll files under cocos2d-2.1rc0-x-2.1.3 \ Debug. win32 to C: \ Windows \ System32. If it is a 64-bit system, copy it to C: \ Windows \ SysWOW64 and run it again.

--------------------------------------------- Completed -----------------------------------------------

Solution: 1. "input error: No file extension". js "script engine ."

Enter "regedit" in the operation to enter the registry,

You only need to change the default value under [HKEY_CLASSES_ROOT \. js] To "JSFile" to run the JS file normally.


2. input error: unable to find the script file"C: \ Users \ Administrator \ template \ msvc \ InstallWizardForVC2010Express. js is because of the direct double-click bat reason, need to execute in cmd: cd/d E: \ 02_soft_libs \ cocos2d-2.1rc0-x-2.1.3 # Switch to the cocos2dx directory install-templates-msvc.bat # Then execute Installation
3. An error is reported during the last step of Project Creation.
Solution:
Uninstall the update.

4. When running, an error is reported:Copy the dll to the program running directory or system directory (in System32 or SysWOW64)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.