We propose a scheme for generating the Schrödinger cat state based on geometric operations by a nanomechanical resonator coupled to a superconducting charge qubit. The charge qubit, driven by two strong classical fields, interacts with a high-frequency phonon mode of the nanomechanical resonator. During the operation, the charge qubit undergoes no real transitions, while the phonon mode of the nanomechanical resonator is displaced along different paths in the phase space, dependent on the states of the charge qubit. This generates the entangled cat state between the NAMR and charge qubit, and the cat state for the superposition of NAMR can be achieved after some operations applied on this entangled cat state. The robustness of the scheme is justified by considering noise from environment, and the feasibility of the scheme is discussed.