Windows Codeblocks Debug Cocos2d-x Project Experience (one failed experience)

Source: Internet
Author: User

A long time ago an article was introduced under Ubuntu to install cocos2d-x3.11 and use Codeblock debug cocos2d-x program: http://www.cnblogs.com/moonlightpoet/p/5553499. HTML and many under Windows are debugged with Visual Studio, while writing this blog, my notebook number second is still installed in Visual Studio. However, to Cocos2d-x and Cocos2d-x JS have a certain understanding of what I think the compiler is irrelevant to the CPP program for example, in the Proj.linux directory has a main.cpp, inside the main () function is the entry program under Linux , and there is a main.cpp inside the proj.win32, although there is no main () function, but I think the _twinmain () function should be the entry procedure of the Windows CPP program. (because I have little knowledge of MFC and VS, so here is one, hoping that the great God can give guidance) so as long as the newspaper these default programs do not change, we actually want to modify is the classes/directory of the program. We assume that Cocos2d-x is now installed (3.12 on my Computer) and that a CPP project Helloworldcpp is generated through the instruction Cocos new helloworldcpp-l CPP directive. At this point we need to first download the code::blocks:code::blocks download page with mingw: HTTP://WWW.CODEBLOCKS.ORG/DOWNLOADS/26 download Link:/http sourceforge.net/projects/codeblocks/files/binaries/16.01/windows/ Codeblocks-16.01-setup.exe then download cmake (My computer is 64-bit): CMake download page: https://cmake.org/download/download Link: https://cmake.org/ Files/v3.6/cmake-3.6.1-win64-x64.msi is basically a fool-type installation, in addition to installing CMake note it is best to add cmake to system path. (if it does not work after installation, manually add the path of the bin directory under the CMake installation directory to path, then enter the CMake test at the command line) and then go to the project directory, in the previous UbuntuThe following command of the line: Codeblocks-mingw makefiles should be able. So input: Cmake-g ' Codeblocks-mingw makefiles ' but prompt error: CMake error:could not create named generator ' Codeblocks feeling still a bit of a problem. Then try to use the Cmake-gui way to CMake, ... Eventually found a lack of many dependency, temporarily give up the embarrassment. The last mistake was the seemingly forgotten OpenGL ew: 
D:\cocos\projects\demo1\helloworldcpp>cmake-g"Codeblocks-mingw makefiles"It appears builing natively forWindows Desktop with Mingw GCC--Found opengl:opengl32--OpenGL include Dirs:cmake Error at D:/program files/cmake/share/cmake-3.6/modules/Findpackagehandlestandardargs.cmake:148(message): Could notFindGlew (Missing:glew_include_dir glew_library) Call Stack (most recent call first): D:/program files/cmake/share/cmake-3.6/modules/FINDPACKAGEHANDLESTANDARDARGS.C Make:388(_fphsa_failure_message) D:/program files/cmake/share/cmake-3.6/modules/findglew.cmake: -(Find_package_handle_standard_args) cocos2d/cmake/modules/cocosbuildhelpers.cmake: -(find_package) cocos2d/cmake/modules/buildmodules.cmake:7(cocos_find_package) cocos2d/cmakelists.txt:98(buildmodules)--Configuring incomplete, Errors occurred!See also"D:/cocos/projects/demo1/helloworldcpp/cmakefiles/cmakeoutput.log".

Windows Codeblocks Debug Cocos2d-x Project Experience (one failed experience)

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.