On the development of a solitary wave moving over an uneven bottom