Re: Monodevelop made application not starting on ubuntu

Dan Liew <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <CAJ7DczEzdLHFRnV5dLuT+E1PtwY1=q9uCubHgZPt6y9ebrbM5w@mail.gmail.com>
On 4 August 2015 at 11:23, onedevteam.com <[email protected]> wrote:
> running with "mono myapp.exe" is not an option. I wan't application to be
> useful on computers with no mono installed.
>
> Meanwhile, i have managed to start application bundled with "mkbundle
> TestApp --deps --static -o TA" on machine where mono-complete is installed.
>
> when i bundle only with --deps, i got error "corlib not in sync with this
> runtime, expected corlib version 111, found 117".
>
> when i bundle only with --static, error is ""corlib not in sync with this
> runtime, expected corlib version 117, found 111".
>
> And all that, only after i have mono-complete installed on target machine.
> Without it, i get some gtk# dll not found errors.

What you're saying does not make sense. You want ``myapp.exe`` to not
depend on mono, but you installed gtk# on the target machine? That's
going to pull in mono as a dependency which is going to lead to issues
if your ``myapp.exe`` depends on some dlls that aren't embedded
executable. It sounds like the dlls you have on the target machine
were built for a different version of mono hence the corlib version
mismatch errors.

You need to find a way of bundling all the dlls on the host machine
(e.g. gtk#) into your ``myapp.exe``. This isn't guaranteed to work
though if that dlls depends on a certain versions of a native library
(e.g. gtk).
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.