[Mono-osx] dyld: unknown required load command 0x80000022
Duane Wandless
duane at wandless.net
Wed Jan 19 07:08:08 EST 2011
I did not notice that 2.8.1 uses mono-2.pc. I modified
/Library/Frameworks/Mono.framework/Versions/2.8.1/lib/pkgconfig/mono-2.pc
to have this line:
Cflags: -I${includedir} -D_THREAD_SAFE -framework CoreFoundation -arch i386
-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
And now the SL created app runs on Leopard.
Duane
On Wed, Jan 19, 2011 at 3:52 AM, Grzegorz Adam Hankiewicz <
gradha at titanium.sabren.com> wrote:
> El 19/01/2011, a las 05:26, Duane Wandless escribió:
> > I'm getting this error on Leopard when trying to run a mkbundled-ed app
> > created on Snow Leopard. Using 2.8.1.
> >
> > I've tried adding this to mono.pc:
> >
> > Cflags: -I${includedir} -D_THREAD_SAFE -arch i386 -isysroot
> > /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
> > -no_compact_linkedit
> > Libs: -L${libdir} -lmono -pthread -lpthread -lm
> >
> > As well as running mkbundle with:
> > AS="as -arch i386" CC="cc -arch i386" mkbundle
> >
> > Is it possible to run a SL created bundle on Leopard?
>
> Hello.
>
> I've just stumped on this too. You are right up to the mkbundle point,
> which is explained by Alexander Shulgin on
> http://go-mono.com/forums/#nabble-td2717076.
>
> Looks like some mistakes prevent mkbundle from working. I've ended up
> having to wrap everything in a script for compilation to work:
> http://cobra-language.com/forums/viewtopic.php?f=4&p=3745#p3745
>
> However, since mkbundle is broken, you cannot use the -z feature:
>
> Compiling:
> as -arch i386 -o temp.o temp.s
> Undefined symbols:
> "_inflateEnd", referenced from:
> _mono_mkbundle_init in ccJXAqxL.o
> "_inflate", referenced from:
> _mono_mkbundle_init in ccJXAqxL.o
> "_inflateInit_", referenced from:
> _mono_mkbundle_init in ccJXAqxL.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
> Nor the --static switch, since you have to compile/link yourself. Hopefully
> this can be fixed soon, it's a pity not being able to produce statically
> linked binaries with compression for easy redistribution.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110119/31f25f04/attachment.html
More information about the Mono-osx
mailing list