[xsd-users] Cross compile c++ classes to use in openwrt

Wesley Peters AASKI wpeters at aaski.com
Wed May 6 17:13:37 EDT 2015


The ‘ldd’ tool on your openwrt target will tell you if you have any unmet shared library dependencies.  Normally this wouldn’t cause a crash, but rather refuse to start.

Wes Peters
AASKI Technology, Inc.
www.AASKI.com
wpeters at aaski.com

On May 6, 2015, at 11:05 AM, Micael Santos <msantos at isaenergy.pt> wrote:

> Hi,
> 
> Thanks for the tip Boris.
> I tried to disable the xsd validation and it worked a bit better. Now I can see the xml tag contents :).
> Need to fiddle a bit more with xsd file location to make it work with the validation enabled but I think I will manage eventually.
> What worries me is that I still get a segmentation fault, that doesn't happen when I run the code in my pc.
> I checked the code for any sort of weirdness like buffer overruns but didn't find any. The code is exactly the same as in the "codesynthesis hello world" so I don't think it's a code problem but most likely some dependency missing... But in this case shouldn't my code fail to compile?
> Anyone had any similar experience? Isn't libxerces-c the only library needed after compilation? I ran out of ideias and don't know what else to try so any suggestion is welcome :)
> 
> -----Mensagem original-----
> De: Boris Kolpackov [mailto:boris at codesynthesis.com] 
> Enviada: 6 de maio de 2015 18:48
> Para: Micael Santos
> Cc: xsd-users at codesynthesis.com
> Assunto: Re: [xsd-users] Cross compile c++ classes to use in openwrt
> 
> Hi Micael,
> 
> Micael Santos <msantos at isaenergy.pt> writes:
> 
>> The only thing I had to "cheat" was copying the folder "/usr/include/xsd"
>> to my cross compiler includes folder. I think probably the copying of 
>> the header was not the way to go  but since it compiled afterwards I 
>> assumed it was ok.
> 
> Yes, that shouldn't be a problem since those are compiler/platform- independent headers.
> 
> 
>> The problem is that I can't make the program run, getting the 
>> following output.
>> 
>> /tmp/hello.xml:1:29 error: no declaration found for element 'hello'
>> /tmp/hello.xml:1:39 error: no declaration found for element 'greeting'
>> /tmp/hello.xml:1:61 error: no declaration found for element 'name'
>> /tmp/hello.xml:1:77 error: no declaration found for element 'name'
>> /tmp/hello.xml:1:94 error: no declaration found for element 'name'
> 
> This is XML Schema validation errors and the cause is most likely the .xsd file not being found. See:
> 
> http://wiki.codesynthesis.com/Tree/FAQ#Why_do_I_get_.22error:_no_declaration_found_for_element_.27root-element.27.22_when_I_try_to_parse_a_valid_XML_document.3F
> 
> Boris
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2115 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20150506/a95b675d/smime.bin


More information about the xsd-users mailing list