Skip navigation.
Home
The QNX Community Portal

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

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

Discussions, suggestions, requests about this website.

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

Postby robby0524 » Fri Oct 23, 2015 3:24 am

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'
robby0524
Active Member
 
Posts: 19
Joined: Tue Oct 21, 2014 5:26 am

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

Postby Tim » Fri Oct 23, 2015 5:11 pm

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
Tim
Senior Member
 
Posts: 1390
Joined: Wed Mar 10, 2004 12:28 am

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

Postby robby0524 » Tue Oct 27, 2015 5:52 am

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?
robby0524
Active Member
 
Posts: 19
Joined: Tue Oct 21, 2014 5:26 am

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

Postby Tim » Tue Oct 27, 2015 1:41 pm

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
Tim
Senior Member
 
Posts: 1390
Joined: Wed Mar 10, 2004 12:28 am

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

Postby robby0524 » Sun Nov 01, 2015 4:32 am

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
robby0524
Active Member
 
Posts: 19
Joined: Tue Oct 21, 2014 5:26 am

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

Postby robby0524 » Mon Nov 02, 2015 6:09 am

You can link the below and check the files.
https://www.dropbox.com/sh/nj0h97ij8fu5 ... A8Awa?dl=0
robby0524
Active Member
 
Posts: 19
Joined: Tue Oct 21, 2014 5:26 am

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

Postby Tim » Tue Nov 03, 2015 2:57 pm

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
Tim
Senior Member
 
Posts: 1390
Joined: Wed Mar 10, 2004 12:28 am


Return to OpenQNX Site

Who is online

Users browsing this forum: No registered users and 1 guest