FPGA : How to build and install QFSM on Ubuntu

QFSM tool is a graphical tool for designing finite state machines. It's simple and very useful to design integrated circuits or to create regular expressions, scanners,etc. Now I will introduce how to use it on Ubuntu.