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.

Enable bash auto completion in cygwin

Just like bash in native unix environment, cygwin’s bash also support auto completion but somehow cygwyn doesn’t come with bash package. In my case the auto completion was not enabled yet, so I need to enable.

Check if you have /etc/bash_completion, then add it to your /etc/bash.bashrc

add this line

. /etc/bash_completion

or you for your safety add conditional check beforehand

if [-f /etc/bash_completion]; then
. /etc/bash_completion
fi

restart you bash and try to use your magic tab key.

 

Great Terminal Emulator

My daily work before joining gameloft is mainly with linux environment and like another linux user I use terminal emulator frequently. However I must admit that there are big cons when we use terminal for daily activity, the main issue is our discover-ability of function. In GUI paradigm discover-ability is not a question, if we don’t know about a feature -we probably need- just take a look at App UI and we will find something. We hardly rely to experience and search engine to know a feature we need and we haven’t known.

That’s why I’m really thrilling with http://finalterm.org/ , it will help us to maximize our unix terminal’s powers.

Setup OpenCL menggunakan AMD APP di Linux

Akhir-akhir ini saya tertarik dengan OpenCL. Spesifikasi komputer yang digunakan menggunakan pocessor core2duo GPU nya GMA X4500.  Sebenarnya GPU maupun CPU ini didukung SDK OpenCL dari Intel, sayangnya untuk versi linux GPU nya tidak didukung. Tetapi ada satu masalah lagi, SDK dari Intel tidak memberi dukungan ke Ubuntu. Sebenarnya bisa saja di pasang di ubuntu, tetapi setelah oprek-oprek beberapa hari saya mulai capek juga. Akhirnya diputuskan untuk menggunakan SDK dari AMD.

SDK OpenCL dari AMD diberi judul AMD APP (Accelerated Parallel Processing), Biasanya muncul pertanyaan seperti ini :

CPU nya Intel, emang bisa pakai SDK nya AMD ?

Untuk SDK dari AMD selain mendukung processor AMD juga mendukung processor X86 yang memiliki extensi SSE2. Walaupun begitu tentunya performanya akan berbeda, karena optimasi spesifik yang dilakukan pasti ditargetkan ke Processor AMD.

Langsung ke bagaimana cara pasangnya :

  1. Download AMD APP SDK di sini. Linknya agak lemot
  2. Extract hasil downloadnya, kalau pake terminal bisa pakai comman tar => tar xfzv [nama berkas]
  3. Lalu jalankan skrip instalasinya => sudo sh Install-AMD-APP.sh
  4. reboot / logout-login komputer anda

Selesai deh