2013-10-19 37 views
3

我試圖使用調試器使用Android設備,並用這樣的警告消息得到窗口:這似乎並沒有成爲一個「調試」打造

 
    This does not seem to be a "Debug" build. 
    Setting breakpoints by file name and line number may fail. 

    Section .debug_info: Not found. 
    Section .debug_abbrev: Not found. 
    Section .debug_line: Not found. 
    Section .debug_str: Not found. 
    Section .debug_loc: Not found. 
    Section .debug_range: Not found. 
    Section .gdb_index: Not found. 
    Section .note.gnu.build-id: Not found. 
    Section .gnu.hash: Not found. 
    Section .gnu_debuglink: Not found. 

我使用Qt Creator的2.8.1基於Qt 5.1.1(GCC 4.6.1,64位)。 Qt庫,應用程序和所有依賴是使用GCC 4.8構建的。

在這種情況下,我可以對主應用程序使用調試器,但所有庫都無法進行調試,這是最奇怪的事情。

回答

2

問題是通過將庫類型從動態更改爲靜態來解決的。

P.S.也許有人知道爲什麼動態庫不能在android下進行調試?

+5

您是如何將庫類型更改爲靜態的? – Ela782

+0

CONFIG + = staticlib – ZeAL0T

相關問題