2010-11-27 41 views
0

XNATouch和btouch生成的admob綁定的Mtouch生成問題。使用XNATouch和btouch生成的admob綁定的Mtouch生成問題

我們正在嘗試爲iPhone上的AdMob庫生成一個btouch生成的c#綁定。我們有一個由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程序中嘗試使用它。我們使用XNATouch_1_0下載包中提供的BouncingBox演示。它編譯沒有錯誤,運行良好。但是,如果我們添加上述額外的標誌(示範項目目錄拷貝庫後),編譯失敗與以下錯誤消息:

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 /文件夾/ hF/hF42FIdhEUmY1y-pGRsu1k +++ TI/-Tmp-/tmp159b7497.tmp/main'with'main')

有人可以解釋這是如何造成的鏈接器選項?採取第一個錯誤行:它不再找到頭文件!?我們缺乏足夠的知識來理解這一點,會很感激一些解釋...

標籤:MonoTouch的xnatouch iphone AdMob的C#

回答

0

這是一個不是問題的問題。

這是由樣本的設置引起的。他們仍然提到sdk 4.0,這在我的系統中不存在。

對不起。