finally, the Windows build is successful
Thanks all of you for helping hands!
There were several problems, but the important ones were:
- There is a difference in CMake treatment between Qt4 and Qt5. Qt4 uses QT_QTXMLPATTERNS_INCLUDE_DIR + QT_QTXMLPATTERNS_LIBRARY, while Qt5 sets Qt5XmlPatterns_INCLUDE_DIRS and Qt5XmlPatterns_LIBRARIES.
- Windows DLLs require __declspec(dllexport) / __declspec(dllimport) depending on whether the DLL functions are exported resp. imported.This needs to be declared directly in the class definition.
Once again thanks and sorry for inconvenience,