liberty | 13 May 2011 15:57
Favicon

help for xml used in IDE

hi,
I wanna save my data in xml format.
I am using QNX Momentics IDE to develop the project.

I can find the header files such as <libxml/parser.h> and link to  -lxml2.
My code is simply downloaded from the webside:

/* * section: Tree * synopsis: Creates a tree * purpose: Shows how to create document, nodes and dump it to stdout or file. */ #include <stdio.h> #include <libxml/parser.h> #include <libxml/tree.h> #if defined(LIBXML_TREE_ENABLED) && defined(LIBXML_OUTPUT_ENABLED) /* *To compile this file using gcc you can type *gcc `xml2-config --cflags --libs` -o tree2 tree2.c */ /* A simple example how to create DOM. Libxml2 automagically * allocates the necessary amount of memory to it. */ int main(int argc, char **argv) { xmlDocPtr doc = NULL; /* document pointer */ xmlNodePtr root_node = NULL, node = NULL, node1 = NULL;/* node pointers */ xmlDtdPtr dtd = NULL; /* DTD pointer */ char buff[256]; int i, j; LIBXML_TEST_VERSION; ......

xmlMemoryDump(); return(0); } #else int main(void) { fprintf(stderr, "tree support not compiled in\n"); exit(1); } #endif
And complier is ok but when launched only last main executed which is not I need.
It bother me for a week.
1) how can I implement the `xml2-config --cflags --libs`

2} How need I do to reach my purpose?

Thank you very much for your reply!!








------------------
Best regards.
 
 
Your sincerely,
Lee Po  <at> Automation Dept.,SJTUy
 
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
ws | 16 Jan 2011 14:09
Favicon

dose anyone share your qnx bsp for s3c2410

Thanks!


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Princy K. V. | 18 Aug 2009 08:13
Favicon

Query on hmi player

Hi,

 Is it possible to load movie on swf application from a callback method

 which is invoked by a native c application? I could load a movie using

  loadMovie(xx.swf , this) function outside callback method but not via invoking callback method.Please reply ur suggestions.

 

Thanks,

Princy  

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.

The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Princy K. V. | 7 Aug 2009 09:31
Favicon

About HMI Player

Hi ,

   My SWF Application communicate to the native c application via Extension DLL.  At start up , I want to read the  configuration settings from the flash configuration file. I could read the same by using  built in action script class Info.as.

ie  var width = Info.get('display','width');.

But I want to read it directly from extension DLL, not from actionscript. Is it possible to read configuration settings from extension DLL? Please help.

 

Regards,

Princy

 

 

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.

The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
liqiang_SIA | 13 Feb 2009 15:17
Picon

multi serial port communication

hi, 
I am using Qnx4.25 on SCM 7026(a motherboard produced by shengbo in China). The motherboard can provide 6
serial port. Port 1,2 are original and the port 3-6 are extended port. 

I have found the extended port(3-6) use the shared interrupt number 11 
So I write the following sentenses to start the extended port in file--/etc/config/sysinit.1 

/bin/Dev.ser -N/dev/ser3 D000,11 & 
/bin/Dev.ser -N/dev/ser4 D008,11 & 
/bin/Dev.ser -N/dev/ser5 D010,11 & 
/bin/Dev.ser -N/dev/ser6 D018,11 & 

but the system is crashed. 

when I load one port, such as only one sentence 
/bin/Dev.ser -N/dev/ser3 D000,11 & 
the serial port 3 can work well. 

who can tell me why? thanks...

Qiang Li 			
--------------
2009-02-13

Underwater Robot Research Center
ShenYang Insitute of Automation, Chinese Academy of Sciences
114# Nanta Street, ShenYang, P.R.China
Postcode:110016
Tel:86-024-23970211
EMail:liqiang@... ; liqiang_hn_cn@...

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
zied frikha | 23 May 2008 10:32
Picon

USB Radio

Hello
I would running the USB radio with the QNX work space, have you any ideas to do this.
thanks.

Link of the USB radio :
www.silabs.com/usbradio

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
bhanu rao | 12 Mar 2008 07:42
Picon

Porting GMP-4.2.2 on QNX6.3.0....didn't work

Trying to configure GMP-4.2.2 for QNX6.3.0 for MPC5000b (powerpc603e) on a windows XP cross compiler. try to configure using

./configure --build=pentium4-pc-nto-qnx6 --host=ppcbe-powerpc-nto-qnx6
make

was able to build the libgmp.a, but when i include in my qnx workspace it give me linking error,two cases might be there:
1. Library is not configured for QNX6.3.0 on MPC5000b (powerpc603e board).
2. May be i am missing somewhera in providing it proper path.

please let me known the correct configure options and linking options.
does it needs some changes in configure file?

