Library package for xml shcema design in CMake?
-
Hi,
What version of Linux are you running ?
-
ubuntu 16.04 LTS
-
Can you show your CMakefile and the exact error you are getting ?
-
error:unable to find the package " QT-xml-patterns"
-
error:unable to find the package " QT-xml-patterns"
Hi @SGaist
i have addes qtxmlpatterns5-dev-tools package,
but its showing no such library for XSD. -
fatal error: QXmlSchema: No such file or directory
compilation terminated. -
Again: please show your CMakefile.txt file.
From the error you are not use the correct package name. It's XmlPatterns.
-
hi @SGaist
find_package(Qt5XmlPatterns REQUIRED)
target_link_libraries(IntelMars Qt5::Gui Qt5::Core Qt5::Widgets Qt5::Xml Threads::Threads ${GLUT_LIBRARY} ${QTXMLPATTERNS})
i have added these two lines in CMakefile.txt file. -
i find Qt5XmlPatterns is the package for QXmlSchema, so i ahve included it inside the CMakwFile.txt
still while 'make'
its showing an error
fatal error: QXmlSchema: No such file or directory -
Again:
Please show the complete cmake file.