微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/cocos2dx/345145.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