[Mono-dev] Cross-compiling Mono for ARM
monoman at gmail.com
Fri Jun 19 17:51:41 UTC 2015
...arm-elf/include/stdint.h:243: error: conflicting types for 'intptr_t'
...arm-elf/include/stdint.h:244: error: conflicting types for 'uintptr_t'
it is pretty clear that ingenico messed with the standard header files, and
guard clauses (#IFDEFs) aren't thus able to avoid such duplications, You'll
need to see how to avoid the duplication but that may instead define things
wrongly for symbols mono uses.
I wish you luck,
On Fri, Jun 19, 2015 at 2:11 PM, Gutemberg Ribeiro <gutemberg at fgrit.com>
> Hello Andres...
> I think I finally got it compiled but, now when I'm including on my C
> project the mono headers, my app don't compile anymore:
> In file included from
> from Src/Entry.c:43:
> error: conflicting types for 'intptr_t'
> 9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:35: error: previous
> declaration of 'intptr_t' was here
> error: conflicting types for 'uintptr_t'
> 9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:38: error: previous
> declaration of 'uintptr_t' was here
> *** [Obj/GNU_ARM_DEBUG/Entry.o] Error 1
> Target `build' not remade because of errors.
> Any clues?
> -----Original Message-----
> From: Andres G. Aragoneses [mailto:knocte at gmail.com]
> Sent: Friday, June 19, 2015 8:58 AM
> To: Gutemberg Ribeiro <gutemberg at fgrit.com>
> Subject: Re: Cross-compiling Mono for ARM
> On 18/06/15 21:03, Gutemberg Ribeiro wrote:
> > Hello guys,
> > I'm trying to cross-compile (from Ubuntu 14.04) Mono for ARM following
> > this tutorial
> > http://www.mono-project.com/docs/about-mono/supported-platforms/arm/
> > but the links that show how configure ScratchBox are outdated and I
> > can't find anything on the internet on how to successful setup an
> > environment and cross-compile mono for ARM...
> > The idea is to build it as a static library so I can use it embedded
> > as suggested here:
> > http://www.mono-project.com/docs/advanced/embedding/
> > For the sake of information, the target ARM device runs a proprietary
> > striped down distribution based on debian and we have no access to its
> > terminal or any kind of access to the OS. It is a payment terminal
> > from www.ingenico.com <http://www.ingenico.com> and it has an ARM9
> > processor and uses a proprietary SDK that looks like uses GNU ARM
> > 4.3.4 toolchain with an IDE based on Eclipse as you can see in the
> following picture:
> > The only way we have to use mono on it is by adding it as a static lib
> > and import the header in order to embedded it, create a thin C layer
> > that will only bootstrap the .net app (all their API calls will be
> > PInvoked after add Mono to it).
> > Anyone has has a good documentation on:
> > 1.How to setup a cross-compile environment on Ubuntu
> > 2.Compile Mono to ARM as an static library
> > Any help would be very appreciated.
> > Thank you very much!
> > Best regards,
> Hey, I recommend you to put more details on what you have already tried.
> For example the details you already posted on the gitter channel when you
> were talking with Miguel about using CC='armv6-cc' ./configure.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list