Hi,
On Thu, Jul 19, 2012 at 5:05 PM, Nscavezze <[email protected]> wrote:
> I am trying to bind a lib called Scandit used for barcode scanning. I am
> not
> very familiar with obj-c and I am new to mono so any help would be great.
>
> I have a few issues. the first is that i cannot get it to compile when i
> include armV6 even tho it supports it.
>
> lipo -info libscanditsdk-iphone-2.1.17.a
> Architectures in the fat file: libscanditsdk-iphone-2.1.17.a are: armv6
> armv7 i386
>
> here is my linkwith statement
>
> [assembly: LinkWith ("libscanditsdk-iphone-2.1.17.a", LinkTarget.ArmV7 |
> LinkTarget.Simulator
You need to | LinkTarget.ArmV6 if you want to use armv6 too.
> ,
> ForceLoad = true, Frameworks="CoreVideo CoreGraphics
> AudioToolbox AVFoundation CoreMedia QuartzCore SystemConfiguration", IsCxx
> =
> true, LinkerFlags="-lz -liconv")]
>
> here is a link to the image with the required frameoworks and libs
> http://www.scandit.com/wp-content/uploads/2011/10/dev_guide_ios_2.png link
>
> The second issue is once i remove armv6 and it compiles I can call the
> constructor but if i call a method or property the ios app crashes with
> nothing int he output or console here is the crash log
> http://pastebin.com/YJrnU5w8 http://pastebin.com/YJrnU5w8
This is what happens if the native library wasn't embedded properly. Can
you provide a full build log for your project?
Rolf
>
>
> Here is the api definition file.
> http://pastebin.com/6yWSxDTa APIDefinition
>
> Here are the header files for the lib http://pastebin.com/0hxPCSdT
> ScanditSDKBarcodePicker
> and http://pastebin.com/vwNFAfnV ScanditSDKOverlayController
>
> and last were I am attempting to use it
> http://pastebin.com/h22s2W73
>
> any help would be greatly appreciated. until then I am gonna go make a
> simple hello world lib and bind it to see if i am doing something wrong
> there
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Binding-native-obj-c-lib-help-tp4656065.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch