<div dir="ltr"><div><span style="font-size:12.8000001907349px">From these:</span></div><span style="font-size:12.8000001907349px">...arm-</span><span style="font-size:12.8000001907349px">elf/include/stdint.h:243: error: conflicting types for 'intptr_t'</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">...arm-</span><span style="font-size:12.8000001907349px">elf/include/stdint.h:244: error: conflicting types for 'uintptr_t'</span><br><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">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.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I wish you luck,</span><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Rafael Teixeira<br>O..:.)oooo<br></div></div>
<br><div class="gmail_quote">On Fri, Jun 19, 2015 at 2:11 PM, Gutemberg Ribeiro <span dir="ltr"><<a href="mailto:gutemberg@fgrit.com" target="_blank">gutemberg@fgrit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Andres...<br>
<br>
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:<br>
<br>
In file included from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/utils/mono-publib.h:45,<br>
                 from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/metadata/appdomain.h:13,<br>
                 from ../../Desktop/mono-build/usr/local/include/mono-2.0/mono/jit/jit.h:11,<br>
                 from C:/Users/Gutemberg/IngeDev7_workspace/MonoWrapper/Inc/mono_loader.h:1,<br>
                 from Src/Entry.c:43:<br>
/cygdrive/c/Ingenico/IngeDev_7.22.2.1/plugins/com.ingenico.ingedev.telium.bin.win32.gnuarm.v434_7.20.0.1/os/win32/GNUARM/4.3.4/bin/../lib/gcc/arm-elf/4.3.4/../../../../arm-elf/include/stdint.h:243: error: conflicting types for 'intptr_t'<br>
C:/Ingenico/TeliumSDK/SDK <a href="http://9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:35" rel="noreferrer" target="_blank">9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:35</a>: error: previous declaration of 'intptr_t' was here<br>
/cygdrive/c/Ingenico/IngeDev_7.22.2.1/plugins/com.ingenico.ingedev.telium.bin.win32.gnuarm.v434_7.20.0.1/os/win32/GNUARM/4.3.4/bin/../lib/gcc/arm-elf/4.3.4/../../../../arm-elf/include/stdint.h:244: error: conflicting types for 'uintptr_t'<br>
C:/Ingenico/TeliumSDK/SDK <a href="http://9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:38" rel="noreferrer" target="_blank">9.20.2.04/SDKTPLUS/HW_T2/gnu_434/inc/oem_vfs_def.h:38</a>: error: previous declaration of 'uintptr_t' was here<br>
C:\Ingenico\IngeDev_7.22.2.1\plugins\com.ingenico.ingedev.generic.bin.win32_7.16.0.1\os\win32\tools\make.exe: *** [Obj/GNU_ARM_DEBUG/Entry.o] Error 1<br>
C:\Ingenico\IngeDev_7.22.2.1\plugins\com.ingenico.ingedev.generic.bin.win32_7.16.0.1\os\win32\tools\make.exe: Target `build' not remade because of errors.<br>
<br>
Any clues?<br>
<br>
<br>
Thanks<br>
<br>
-----Original Message-----<br>
From: Andres G. Aragoneses [mailto:<a href="mailto:knocte@gmail.com">knocte@gmail.com</a>]<br>
Sent: Friday, June 19, 2015 8:58 AM<br>
To: Gutemberg Ribeiro <<a href="mailto:gutemberg@fgrit.com">gutemberg@fgrit.com</a>><br>
Subject: Re: Cross-compiling Mono for ARM<br>
<span class=""><br>
On 18/06/15 21:03, Gutemberg Ribeiro wrote:<br>
> Hello guys,<br>
><br>
> I'm trying to cross-compile (from Ubuntu 14.04) Mono for ARM following<br>
> this tutorial<br>
> <a href="http://www.mono-project.com/docs/about-mono/supported-platforms/arm/" rel="noreferrer" target="_blank">http://www.mono-project.com/docs/about-mono/supported-platforms/arm/</a><br>
> but the links that show how configure ScratchBox are outdated and I<br>
> can't find anything on the internet on how to successful setup an<br>
</span>> environment and cross-compile mono for ARM...<br>
<span class="">><br>
> The idea is to build it as a static library so I can use it embedded<br>
> as suggested here:<br>
> <a href="http://www.mono-project.com/docs/advanced/embedding/" rel="noreferrer" target="_blank">http://www.mono-project.com/docs/advanced/embedding/</a><br>
><br>
> For the sake of information, the target ARM device runs a proprietary<br>
> striped down distribution based on debian and we have no access to its<br>
> terminal or any kind of access to the OS. It is a payment terminal<br>
</span>> from <a href="http://www.ingenico.com" rel="noreferrer" target="_blank">www.ingenico.com</a> <<a href="http://www.ingenico.com" rel="noreferrer" target="_blank">http://www.ingenico.com</a>> and it has an ARM9<br>
<span class="">> processor and uses a proprietary SDK that looks like uses GNU ARM<br>
> 4.3.4 toolchain with an IDE based on Eclipse as you can see in the following picture:<br>
><br>
</span><span class="">> The only way we have to use mono on it is by adding it as a static lib<br>
> and import the header in order to embedded it, create a thin C layer<br>
> that will only bootstrap the .net app (all their API calls will be<br>
> PInvoked after add Mono to it).<br>
><br>
> Anyone has has a good documentation on:<br>
><br>
</span>> 1.How to setup a cross-compile environment on Ubuntu<br>
><br>
> 2.Compile Mono to ARM as an static library<br>
<span class="">><br>
> Any help would be very appreciated.<br>
><br>
> Thank you very much!<br>
><br>
> Best regards,<br>
<br>
</span>Hey, I recommend you to put more details on what you have already tried.<br>
For example the details you already posted on the gitter channel when you were talking with Miguel about using CC='armv6-cc' ./configure.<br>
<br>
_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" rel="noreferrer" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
</blockquote></div><br></div>