Qt 4.8.5 QSerialPort Wince6 arm



  • Hi everybody,

    i'm trying to use QSerialPort on a wince6 project.
    I'm using Qt 4.8.5

    I downloaded QSerialPort and compiled it (qmake,nmake and nmake install) but when i try to compile the sample project that use QSerialPort it gives me :

    @Error 1 error LNK2019: external symbol reference "__declspec(dllimport) public: virtual __cdecl QSerialPort::~QSerialPort(void)" (_imp??1QSerialPort@@UAA@XZ) unresolved in function __unwind$26661 main.obj

    Error 2 error LNK2019: external symbol reference "__declspec(dllimport) public: virtual void __cdecl QSerialPort::close(void)" (_imp?close@QSerialPort@@UAAXXZ) unresolved in functio __unwind$26661 main.obj @

    and so on

    How can i solve this problem?

    Thanks



  • Maybe i found the solution:

    adding Qt\4.8.5\lib\QtSerialPortd.lib to the visualstudio Linker dependencies.

    I will make a try.

    Anothe question is..why i have only QtSerialPortd.dll? It is not the debug dll?



  • Hi.

    QtSerialPort wasn't tested in a proper way on WinCE. WinCE has an lowest priority for us, because we have not a appropriate hardware and so on.

    bq. I downloaded QSerialPort and compiled it (qmake,nmake and nmake install) but when i try to compile the sample project that use QSerialPort it gives me :

    After that it is necessary to include QtSerialPort module in your project file:
    [code]
    CONFIG += serialport
    [/code]

    bq. Anothe question is..why i have only QtSerialPortd.dll? It is not the debug dll?

    It is an Debug dll. To build the Release need do:
    [code]
    qmake path/to/qtserialport.pro GONFIG+=release
    nmake
    [/code]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.