再把項目上傳到SVN倉庫上,然後再拉到本地編譯時出現如下錯誤
1
2
<code>ld: library not found </code><code>for</code> <code>-lxxxxxxxxxxxx </code>
<code>clang: error: linker command failed with </code><code>exit</code> <code>code 1 (use -v to see invocation)</code>
原因:
SVN在上傳資源伺服器時預設配置會把一些第三方的.a庫檔案等給忽略了,然後就造成這樣的錯誤。
解決辦法:
配置global-ignores檔案
因為我用的是Cornerstone圖像工具,Preferences -->Subversion -->General ,去掉預設的勾選狀态,删掉 *.a标簽,然後Save即可,如下圖。
本文轉自新風作浪 51CTO部落格,原文連結:http://blog.51cto.com/duxinfeng/1418988,如需轉載請自行聯系原作者