The sine-cosine method and the extended tanh method are used to construct exact solitary patterns solution and compactons solutions of the generalized (2+1)-dimensional Boussinesq equation. The compactons solutions and solitary patterns solutions of the generalized (2+1)-dimensional Boussinesq equation are successfully obtained. These solutions may be important and of significance for the explanation of some practical physical problems. It is shown that the sine-cosine and the extended tanh methods provide a powerful mathematical tool for solving great many nonlinear partial differential equations in mathematical physics.