attach is the config.log file

thanks ,
bhanu 

Attachment (config.log): application/octet-stream, 243 KiB
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Pusik Park | 19 Feb 2008 08:59
Picon

SIGBUS error in the kernel's function; pa_quantum_to_paddr

Dear Everyone.

 

Im trying to port QNX into my own SoC platform.

My own SoC platform is based ARM926EJ-S 32-bit RISC Core which operates 141MHz and has 32MB SDRAM(base: 0x10000000) and 1MB NOR Flash.

The tool is QNX Momentics 6.3.2 non-commercial version.

I was modifying IPL, startup, and serial device driver of the legacy Samsung S3C2410 BSP which had developed by RT Solution ago.

 

I met the shutdown message with SIGBUS.

 

--------------------------------------------------------------------------------------------

Shutdown[0,0] S/C/F=10/1/5 C/D=fe006950/% state(c0)= now lock

QNX Version 6.3.2 Release 2006/03/16-14:15:43EST

[0]PID-TID=1-1? P/T FL=00019001/09000000

armle context[fc43ff50]:

0000: fc404000 00000011 fe057060 fc404400 fc441140 fc441140 e3c0301f fc439630

0020: 00000000 00000000 00000011 fc43ffa4 fc408000 fc43ff94 fe02dfe0 fc404624

0040: 600000d3

instruction[fc404624]:

d4 70 96 e5 40 70 c7 e3 d4 70 86 e5 01 20 a0 e3 12 24 a0 e1 08 20 8c e5 00 00

stack[fc43ff94]:

0000: fc43b6a8 fc43ffd8 fc43ffa8 fe02dc68 fe02df64 00000000 fe02b384 00000011

0020: fe05716c 00000001 fc439630 00000000 00000000 00000000 fc43ffec fc43ffdc

0040: fe02bbcc fe02daf0 fc439630 fc43fffc fc43fff0 fe03e468 fe02bb7c fc440f6c

0060: fc440000 fe0293e0 fe03e450 f7ffffff bdfffffe ffffdfff ffbfefdf fffbffff

 

S/C/F => SIGBUS/BUS_ADRALN/FLTACCESS

C/D => Location of the kernel's code and data

state     => The state of the kernel

           now                -- in the kernel

           lock      -- nonpreemptible

           exit      -- leaving kernel

           specret  -- special return processing

           any number       -- the interrupt nesting level

[x]PID-TID=y-z

           On CPU x(think SMP), process y was running thread z when the crash occurred

P/T:00019001 => 00010000 +       => _NTO_PF_NOCLDSTOP

                     00000001 +       => _NTO_PF_SLEADER

                     00008000 +       => _NTO_PF_RING0

                     00001000          => _NTO_PF_CHECK_INTR

FL:09000000=>   08000000 +       => _NTO_TF_NOMULTISIG

                      01000000          => _NTO_TF_ALIGN_FAULT

PF        => The process flags for the ASPACE PID

context  => The register set

instruction        => fc404624      The instruction on which the error occurred

stack                                     The contents of the stack

-----------------------------------------------------------------------------------------------------------------

 

Thus, I debugged my BSP by TRACE32 ARM In-Circuit Debugger.

 

Attached 2-1.PNG image file is my debugging information.

In pa_quantum_to_paddr, during ldr r3,[r3,+r1, lsl #0x2] execution at the address 0xFE01CB08,

when r1 was 0x2, operation was good but when r1 was 0xFFDF, exception happened.

Because r3 had abnormal address at that time, memory access violation happened.

 

Pa_quantum_to_paddr is the function of the kernel and thus I have problems to debug it.

 

What source code out of the startup source code or serial device driver source code causes this problem ?

 

After meeting shutdown message, I saw where PC is located.

You can look at this at the attached file trace32.0219.PNG.

In addition, You can see QNXs procnto is loaded and running.

 

Best regards.

 

Pusik.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Pusik Park | 18 Feb 2008 09:48
Picon

What is the meaning of _NTO_INTR_SPARE at the startup_intrinfo ?

Hello.

 

My 32-bit ARM9 RISC SoC has just 1 interrupt controller with 29 interrupt sources.

If I understood the cascaded vector’s meaning well, I doesn’t need cascaded vectors.

 

Is it right ?

 

const static struct startup_intrinfo intrs[] = {

           {          _NTO_INTR_CLASS_EXTERNAL,                 // vector base

                     32,                                                  // number of vectors

                     _NTO_INTR_SPARE,                              // cascade vector

                     0,                                                   // CPU vector base

                     0,                                                   // CPU vector stride

                     0,                                                   // flags

                     { INTR_GENFLAG_LOAD_SYSPAGE,  0, &interrupt_id_jaguar2  },

                     { INTR_GENFLAG_LOAD_SYSPAGE | INTR_GENFLAG_LOAD_INTRMASK, 0, &interrupt_eoi_jaguar2 },

                     &interrupt_mask_jaguar2,           // mask   callout

                     &interrupt_unmask_jaguar2,        // unmask callout

                     0,                                         // config callout

           }

 

The upper source code is my startup_intrinfo but I think its source code has the problem.

I think that there is some proper value for a cascade vector instead of _NTO_INTR_SPACE. 

Actually, I didn’t understand the meaning of the cascade vector.

 

Please help me.

 

Best regards.

 

Pusik.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Pusik Park | 18 Feb 2008 09:13
Picon

QNX debugging by TRACE32 - Can't look at all symbols of procnto-instr.

Dear Everyone.

 

Im debugging my BSP by TRACE32.

 

I built bsp-xxxxx.ifs and procnto-instr.sym.

I loaded bsp-xxxxx.ifs by TRACE32s Data.Load.Binary command at the SDRAM memory region (0x10800000), which I set up as the System Build/Property/General/System/Image Address.

 

At TRACE32,

I performed like the below

Data.LOAD.Binary C:\QNX632\ide4-workspace\bsp-jaguar\Images\bsp-jaguar.ifs A:0x10800000 //verify

if data.long(&DNLD_ADDR)!=0x00ff7eeb

 (

             print "Wrong QNX image magic!"

            stop

          )

Register.Set PC data.long(&DNLD_ADDR+0x0c)   ; startuphdr.startup_vaddr

Data.Load.Elf C:\QNX632\ide4-workspace\bsp-jaguar\Images\startup-jaguar2eval.sym /nocode

Data.Load.Elf C:\QNX632\ide4-workspace\bsp-jaguar\Images\procnto-instr.sym /nocode /noclear

 

I go my QNX and stop at any point.

 

I could check the startup-xxxxx2evals symbols by TRACE32s symbol.browser.

I could look at Symbols, Variables, Functions, and Modules by symbol.browser.

However, I could NOT look at the procnto-instrs all symbols.  

I could see Global symbols and Global variables(os_version_string and timestamp), but could NOT see any Global Functions.

 

How can I obtain the procnto or procnto-instr with whole Function symbols ?

 

My BSP went to __hardcrash.

I looked at the below data at the window of TRACE32s Var.Frame.

           SR:0xFFFF:0xFC4046D8(asm)

           scrn_display(asm)

           kprintf(asm)

           shutdown(asm)

           kdebug_enter(asm)

           arm_undef(asm)

           __und_entry(asm)

--->   exception

           SR:0xFFFF:0xFC404174(asm)

This looks like the call stack.

 

Whats the problem ?

Please give a comment.

 

 

Additionally, I also set up the parameters below examples.

General/

           Create Image?               Yes

           Remove File Time Stamps No

           Image Name                 bsp-xxxxx

           CPU Type                     armlet

           Page Align Image          No

           Image Mount Point        N/A

           Default Target Location   /proc/boot

           Compressed                 No compression

           Boot script                  bsp-xxxxx.bsh

Directories

           Default permissions        777

           Default User ID             0

           Default Group ID           0

System

           Auto Link Shared Libs     Yes

           Create startup sym file    Yes

           Create proc sym file        Yes

           Procnto                      procnto-instr

           Procnto Arguments        -vvv

           Procnto $PATH              :/proc/boot:/bin:/usr/bin

           Procnto $LD_LIBRARY_PATH         :/proc/boot:/lib:/usr/lib

           Use APS                      No

           Startup                       WORKSPACE/bsp-xxxxx_startup-xxxxx2eval/xxxxx2eval/arm/le/startup-xxxxx2eval

           Startup Arguments        -vvv

           Boot File                     binary

           Image Address              0x10800000

           RAM Address               Default

Combine           N/A

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
openqnx-developer mailing list
openqnx-developer@...
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
Uwe Wannags | 8 Jan 2008 09:43
Picon
Favicon

openqnx-developer mailing list submission


-- 
to: from:  Uwe Wannags, Hard-+Software Distribution e.K. Germany
re: 
-------------------------------------------------------

Fuer weitere Fragen stehe ich gerne zur Verfuegung.
For further questions feel free to contact.

Mit freundlichen Gruessen / with best regards
Uwe Wannags
_______________________________________________
Uwe Wannags,    Hard- + Software Distribution e.K.
HR A 4338 PI Amtsgericht Pinneberg, DE13446288
Raiffeisenstrasse 4         mailto:uwannags@...
25451 Quickborn, Germany         http://www.swd.de
Tel.: +49(0)4106-6109-0   Fax: +49(0)4106-6109-40

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Gmane