c:\users\travis\build\freecad\freecad\src\mod\techdraw\app\qdomnodemodel.h(4): fatal error C1083: Cannot open include file: 'QAbstractXmlNodeModel': No such file or directory [C:\Users\travis\build\FreeCAD\FreeCAD\build\src\Mod\TechDraw\App\TechDraw.vcxproj]
Does anybody know how to tell if Qt XML Patterns is available in Travis Win builds?
wandererfan wrote: ↑Sat Jun 08, 2019 10:18 pm
el': No such file or directory [C:\Users\travis\build\FreeCAD\FreeCAD\build\src\Mod\TechDraw\App\TechDraw.vcxproj]
Does anybody know how to tell if Qt XML Patterns is available in Travis Win builds?
c:\users\travis\build\freecad\freecad\src\mod\techdraw\app\qdomnodemodel.h(4): fatal error C1083: Cannot open include file: 'QAbstractXmlNodeModel': No such file or directory [C:\Users\travis\build\FreeCAD\FreeCAD\build\src\Mod\TechDraw\App\TechDraw.vcxproj]
Does anybody know how to tell if Qt XML Patterns is available in Travis Win builds?
CMake does not need to re-run because C:/Users/travis/build/FreeCAD/FreeCAD/build/src/Mod/TechDraw/App/CMakeFiles/generate.stamp is up-to-date.
QDomNodeModel.cpp
c:\users\travis\build\freecad\freecad\src\mod\techdraw\app\qdomnodemodel.h(4): fatal error C1083: Cannot open include file: 'QAbstractXmlNodeModel': No such file or directory [C:\Users\travis\build\FreeCAD\FreeCAD\build\src\Mod\TechDraw\App\TechDraw.vcxproj]
sorry, I was without access to my computer during the weekend. @Abdullah Yes, I am quite sure the missing QAbstractXmlNodeModel header is the problem and as was pointed out, the QXmlPatterns library + all headers needed is present in the libpack. Maybe tomorrow I will be able to get my hands on a Windows machine with VS 2015 installed, so I will try the Windows build and hopefully find out what's going on.
Thanks to all of you for help and support, I am sorry for the inconvenience,
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.
sure no problem with squashing the commits - at least for these with CMake changes this is more than desirable. As for the custom templates, let me take a look on them, definitely the new Russian templates must be updated as well and have the xml:space="preserve" attribute removed from the <text> elements.
Kind regards,
Tomas
PS: Thanks for Your additional fixes!
Last edited by tpavlicek on Mon Jun 10, 2019 12:09 pm, edited 1 time in total.