[Mono-osx] dyld: unknown required load command 0x80000022

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Wed Jan 19 09:30:18 EST 2011


El 19/01/2011, a las 15:08, Alexander Shulgin escribió:
> Dunno, try adding -liconv somewhere in the link flags.

Cool, that works. Can somebody please update the bundle section instructions found at http://www.mono-project.com/Guide:Running_Mono_Applications? This would have saved me some hours of hardcore head vs. wall action. Adding the following points should be enough:

If you are using the latest mono build you will get linker errors under Snow Leopard due to the compiler using by default 64bit frameworks instead of 32bit versions, the ones mono is compiled against. You will likely need to make the following changes to your environment.

1) Tell the assembler you are creating 32bit versions.

export AS="as -arch i386"

2) Tell the compiler you want to link 32bit versions.

export CC="cc -arch i386"

3) Make sure you are using the pkg-config binary distributed with Mono, which might be a problem if you are using macports and their pkg-config version. Here's how you can make sure everything is correct:

export PATH=/Library/Frameworks/Mono.framework/Commands/:$PATH

4) Modify the file /Library/Frameworks/Mono.framework/Versions/2.8.2/lib/pkgconfig/mono-2.pc to contain the following libraries and cflags:

Libs: -L${libdir}  -lmono-2.0 -pthread   -lpthread -liconv
Cflags: -I${includedir} -D_THREAD_SAFE -framework CoreFoundation -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5


More information about the Mono-osx mailing list