[Mono-list] Mkbundle errors.
Robert Jordan
robertj at gmx.net
Thu Aug 27 09:12:24 EDT 2009
Lucyberad wrote:
> Hi,
>
> I'm having currently some trouble with mkbundle. I want to produce a 1file
> exec (without the need for user to install mono) and I use mkbundle for it.
>
> Here is my first attempt on Windows:
>
> It produce an "empty" exe. The produced file weight 2.5mb but the output
> console is empty on launching.
> http://www.nabble.com/file/p25167566/mkbundletest.png
The output is suppressed because the EXE was compiled
for the windows subsystem. Invoke mkbundle like this:
CC="gcc -mconsole" mkbundle ....
> The second attempt is on Linux (to see if it produce the same error) and
> this time I've another error:
> http://www.nabble.com/file/p25167566/mkbundle%2Bwindows.png
>
> The program is just a Console.WriteLine("Hello World");.
You seem to have parallel Mono installations on your system.
Try to set PKG_CONFIG_PATH to point to the correct Mono installation,
which seems to be /usr/local on your system:
PKG_CONFIG_PATH=/usr/local/pkgconfig mkbundle ...
Robert
More information about the Mono-list
mailing list