[Mono-dev] invalid ELF header

Rafael Teixeira monoman at gmail.com
Wed Aug 25 12:30:28 EDT 2010


Seems like that is a native windows library, you won't be able to make
it work in Linux.
You may try to compile it for Linux, if you have the sources, but it
may be 'real' hard to accomplish that.


Rafael "Monoman" Teixeira
---------------------------------------
"We live in a world operated by science and technology. We have also
arranged things so that almost no one understands science and
technology. This is a prescription for disaster. We might get away
with it for a while, but sooner or later this combustible mixture of
ignorance and power is going to blow up in our faces."
-Carl Sagan



On Thu, Aug 12, 2010 at 8:13 AM, mikle <mih3y at inbox.lv> wrote:
>
> Hello everyone. Sorry for my English, but i need your help on this one.
>
> First if all i got this error -
> Unhandled Exception: System.TypeInitializationException: An exception was
> thrown by the type initializer for VoIPPhoneCS.Phone --->
> System.DllNotFoundException: VoIPPhone.dll
>
> Actually Voipphone.dll is in the same folder,from what i am launching my
> exe. But mono searched for file libVoIPPhone.dll in /usr/lib/, so i copied
> my VoIPPhone.dll to /usr/lib and renamed it to libVoIPPhone.dll and now a
> get this error -
>
> : Mono-WARNING **: DllImport unable to load library '/lib/libVoIPPhone.dll:
> invalid ELF header'.
> Mono-INFO: DllImport attempting to load: 'VoIPPhone.dll'.
> Mono-INFO: DllImport loading location: 'libVoIPPhone.dll.so'.
> Mono-INFO: DllImport error loading library: '/usr/lib/libVoIPPhone.dll.so:
> invalid ELF header'.
> Mono-INFO: DllImport loading library: './libVoIPPhone.dll.so'.
> Mono-INFO: DllImport error loading library './libVoIPPhone.dll.so: cannot
> open shared object file: No such file or directory'.
> Mono-INFO: DllImport loading: 'VoIPPhone.dll'.
> Mono-INFO: DllImport error loading library '/usr/lib/VoIPPhone.dll: invalid
> ELF header'.
> Mono-INFO: DllImport loading location: 'libVoIPPhone.so'.
> Mono-INFO: DllImport error loading library: 'libVoIPPhone.so: cannot open
> shared object file: No such file or directory'.
> Mono-INFO: DllImport loading library: './libVoIPPhone.so'.
> Mono-INFO: DllImport error loading library './libVoIPPhone.so: cannot open
> shared object file: No such file or directory'.
>
>
> Hope to get some help. THX!
> --
> View this message in context: http://mono.1490590.n4.nabble.com/invalid-ELF-header-tp2322558p2322558.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


More information about the Mono-devel-list mailing list