Compiling Cocos2DX in Ubuntu Linux

Cocos2DX is one of most popular game engine in the world and it supports almost all popular platform available. Here is how we can compile cocos on Ubuntu Linux.

  1. Compiling Cocos2DX in ubuntu linux
    Download cocos from http://cocos2d-x.org
  2. Prepare dependencies :
    libx11-dev
    libxmu-dev
    libglu1-mesa-dev
    libgl2ps-dev
    libxi-dev
    g++-4.9
    libzip-dev
    libpng12-dev
    libcurl4-gnutls-dev
    libfontconfig1-dev
    libsqlite3-dev
    libglew-dev
    libssl-dev
    glfw3

    Go to /build directory inside cocos package
    run :

    sudo ./install-deps-linux.sh
  3. Create makefile
    mkdir lxbuild
    cd lxbuild
    cmake ../
  4. compile
    make

Now you can check lxbuild directory for some compiled library.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s