Thanks, that worked great. 
After that I also needed to export AS="as -arch i386" and CC="cc -arch i386" 
for my architecture, at which point I was able to create a bundle successfully 
(mkbundle -o testapp TestApp.exe --deps)
However, to create a standalone app which includes the runtime, I need to 
include --static.  This gives an error:
Erics-MacBook-Pro:Debug ericvandenberg$ mkbundle -o testapp TestApp.exe --deps 
--staticOS is: DarwinNote that statically linking the LGPL Mono runtime has 
more licensing restrictions than dynamically linking.See 
http://www.mono-project.com/Licensing for details on licensing.Sources: 1 
Auto-dependencies: True   embedding: 
/Users/ericvandenberg/Projects/TestApp/TestApp/bin/Debug/TestApp.exe   
embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/4.0/mscorlib.dll   
embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
   embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
   embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
   embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
   embedding: 
/Library/Frameworks/Mono.framework/Versions/2.10.8/lib/mono/gac/System.Security/4.0.0.0__b03f5f7f11d50a3a/System.Security.dllCompiling:as
 -arch i386 -o temp.o temp.s cc -arch i386 -o testapp -Wall `pkg-config 
--cflags mono-2` temp.c  `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.oUndefined symbols for architecture i386:  
"_CFLocaleCopyCurrent", referenced from:      _get_darwin_locale in 
libmono-2.0.a(libmonoruntime_la-locales.o)  "_CFLocaleGetIdentifier", 
referenced from:      _get_darwin_locale in 
libmono-2.0.a(libmonoruntime_la-locales.o)  "_CFStringGetLength", referenced 
from:      _get_darwin_locale in libmono-2.0.a(libmonoruntime_la-locales.o)  
"_CFStringGetMaximumSizeForEncoding", referenced from:      _get_darwin_locale 
in libmono-2.0.a(libmonoruntime_la-locales.o)  "_CFStringGetCString", 
referenced from:      _get_darwin_locale in 
libmono-2.0.a(libmonoruntime_la-locales.o)  "_CFRelease", referenced from:      
_get_darwin_locale in libmono-2.0.a(libmonoruntime_la-locales.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)  "_iconv_close", 
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 for architecture i386clang: error: linker command failed with exit code 1 
(use -v to see invocation)[Fail]
Any idea what the problem is here? It found the DLL's to embed so not sure why 
it's not finding the symbols?
Thanks,Eric
Subject: Re: [Mono-osx] error with AOT compile on MonoMac
From: [email protected]
Date: Sun, 26 Feb 2012 21:53:06 -0800
CC: [email protected]
To: [email protected]



On Feb 26, 2012, at 9:16 PM, Eric Vandenberg <[email protected]> wrote:Any help 
would be appreciated
Apple has bunged things up a bit by moving  away from a Unixy developer 
environment.
"find / -name as 2> /dev/null" in the console will go find all the as 
executables on your system.
I've got as's all over the place, but am running 10.8 beta 1 and none in my 
path now.
My 10.7 volume has:
/Volumes/Lion/usr/bin/as/Volumes/Lion/usr/libexec/as/Volumes/Lion/usr/libexec/as/arm/as/Volumes/Lion/usr/libexec/as/i386/as/Volumes/Lion/usr/libexec/as/x86_64/as/Volumes/Lion/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/as
Xcode 4.3 and newer will install these for you if you open up Xcode > 
Preferences > Downloads:
http://i.imgur.com/WUouj.png

                                          
_______________________________________________
Mono-osx mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-osx

Reply via email to