From varun85gupta at gmail.com Thu Oct 25 02:59:17 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Thu Oct 25 02:55:42 2012 Subject: [xsde-users] Build for ARM Platform Message-ID: Hi, I am working on an ARM platform and need to test Code-Synthesis on the > platform. Would it be possible to build a binary for the ARM-CC platform? -- Regards, Varun Gupta From Eric.Broadbent at csr.com Thu Oct 25 03:37:52 2012 From: Eric.Broadbent at csr.com (Eric Broadbent) Date: Thu Oct 25 03:34:28 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: <3738E291-CC5D-4C66-8FA6-7339DE511099@csr.com> I have done this using the CodeSourcery tool-chain - works fine http://processors.wiki.ti.com/index.php/Installing_CodeSourcery_Toolchain On Oct 25, 2012, at 2:59 AM, Varun Gupta wrote: > Hi, > > I am working on an ARM platform and need to test Code-Synthesis on the >> platform. Would it be possible to build a binary for the ARM-CC platform? > > > -- > Regards, > Varun Gupta > > > To report this email as spam click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== . Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog From boris at codesynthesis.com Thu Oct 25 05:17:36 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Oct 25 04:47:29 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Varun, Varun Gupta writes: > I am working on an ARM platform and need to test Code-Synthesis on the > platform. Would it be possible to build a binary for the ARM-CC platform? To add to what Eric has suggested: Normally, a mobile/embedded application for ARM is not built directly on the target platform (there could be exceptions but that's the general rule). Rather, it is cross-compiled on a general-purpose computer (often called development machine), such as Linux or Windows. So to use XSD/e with this setup, you will need to download the XSD/e package for that general-purpose OS that you are using on your development machine. This package will include the XSD/e compiler binary that you can run on this development machine. It also contains source code for the XSD/e runtime library (libxsde) that you will need to compile with your C++ cross-compiler for the ARM target. For more information on how to do this see the INSTALL file in the XSD/e package. Boris From varun85gupta at gmail.com Thu Oct 25 05:51:40 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Thu Oct 25 05:48:04 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Boris, Do i need to build the dependency packages as well for libxsde? Regards, Varun On Thu, Oct 25, 2012 at 2:47 PM, Boris Kolpackov wrote: > Hi Varun, > > Varun Gupta writes: > > > I am working on an ARM platform and need to test Code-Synthesis on the > > platform. Would it be possible to build a binary for the ARM-CC platform? > > To add to what Eric has suggested: > > Normally, a mobile/embedded application for ARM is not built directly > on the target platform (there could be exceptions but that's the general > rule). Rather, it is cross-compiled on a general-purpose computer (often > called development machine), such as Linux or Windows. > > So to use XSD/e with this setup, you will need to download the XSD/e > package for that general-purpose OS that you are using on your > development machine. This package will include the XSD/e compiler > binary that you can run on this development machine. It also > contains source code for the XSD/e runtime library (libxsde) that > you will need to compile with your C++ cross-compiler for the ARM > target. For more information on how to do this see the INSTALL file > in the XSD/e package. > > Boris > -- Regards, Varun Gupta From varun85gupta at gmail.com Thu Oct 25 07:01:05 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Thu Oct 25 06:57:27 2012 Subject: [xsde-users] ARM build of XSD/e Message-ID: Hi, If anyone could provide me ARM build for XSD/e it would be very helpful. -- Regards, Varun Gupta From boris at codesynthesis.com Thu Oct 25 08:25:29 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Oct 25 07:55:24 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Varun, Varun Gupta writes: > Do i need to build the dependency packages as well for libxsde? No, libxsde does not have any external dependencies. So, all you need to do is download one of the xsde-3.2.0-- packages and build libxsde. Boris From varun85gupta at gmail.com Thu Oct 25 08:18:12 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Thu Oct 25 09:16:19 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Boris, I tried building xsde-3.2.0 and it required libxsd-frontend package to be built first. So i tried compiling the same and encountered following errors: ------------------------------------------------------------------ configuring 'libxsd-frontend' Please select the C++ compiler you would like to use: (1) GNU C++ (g++) (2) Intel C++ (icc) (3) Other C++ compiler [1]: 3 Please enter any extra C++ preprocessor options. []: Please enter any extra C++ compiler options. []: Please enter any extra C++ linker options. []: -T /home/labadmin/CodeSourcery/Sourcery_G++_Lite/arm-none-eabi/lib/armulator-ram-hosted.ld Please enter any extra C++ libraries. []: configuring 'libxsd-frontend' Please select the default library type: (1) archive (2) shared object [2]: 2 Configuring external dependency on 'libfrontend-elements' for 'libxsd-frontend'. Would you like to configure dependency on the installed version of 'libfrontend-elements' as opposed to the development build? [y]: n Please enter the src_root for 'libfrontend-elements'. []: /home/labadmin/XSDE/libfrontend-elements-1.1.4 Please enter the out_root for 'libfrontend-elements'. [/home/labadmin/XSDE/libfrontend-elements-1.1.4]: Configuring external dependency on 'libcult' for 'libxsd-frontend'. Would you like to configure dependency on the installed version of 'libcult' as opposed to the development build? [y]: n Please enter the src_root for 'libcult'. []: /home/labadmin/XSDE/libcult-1.4.6 Please enter the out_root for 'libcult'. [/home/labadmin/XSDE/libcult-1.4.6]: Configuring external dependency on 'libxerces-c' for 'libxsd-frontend'. Would you like to configure dependency on the installed version of 'libxerces-c' as opposed to the development build? [y]: Configuring external dependency on 'boost libraries' for 'libxsd-frontend'. Would you like to configure dependency on the installed version of 'boost libraries' as opposed to the development build? [y]: n Please enter the 'boost' root directory. []: /home/labadmin/XSDE/boost_1_51_0 Please select the library type you would like to use: (1) archive (2) shared object [2]: 2 configuring 'libxsd-frontend' Please enter the C++ compiler executable you would like to use. []: /home/labadmin/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-g++ configuring 'libxsd-frontend' Please enter C++ compiler option(s) used to build position- independent code (e.g., -fPIC, -Kpic, etc). []: -fPIC Please enter C++ compiler option(s) used to build shared libraries (e.g., -shared, -G, etc). []: c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/any.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/any-attribute.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/attribute.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/attribute-group.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/complex.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/compositors.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/element.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/element-group.cxx c++ /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/elements.cxx /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/elements.cxx: In function 'std::wostream& operator<<(std::wostream&, const XSDFrontend::SemanticGraph::Path&)': /home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/elements.cxx:310:21: error: 'const class XSDFrontend::SemanticGraph::Path' has no member named 'native_file_string' make: *** [/home/labadmin/XSDE/libxsd-frontend-1.9.1/xsd-frontend/semantic-graph/elements.o] Error 1 --------------------------------------------------------------------------- Does anyone have any idea what might be going wrong ? On Thu, Oct 25, 2012 at 5:55 PM, Boris Kolpackov wrote: > Hi Varun, > > Varun Gupta writes: > > > Do i need to build the dependency packages as well for libxsde? > > No, libxsde does not have any external dependencies. So, all you need > to do is download one of the xsde-3.2.0-- packages and > build libxsde. > > Boris > -- Regards, Varun Gupta From boris at codesynthesis.com Thu Oct 25 09:49:10 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Oct 25 09:18:59 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Varun, Varun Gupta writes: > I tried building xsde-3.2.0 and it required libxsd-frontend package to be > built first. You do not need to build the XSD/e compiler from source (which is what you are trying to do). Just go and download a pre-built binary (for 32-bit Linux it is called xsde-3.2.0-i686-linux-gnu.tar.bz2). After that, all you need to do is build libxsde with your cross-compiler. Boris From varun85gupta at gmail.com Fri Oct 26 06:07:45 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Fri Oct 26 08:20:24 2012 Subject: [xsde-users] Build for ARM Platform In-Reply-To: References: Message-ID: Hi Boris, Thanks for the help. I was able to build xsde successfully for ARM platform using the method you suggested. Regards, Varun On Thu, Oct 25, 2012 at 7:19 PM, Boris Kolpackov wrote: > Hi Varun, > > Varun Gupta writes: > > > I tried building xsde-3.2.0 and it required libxsd-frontend package to be > > built first. > > You do not need to build the XSD/e compiler from source (which is what > you are trying to do). Just go and download a pre-built binary (for > 32-bit Linux it is called xsde-3.2.0-i686-linux-gnu.tar.bz2). After > that, all you need to do is build libxsde with your cross-compiler. > > Boris > -- Regards, Varun Gupta From varun85gupta at gmail.com Fri Oct 26 07:43:27 2012 From: varun85gupta at gmail.com (Varun Gupta) Date: Fri Oct 26 08:20:24 2012 Subject: [xsde-users] Generate WSDL parser using XSDe Message-ID: Hi, Does XSDe provides a way to generate WSDL parsers like gSOAP libraries do ? e.g. If I provide a wsdl file(test.wsdl) based conforming to an XSD(test.xsd), I can generate stub code for that WSDL using following tools : wsdl2h -c -s -g -o test.h test.wsdl test.xsd soapcpp2 -S -L -c -s -t -y test.h After this i get these generated files as stub code : soapC.c, soapH.h, soapServer.c, soapStub.h and ANDSFServiceSOAP.nsmap which provide the serialization/deserialization code for the WSDL services. -- Regards, Varun Gupta From boris at codesynthesis.com Fri Oct 26 09:05:58 2012 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Oct 26 08:35:31 2012 Subject: [xsde-users] Generate WSDL parser using XSDe In-Reply-To: References: Message-ID: Hi Varun, Varun Gupta writes: > Does XSDe provides a way to generate WSDL parsers like gSOAP > libraries do ? No. You can use XSD/e to handle SOAP payload (described in XML Schema). But you will have to handle the SOAP envelope yourself (there is actually a schema that defines the SOAP envelope so you could use XSD/e to help with that as well). Boris