You should not need to modify the mkspec. Passing -static to configure is enough. It will be inherited to your applications makefile as well. The error messages look like there is no QtNetwork.a. Do you have one?