mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
Qt5 MingW: Missing zlib bindings, build fix for qextserialport
This commit is contained in:
parent
729e3d198a
commit
db0835cbee
@ -103,7 +103,7 @@ macx {
|
|||||||
win32 {
|
win32 {
|
||||||
SOURCES += qextserialport/win_qextserialport.cpp qextserialport/qextserialenumerator_win.cpp
|
SOURCES += qextserialport/win_qextserialport.cpp qextserialport/qextserialenumerator_win.cpp
|
||||||
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
|
DEFINES += WINVER=0x0501 # needed for mingw to pull in appropriate dbt business...probably a better way to do this
|
||||||
LIBS += -lsetupapi
|
LIBS += -lsetupapi -lz
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ void QextSerialEnumerator::setUpNotifications( )
|
|||||||
dbh.dbcc_size = sizeof(dbh);
|
dbh.dbcc_size = sizeof(dbh);
|
||||||
dbh.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
|
dbh.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
|
||||||
CopyMemory(&dbh.dbcc_classguid, &GUID_DEVCLASS_PORTS, sizeof(GUID));
|
CopyMemory(&dbh.dbcc_classguid, &GUID_DEVCLASS_PORTS, sizeof(GUID));
|
||||||
if( RegisterDeviceNotification( notificationWidget->winId( ), &dbh, DEVICE_NOTIFY_WINDOW_HANDLE ) == NULL)
|
if( RegisterDeviceNotification( (HANDLE)notificationWidget->winId( ), &dbh, DEVICE_NOTIFY_WINDOW_HANDLE ) == NULL)
|
||||||
qWarning() << "RegisterDeviceNotification failed:" << GetLastError();
|
qWarning() << "RegisterDeviceNotification failed:" << GetLastError();
|
||||||
// setting up notifications doesn't tell us about devices already connected
|
// setting up notifications doesn't tell us about devices already connected
|
||||||
// so get those manually
|
// so get those manually
|
||||||
|
Loading…
Reference in New Issue
Block a user