2010-10-24 31 views
0

如果我們設法解決這個問題,我將留下非常深刻的印象。OpenGL ES教程 - 「系統庫中不存在於iPhone上的符號」

我是O'Reilly的書「iphone 3D programming」中第一章教程的初學者程序員。嘗試運行的初步實踐方案我收到以下錯誤後:

Detected an attempt to call a symbol in system libraries that is not present on the iPhone: 
open$UNIX2003 called from function _ZN4llvm12MemoryBuffer7getFileEPKcPSsx in image libLLVMContainer.dylib. 

我已經收窄到這部分代碼:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {  


CGRect screenBounds = [[UIScreen mainScreen] bounds]; 

m_window = [[UIWindow alloc] initWithFrame: screenBounds]; 

m_view = [[GLView alloc] initWithFrame: screenBounds]; 

[m_window addSubview: m_view]; 
[m_window makeKeyAndVisible]; 

return YES; 
} 

在那裏,當我註釋掉以下行它的工作原理精,即會啓動,但沒有得出預期的屏幕:

m_view = [[GLView alloc] initWithFrame: screenBounds]; 

的我怎麼能調試這妥善任何想法?

我感謝提供的所有幫助:)


編輯1

我發現this conclusion它說,它與模擬器中的錯誤。然後我嘗試在我的設備上運行我的代碼(iphone 4.1),雖然沒有錯誤信息,但我仍然沒有看到任何畫面顯示:)

有什麼建議嗎?

回答

1

您應該能夠安全地忽略這些,因爲它們只是iOS 4.1與模擬器交互方式中的一個錯誤。根據我的經驗,模擬器中的這些控制檯錯誤不會影響實際的OpenGL ES渲染。

您的渲染問題很可能在其他地方。