I am trying to use a xmlpatterns-private
. I could get the headers by adding qt += xmlpatterns-private
. But when I compile it gives the error:
undefined reference to `QPatternist::XsdSchemaResolver::~XsdSchemaResolver()'
So it supposes means that header was found but the lib didn't install my Qt environment. How to install or adding such a private module into Qt instead of compiling the whole Qt source? I'm guessing that I shall pull the xmlpatterns
source and compile it, put it into some folder... In other words how to perform the installation of the private module.
What I tried:
- Download Qt 5.13 source code
- Open
qtxmlpatterns.pro
in QtCreator - Add
CONFIG+=xml-schema
inqtxmlpatterns.pro
- Build
- Go to build folder and run
mingw32-make install
- Rebuild my project, but gives the same error...
Update:
the function cannot be found is because Qt didn't export it using Q_XMLPATTERNS_EXPORT
.
So I import the whole xmlpatterns
source into my project instead of qt += xmlpatterns-private
. the cpp already part of the project why the function still cannot be found.
error: undefined reference to `_imp___ZN12QXmlNamePoolC1Ev'
The whole project: https://drive.google.com/drive/folders/1B2YEz1iUHdbZ-F3ukBRpjZ9eP012Jkez?usp=sharing