12.14.2007

build : "Bad database entry"

Build時出現這個error
BUILD: [00:0000000004:ERRORI] Bad database entry: 複製 -bsp_cfg.h 44 0 1C83BA26E388E00.
把 platform 下的build.dat刪掉後就OK了。

這個error出現的原因是 platform builder 很好心的幫你紀錄每一個foler的檔案內容(不管他有沒有列在 sources 中)。
同時 nmake 有沒有處理檔名中的"空白",所以一旦folder中有檔案(不管有沒有用到)的檔名包含空白,他就會掛掉.....

像上面的error message,就是我有一個file 叫"複製 -bsp_cfg.h"。
而windows中複製一個file到自己的folder,就會自訂在前面加上"複製"和一個space....


所以解決的方法就是找到error 顯示的那個file,刪掉後,開啟release directory, command console。
將 build.* 刪除後,手動下 build -c 重新build一次。

沒有留言: