View topic - XML Schemas API on QNX6.5(IDE4.7)

Page 1 of 1

XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Fri Oct 23, 2015 3:24 am
by robby0524
I used XML Schemas API on QNX6.5(IDE4.7). but I have some error be below.
I had set -lxml2 on Other option of Linker. Anybody have a idea for me?

undefined reference to 'xmlSchemaCleanupType'
undefined reference to 'xmlSchemaFree'
undefined reference to 'xmlSchemaFreeParserCtxt'
undefined reference to 'xmlSchemaFreeValidCtxt'
undefined reference to 'xmlSchemaNewParserCtxt'
undefined reference to 'xmlSchemaNewValidCtxt'
undefined reference to 'xmlSchemaParse'
undefined reference to 'xmlSchemaSetParserStructuredErrors'
undefined reference to 'xmlSchemaValidateDoc'

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Fri Oct 23, 2015 5:11 pm
by Tim
If those function calls compile OK in your code it means you found the header files correctly.

In that case it would appear your link line is incorrect in some manner. Either xml2 isn't the right name for the library, your path to xml2 is incorrect or you need another library).

Tim

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Tue Oct 27, 2015 5:52 am
by robby0524
Thanks for your reply. Do you have a idea or information for the library? Because I don't know which library can cover those function. Where can I search the library list of QNX?

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Tue Oct 27, 2015 1:41 pm
by Tim
Those functions are supposed to be in libxml2.

If you run the 'strings' command (or an equivalent command under Windows if you don't have a QNX machine setup) on libxml2 you will be able to see if those functions are indeed in the libxml2 library.

If they are in the library, then it would suggest your linker line is wrong.

Tim

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Sun Nov 01, 2015 4:32 am
by robby0524
I can find the "xmlschemas.h" by the below link.
C:\QNX650\target\qnx6\usr\include\libxml
I can fine some functions in this file.But I don't how to enable the code.
#ifdef LIBXML_SCHEMAS_ENABLED

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Mon Nov 02, 2015 6:09 am
by robby0524
You can link the below and check the files.
https://www.dropbox.com/sh/nj0h97ij8fu5 ... A8Awa?dl=0

Re: XML Schemas API on QNX6.5(IDE4.7)

PostPosted: Tue Nov 03, 2015 2:57 pm
by Tim
Not sure what you want me to do with those 2 header files.

I would suggest that it's possible that the XML schema code was never in the library if you can't link it in your project. The only way to know for sure is to examine what's in the library itself (which I alluded to in my prior post using the 'strings' command).

If you absolutely must use XML schemas why don't you look at the open source POCO library (or one of the other open source C++ libraries). It compiles under QNX quite nicely and there are lots of places to get help using that library. We use it here for Websockets / JSON and it's very nice.

Tim