Got a step further.

I am now using:
-v -gcc_flags="-L${ProjectDir} -lsqlite3.0 -framework CoreVideo -framework
CoreMedia -lVSBarcodeReader -force_load ${ProjectDir}/libVSBarcodeReader.a
-ObjC"

If I build with "Don't link" I get:
Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_c.dylib                   0x35664634 pthread_mutex_lock + 0
1   app                         0x01068630 mono_aot_get_class_from_name
(aot-runtime.c:1512)
2   app                         0x010ca2d0 mono_class_from_name
(class.c:7092)
3   app                         0x010e4e28 mono_exception_from_name_domain
(exception.c:58)
4   app                         0x010e4de0 mono_exception_from_name
(exception.c:35)
5   app                         0x010e53c0 mono_get_exception_null_reference
(exception.c:280)
6   app                         0x01076510 mono_handle_exception_internal
(mini-exceptions.c:1371)
7   app                         0x01077a5c mono_handle_exception
(mini-exceptions.c:1831)
8   app                         0x010a2be4 handle_signal_exception
(exceptions-arm.c:532)

But if I build with "Links SDK assemblies only" is works. 
However now it gets strange.
If I clean->build it works. But if I build without cleaning first I get:
System.ExecutionEngineException: Attempting to JIT compile method
'app.VSBarcodeReader:get_DecodeEAN8 ()' while running with --aot-only.

when I access the lib.

br
db

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Binding-and-linking-to-3-party-static-library-tp3536257p3540370.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to