It may be that wx-config is not on your PATH.
Use "whereis wx-config" to show its location.
use "echo $PATH" to display the contents of PATH.
If the location of wx-config is not in the PATH then add it to PATH.
PATH=$PATH:/path/to/wx-config;export PATH
Then build from this point.

To make it permenant edit /ect/profile and add the path to wx-config to the enviromental PATH variable.