Yeah, more -v would probably help :)
FWIW, here's what my additional mtouch arguments look like:
-v -v -v --aot="nimt-trampolines=1024" --noregistrar -gcc_flags
"-L${ProjectDir}/../avutils-ios/AVUtils/Debug-iphoneos -lAVUtils -framework
AudioToolbox -framework AVFoundation -framework CoreGraphics -framework
CoreMedia -framework CoreVideo -framework Foundation -force_load
${ProjectDir}/../avutils-ios/AVUtils/Debug-iphoneos/libAVUtils.a
-L${ProjectDir}/lib/Facebook -lfacebook_ios_sdk -framework CoreGraphics
-force_load ${ProjectDir}/lib/Facebook/libfacebook_ios_sdk.a"
libAVUtils.a is my custom ObjC library; AVUtils.dll (not pictured), the
binding library, is just included as a reference, as you describe. Note that
I had to add a bunch of -framework args for the frameworks used by
libAVUtils.a but not by any of the rest of my code -- dunno if you're in a
similar situation.
--D.
On Thu, May 19, 2011 at 6:56 PM, Michael Brian Bentley <[email protected]
> wrote:
> That helps a great deal, it gives me some confidence that I'm
> probably setting things up close to correct. Not *quite* correct, but
> close.
>
> I'm trying to include the MGSplitViewController in an MT project.
>
> Got the Xcode project and the C# bindings.
> Built another Xcode project to build the .a file. I've put in only
> some of the source so far.
> Added the bindings to the MT project,
> Compiled the Xcode objc project to a .a,
> Ran btouch to build the .dll,
> Added the .dll to the MT project,
> added the .dll to References,
> Changed the MT project thus:
> selected Link SDK assemblies only,
> cribbed the link flags, changing the name of the .a mentioned in two
> places
> (-l and -force_load)
> Attempted to build the MT project.
>
> Result so far: "mtouch failed with no output(1)"
>
> Maybe I should have a half-dozen more -v to the link options...
>
> -Mike
>
> >Don't know if there's a canonical example, but you might look at
> >Kevin McMahon's Facebook fork and corresponding MT binding:
> >
> ><https://github.com/kevinmcmahon/facebook-ios-sdk>
> https://github.com/kevinmcmahon/facebook-ios-sdk
> ><>https://github.com/kevinmcmahon/monotouch-facebook
> >
> ><https://github.com/kevinmcmahon/monotouch-facebook>In my experience
> >the Xcode side is relatively easy -- aside from getting the code
> >right; the tricky part is in the binding, since the C# code btouch
> >generates doesn't always compile straight off (name collision issues
> >etc).
> >
> >On Thu, May 19, 2011 at 3:07 PM, Michael Brian Bentley
> ><<mailto:[email protected]>[email protected]> wrote:
> >
> >Is there an example MonoTouch solution/project that uses bindings to
> >Objective C code and links the .a files, with the Xcode project
> >needed to build the .a files for the MT project?
> >
> >-Mike
> >_______________________________________________
> >MonoTouch mailing list
> ><mailto:[email protected]>[email protected]
> ><http://lists.ximian.com/mailman/listinfo/monotouch>
> http://lists.ximian.com/mailman/listinfo/monotouch
> >
> >
> >
> >
> >--
> >David Moles
> ><mailto:[email protected]>[email protected]
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
--
David Moles
[email protected]
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch