due to my lack of experience with qt
cause when I run make with libgpg-error I get
It seems you have problem to build libvmime with MinGW - which has nothing to do with Qt, or even programming.

Search in your code for the declaration of EOPNOTSUPP and makes sure you have the definition for the code in the header containing it.