Проблема генерации Mtouch с привязками admob, созданными XNATouch и btouch

Проблема генерации Mtouch с привязками admob, созданными XNATouch и btouch.

Мы экспериментируем с созданной btouch привязкой c# для библиотеки AdMob на iPhone. У нас есть тестовое приложение, созданное MonoDevelop/Monotouch. После копирования libAdMobNoThumb.a и libTouchJSON.a в каталог проекта мы связываем его со следующими дополнительными флагами:

-v -v -v -gcc_flags "-L${ProjectDir} -lAdMobNoThumb -lTouchJSON -force_load ${ProjectDir}/libAdMobNoThumb.a -force_load ${ProjectDir}/libTouchJSON.a"

Это работает, как и ожидалось, функциональность рекламного баннера AdMob работает.

В качестве следующего шага мы хотим попробовать это в программе XNATouch. Мы используем демо-версию BouncingBox, доступную в пакете загрузки XNATouch

-v -v -v -gcc_flags "-L${ProjectDir} -lAdMobNoThumb -lTouchJSON -force_load ${ProjectDir}/libAdMobNoThumb.a -force_load ${ProjectDir}/libTouchJSON.a"
0. Компилируется без ошибок и работает нормально. Но если мы добавим вышеуказанные дополнительные флаги (после копирования библиотек в каталог демо-проекта), компиляция завершится ошибкой со следующими сообщениями об ошибках:

Error 1: mtouch failed with the following message:
main.m:9:26: error: mono/jit/jit.h: No such file or directory
main.m:10:36: error: mono/metadata/assembly.h: No such file or directory
main.m:11:39: error: mono/metadata/mono-config.h: No such file or directory
main.m:12:38: error: mono/metadata/mono-debug.h: No such file or directory
main.m:13:26: error: monotouch/gc.h: No such file or directory
main.m:14:33: error: monotouch/monotouch.h: No such file or directory
main.m: In function 'main':
main.m:1811: error: 'MonoAssembly' undeclared (first use in this function)
main.m:1811: error: (Each undeclared identifier is reported only once
main.m:1811: error: for each function it appears in.)
main.m:1811: error: 'assembly' undeclared (first use in this function)
main.m:1813: error: 'MTSupport' undeclared (first use in this function)
main.m:1813: error: 'gcd' undeclared (first use in this function)
main.m:1838: warning: implicit declaration of function 'monotouch_enable_debug_tracking'
main.m:1899: error: 'MonoDebugOptions' undeclared (first use in this function)
main.m:1899: error: 'options' undeclared (first use in this function)
main.m:1921: error: expected expression before ')' token
main.m:1925: warning: implicit declaration of function 'mono_debugger_agent_parse_options'
main.m:1926: warning: implicit declaration of function 'mono_debug_init'
main.m:1926: error: 'MONO_DEBUG_FORMAT_MONO' undeclared (first use in this function)
main.m:1957: warning: implicit declaration of function 'mono_register_config_for_assembly'
main.m:1963: warning: implicit declaration of function 'mono_register_machine_config'
main.m:1969: warning: implicit declaration of function 'mono_jit_init_version'
main.m:1976: warning: implicit declaration of function 'monotouch_init'
main.m:1990: error: 'gchar' undeclared (first use in this function)
main.m:1990: error: 'tokens' undeclared (first use in this function)
main.m:1990: warning: implicit declaration of function 'g_strsplit'
main.m:1991: error: 'aname' undeclared (first use in this function)
main.m:1992: error: 'basename' undeclared (first use in this function)
main.m:2001: warning: implicit declaration of function 'g_strdup_printf'
main.m:2003: warning: implicit declaration of function 'g_strfreev'
main.m:2005: warning: implicit declaration of function 'monotouch_register'
main.m:2005: warning: implicit declaration of function 'mono_assembly_open'
main.m:2009: warning: implicit declaration of function 'g_free'
main.m:2019: warning: implicit declaration of function 'monotouch_get_has_classmap'
main.m:2020: warning: implicit declaration of function 'monotouch_map'
main.m:2056: error: 'guint64' undeclared (first use in this function)
main.m:2075: warning: implicit declaration of function 'mono_jit_exec'
main.m:2075: warning: implicit declaration of function 'mono_domain_get'
i686-apple-darwin10-gcc-4.2.1: main.o: No such file or directory
(1) (XnaTouch.Samples.BouncingBox)

(Это исходные сообщения, в которых мы заменили «/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmp159b7497.tmp/main» на «main»)

Может кто-нибудь объяснить, как это может быть вызвано параметрами компоновщика? Возьмем первую строку ошибки: она больше не находит файлы заголовков!? Нам не хватает знаний, чтобы понять это, и мы были бы очень признательны за некоторые объяснения...

Теги: Monotouch xnatouch iphone admob c#


person guivho    schedule 27.11.2010    source источник


Ответы (1)


Это не проблема.

Это было вызвано настройками сэмпла. Они по-прежнему ссылались на sdk 4.0, которого нет в моей системе.

Извините за шум.

person guivho    schedule 28.11.2010