[Mono-dev] Error building mono on x86 (Mono-devel-list Digest, Vol 118, Issue 21)
directhex at apebox.org
Thu Feb 19 12:02:53 UTC 2015
On 18/02/15 13:09, Rafael Mueller - Inventti wrote:
> Currently the .so is in the same directory as the application, and the main application is marked as x86.
> running: MONO_LOG_LEVEL=debug ../MONO312/bin/mono SimuladorPDV.exe
> I got:
> Mono: DllImport error loading library '/home/mueller/simulador/libnfcepack_agente.so': '/home/mueller/simulador/libnfcepack_agente.so: wrong ELF class: ELFCLASS32'.
> I'm also able to run others x86 applications on this mono installation, but those app's doesn't [DllImport] and p/invoke other's .so
> Can you confirm that mono is should work with this setup?
No. amd64 Mono can only JIT amd64 code and only P/Invoke amd64
libraries. Mono ignores the architecture flag on assemblies, and always
uses the JITter it was built against. You can never load an i386 .so
with amd64 Mono.
More information about the Mono-devel-list