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

Alexander Shulgin alexander.shulgin at yessoftware.com
Wed Jan 19 09:35:03 EST 2011

On 19.01.2011 16:30, Grzegorz Adam Hankiewicz wrote:
> 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

Thanks, it's good to have all the tricks in one place for reference.

Since mono only supports 32-bit macs, and only >= 10.5, it might make 
good sense to apply these changes in the code repository instead of 
putting it in the wiki.


More information about the Mono-osx mailing list