Install Cocos2d-x v3.3 on Ubuntu 14.04 & Ubuntu 14.10

Install Cocos2d-x v3.3 on Ubuntu 14.04 & Ubuntu 14.10


1 get the source code
sudo apt-get install git
git clone https://github.com/cocos2d/cocos2d-x.git

or you can download at  http://cn.cocos2d-x.org/download/

2 init environment
cd cocos2d-x/build
./install-deps-linux.sh
python ../download-deps.py



3 make code
cmake ..
make cpp-empty-test


4 Test run the sample
cd /bin/cpp-empty-test
./cpp-empty-tes




some problems when you make
(1) Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY)
Answer:
sudo apt-get install glew-utils libglew-dev
#####if it still show eor,"checking for module 'glfw3' --  package 'glfw3' not found
CMake Error at cmake/Modules/FindPackageHandleStandardArgs.cmake:136 (message):"
see the link:
http://stackoverflow.com/questions/17768008/how-to-build-install-glfw-3-and-use-it-in-a-linux-project


(2) Could not find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Answer:
sudo apt-get install libcurl4-openssl-dev
(3) if had not gcc,then run:
sudo apt-get install build-essential

相关文章

    本文实践自 RayWenderlich、Ali Hafizji 的文章《...
Cocos-code-ide使用入门学习地点:杭州滨江邮箱:appdevzw@1...
第一次開始用手游引擎挺激动!!!进入正题。下载资源1:从C...
    Cocos2d-x是一款强大的基于OpenGLES的跨平台游戏开发...
1.  来源 QuickV3sample项目中的2048样例游戏,以及最近《...
   Cocos2d-x3.x已经支持使用CMake来进行构建了,这里尝试...