無論是編譯sdk的sample,還是NokiaCV附帶的例子,常常遇到莫名其妙的錯誤。更莫名其妙的是,有時候沒改過什麼,錯誤就沒了。摸索了兩天,覺得編譯一個project的流程大致如下,假設project已經導入或者創建,carbide.c++ v2.0.2
1,Build configuration
選中項目,alt+enter,或者右鍵項目->Properties
1.1 Project Settings
1.1.1 Clean Level設置爲2
右鍵項目->Properties->Carbide.c++->Project Settings,選中Enable project specific settings,在SBSv1裏修改Clean level爲Level 2
1.1.2 mmp
依然是在SBSv1標籤上,Default action to take when mmp file are modified:我選了Compile and Link
1.2 build configuration
選擇一個Configuration(Emulator debug, Phone Debug (GCCE) or Phone Release (GCCE)),爲此配置Add一個SIS Builder,即指定pkg文件
確認後,clean,build,有錯誤改之。
2,Debug Configuration
右鍵項目->Debug As->Debug Configuration,爲了聯機調試,這裏選擇Symbian OS Application TRK,點New launch Configuration,基本上不做什麼修改(因爲已經有可用的連接了),點debug,程序應當在手機上運行起來,可以debug了。
忽然想起來,前天在debug的時候收到短信,因爲不想重啓debug,便試圖去看短信——死機了,結果只好重啓。看來,偷懶還是不行的。