You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by diya das <di...@yahoo.com> on 2010/08/20 21:07:43 UTC
ARM-Linux port
Hi All,
Have someone been able to successfully build Xerces libraries using the gcc
cross-compiler tool chain for running on an ARM-Linux target .
Any info on this is highly appreciated.
Thanks.
Re: ARM-Linux port
Posted by diya das <di...@yahoo.com>.
Thanks Boris for the support. It is working. There were two g++ executables in
the cross compiler tool chain and I was using the wrong one.
When I changed the configure command line to the right one it worked.
Thanks.
Diya
----- Original Message ----
From: Boris Kolpackov <bo...@codesynthesis.com>
To: c-users@xerces.apache.org
Sent: Tue, August 24, 2010 4:30:43 PM
Subject: Re: ARM-Linux port
Hi Diya,
diya das <di...@yahoo.com> writes:
> I have the same error that I mentioned previously even with the
> --host option. Earlier I only had the CXX and CC paths in the
> Configure command line.
Then it must be a problem with your cross-compiler. The cross-
compilation support in Xerces-C++ is definitely working; I
cross-compiled it myself on multiple occasions.
What you can try to do is check the config.log file for the
source code of the test that configure is trying to compile
as well as the compiler command line that it is executing
and see why it doesn't work.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: Xerces error in loading transcoding service
Posted by brijesh singh <ge...@gmail.com>.
Hi Diya,
If you are facing the same issue as mentioned at the link , let me tell you
that ICU is not part of the xercesc.3.1.1 source.
So please download ICU sources separately and build the ICU related libs. it
will be good if you create static libs of it.
Then while building the Xerces with ICU you will have to show the path of
ICU libs and I feel while running the configure/runConfigure script you will
have to provide the appropriate option and I feel path of ICU as well. If
you have a look at the makefile which got generated please check if the icu
libs are being linked.
Hope this gives you a good idea about it.
Thanks and Regards
-Brijesh
On Thu, Aug 26, 2010 at 8:09 PM, diya das <di...@yahoo.com> wrote:
> Hi All,
>
> I encountered the same issue as
>
> http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-td25468057.html
>
> My target ARM-Linux board doesn not have gconv however I have
> cross-compiled
> Xerces for arm without ICU.
>
> Has anyone successfully cross-compiled ICU for the purpose of building
> Xerces
> with ICU to avoid dependency to native encoder.
> I am running into issues with ICU. I should probably be asking this
> question in
> the ICU mailing list.
>
>
> Boris mentioned in reply to the thread that he could build it though it is
> not
> easy Could you please give some pointers ?
>
> Thanks
>
>
>
> ----- Original Message ----
> From: Boris Kolpackov <bo...@codesynthesis.com>
> To: c-users@xerces.apache.org
> Sent: Tue, August 24, 2010 4:30:43 PM
> Subject: Re: ARM-Linux port
>
> Hi Diya,
>
> diya das <di...@yahoo.com> writes:
>
> > I have the same error that I mentioned previously even with the
> > --host option. Earlier I only had the CXX and CC paths in the
> > Configure command line.
>
> Then it must be a problem with your cross-compiler. The cross-
> compilation support in Xerces-C++ is definitely working; I
> cross-compiled it myself on multiple occasions.
>
> What you can try to do is check the config.log file for the
> source code of the test that configure is trying to compile
> as well as the compiler command line that it is executing
> and see why it doesn't work.
>
> Boris
>
> --
> Boris Kolpackov, Code Synthesis
> http://codesynthesis.com/~boris/blog
> Open-source XML data binding for C++
> http://codesynthesis.com/products/xsd
> XML data binding for embedded systems
> http://codesynthesis.com/products/xsde
> Command line interface to C++ compiler
> http://codesynthesis.com/projects/cli
>
>
>
>
>
Re: Xerces error in loading transcoding service
Posted by diya das <di...@yahoo.com>.
Thanks a lot Fabian for this valuable piece of information.
I already kind of burnt my fingers trying to cross-compile ICU. I am sure I can
get it to work but I am just using Xerces for some basic XML parsing and stuff
.I really don't need the ICU support in it.
Hats off for the whole community for all the valuable support that is extended
to the developers.
Diya.
----- Original Message ----
From: Fabian van der Werf <fa...@altenpts.nl>
To: c-users@xerces.apache.org
Sent: Fri, August 27, 2010 2:54:40 AM
Subject: Re: Xerces error in loading transcoding service
Hi diya,
----- Original Message -----
From: diya das
[mailto:diyadas@yahoo.com]
To: c-users@xerces.apache.org
Cc:
boris@codesynthesis.com
Sent: Thu, 26 Aug 2010 16:39:57 +0200
Subject:
Xerces error in loading transcoding service
> Hi All,
>
> I encountered the same issue as
>http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-td25468057.html
>l
I did run into the same problem. I solved this by setting LC_TYPE to "en.utf-8".
>From what I remember xerces tries to load the transcoder for the encoding set in
your environment. On most embedded linux boards, the locales are not installed,
so iconv cannot discover which transcoder to load. Xerces handles a few encoding
by itself including UTF-8, so it won't load an external transcoder.
> Has anyone successfully cross-compiled ICU for the purpose of building Xerces
> with ICU to avoid dependency to native encoder.
I have also built ICU succesfully built for ARM, though, not for the purpose of
using it for xerces.
What issues are you running into?
Fabian
Re: Xerces error in loading transcoding service
Posted by Fabian van der Werf <fa...@altenpts.nl>.
Hi diya,
----- Original Message -----
From: diya das
[mailto:diyadas@yahoo.com]
To: c-users@xerces.apache.org
Cc:
boris@codesynthesis.com
Sent: Thu, 26 Aug 2010 16:39:57 +0200
Subject:
Xerces error in loading transcoding service
> Hi All,
>
> I encountered the same issue as
> http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-td25468057.html
I did run into the same problem. I solved this by setting LC_TYPE to "en.utf-8".
>From what I remember xerces tries to load the transcoder for the encoding set in your environment. On most embedded linux boards, the locales are not installed, so iconv cannot discover which transcoder to load. Xerces handles a few encoding by itself including UTF-8, so it won't load an external transcoder.
> Has anyone successfully cross-compiled ICU for the purpose of building Xerces
> with ICU to avoid dependency to native encoder.
I have also built ICU succesfully built for ARM, though, not for the purpose of using it for xerces.
What issues are you running into?
Fabian
Xerces error in loading transcoding service
Posted by diya das <di...@yahoo.com>.
Hi All,
I encountered the same issue as
http://old.nabble.com/Could-not-load-a-transcoding-service---Linux-td25468057.html
My target ARM-Linux board doesn not have gconv however I have cross-compiled
Xerces for arm without ICU.
Has anyone successfully cross-compiled ICU for the purpose of building Xerces
with ICU to avoid dependency to native encoder.
I am running into issues with ICU. I should probably be asking this question in
the ICU mailing list.
Boris mentioned in reply to the thread that he could build it though it is not
easy Could you please give some pointers ?
Thanks
----- Original Message ----
From: Boris Kolpackov <bo...@codesynthesis.com>
To: c-users@xerces.apache.org
Sent: Tue, August 24, 2010 4:30:43 PM
Subject: Re: ARM-Linux port
Hi Diya,
diya das <di...@yahoo.com> writes:
> I have the same error that I mentioned previously even with the
> --host option. Earlier I only had the CXX and CC paths in the
> Configure command line.
Then it must be a problem with your cross-compiler. The cross-
compilation support in Xerces-C++ is definitely working; I
cross-compiled it myself on multiple occasions.
What you can try to do is check the config.log file for the
source code of the test that configure is trying to compile
as well as the compiler command line that it is executing
and see why it doesn't work.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: ARM-Linux port
Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi Diya,
diya das <di...@yahoo.com> writes:
> I have the same error that I mentioned previously even with the
> --host option. Earlier I only had the CXX and CC paths in the
> Configure command line.
Then it must be a problem with your cross-compiler. The cross-
compilation support in Xerces-C++ is definitely working; I
cross-compiled it myself on multiple occasions.
What you can try to do is check the config.log file for the
source code of the test that configure is trying to compile
as well as the compiler command line that it is executing
and see why it doesn't work.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: ARM-Linux port
Posted by Willard Hagen <wi...@gmail.com>.
Hello,
What are the libraries that I need to link to and the library search paths?
Thanks!
-Willard
Re: ARM-Linux port
Posted by diya das <di...@yahoo.com>.
Hi Boris,
Thanks for the immediate response.
I have the same error that I mentioned previously even with the --host option.
Earlier I only had the CXX and CC paths in the Configure command line.
-Diya
----- Original Message ----
From: Boris Kolpackov <bo...@codesynthesis.com>
To: c-users@xerces.apache.org
Sent: Tue, August 24, 2010 1:24:07 PM
Subject: Re: ARM-Linux port
Hi,
diya das <di...@yahoo.com> writes:
> I tried this already with the instructions as per the website.
What is your configure command line? In particular, did you specify
the --host option? The command line should be along these lines:
./configure CC=/path/to/cross-c CXX=/path/to-cross-cxx --host arm-linux
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: ARM-Linux port
Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi,
diya das <di...@yahoo.com> writes:
> I tried this already with the instructions as per the website.
What is your configure command line? In particular, did you specify
the --host option? The command line should be along these lines:
./configure CC=/path/to/cross-c CXX=/path/to-cross-cxx --host arm-linux
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: ARM-Linux port
Posted by diya das <di...@yahoo.com>.
I tried this already with the instructions as per the website.
When I run configure withe CXX and CC pointing to the cross-complier binaries I
get errors. I tried with and without compiler flags -O3, -O2 etc..
Here is a snapshot of the error
configure:3741: checking for C++ compiler default output file name
configure:3763:
/usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/bin/g++
-O2 conftest.cpp >&5
In file included from conftest.cpp:11:
/usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:34:21:
error: stddef.h: No such file or directory
In file included from
/usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:75,
from conftest.cpp:11:
/usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/libio.h:53:21:
error: stdarg.h: No such file or directory
In file included from
/usr/local/arm/cross-gcc-4.4.1-armv5te-soft/i686-pc-linux-gnu/arm-926ejs-linux-gnueabi/sys-root/usr/include/stdio.h:75,
from conftest.cpp:11:
I have the above include files in the compile chain hierarchy. I tried to move
it around and configure script gives me some new error each time I fix one . So
I figured that is not the way to go. I was able to build Boost C++ with the same
cross compile chain without any issues. So I can't suspect the cross-compiler
either.
If anyone has attempted this please let me know.
Thanks
----- Original Message ----
From: Boris Kolpackov <bo...@codesynthesis.com>
To: c-users@xerces.apache.org
Sent: Mon, August 23, 2010 5:10:23 PM
Subject: Re: ARM-Linux port
Hi,
diya das <di...@yahoo.com> writes:
> Have someone been able to successfully build Xerces libraries using the gcc
> cross-compiler tool chain for running on an ARM-Linux target.
Xerces-C++ 3-series uses the standard autotools build system which
supports cross-compilation. If your target has the necessary APIs
(transcoding, threads, network, etc.), then I don't see any problems
with (cross)compiling Xerces-C++ for it.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli
Re: ARM-Linux port
Posted by Boris Kolpackov <bo...@codesynthesis.com>.
Hi,
diya das <di...@yahoo.com> writes:
> Have someone been able to successfully build Xerces libraries using the gcc
> cross-compiler tool chain for running on an ARM-Linux target.
Xerces-C++ 3-series uses the standard autotools build system which
supports cross-compilation. If your target has the necessary APIs
(transcoding, threads, network, etc.), then I don't see any problems
with (cross)compiling Xerces-C++ for it.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli