[Mono-osx] dyld: unknown required load command 0x80000022
Alexander Shulgin
alexander.shulgin at yessoftware.com
Wed Jan 19 09:08:36 EST 2011
On 19.01.2011 16:06, Grzegorz Adam Hankiewicz wrote:
> El 19/01/2011, a las 13:08, Duane Wandless escribió:
>> 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.
>
> That's nice! Now the -z parameter works. However, using mkbundle --static still has link problems. Any ideas?
>
> $ mkbundle -z src/bbiribbabba.exe --deps --static -o build/test
> ...
> as -arch i386 -o temp.o temp.s
> cc -arch i386 -o build/test -Wall `pkg-config --cflags mono-2` temp.c -lz `pkg-config --libs-only-L mono-2` `pkg-config --variable=libdir mono-2`/libmono-2.0.a `pkg-config --libs-only-l mono-2 | sed -e "s/\-lmono-2.0 //"` temp.o
> Undefined symbols:
> "_iconv_close", referenced from:
> _monoeg_g_convert in libmono-2.0.a(libeglib_la-gunicode.o)
> "_iconv_open", referenced from:
> _monoeg_g_convert in libmono-2.0.a(libeglib_la-gunicode.o)
> "_iconv", referenced from:
> _monoeg_g_convert in libmono-2.0.a(libeglib_la-gunicode.o)
> "_locale_charset", referenced from:
> _monoeg_g_get_charset in libmono-2.0.a(libeglib_la-gunicode.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> [Fail]
Dunno, try adding -liconv somewhere in the link flags.
More information about the Mono-osx
mailing list