Reputation: 85
I am using qt 5.5.1 on mac os x and would like to develop an application for windows. So far so good. I have installed the cross compiler M cross environment (MXE) to generate .exe files. The compiler seems to work but I have the problem that mxe does not know the Qt library serialport. Because of using qt5.5 I no longer need to build Qt Serial Port manually. Qt Serial Port is officially part of Qt AFAIK. If I run the Qt Makefile generator tool with command:
<mxe root>/usr/bin/i686-w64-mingw32.static-qmake-qt5
I get the following error message:
Unknown module(s) in QT: serialport
In my applications *.pro file I added the following line:
QT += serialport
Can anyone help me at this point. I think I have to link the serialport lib with mxe. But do not know how to solve this.
Thanks!
Upvotes: 0
Views: 639
Reputation: 204
When building the qt packages of mxe, you should also build the qtserialport package. For Linux, refer to these instructions. Instead of
cd mxe && make qtbase
Do this:
cd mxe && make qtbase qtserialport
Upvotes: 0