cygwin編譯win7cocos2d-x android項目報”cc1plus.exe: fatal error: jni/hellocpp/main.cpp: Permission d

來源:互聯網
上載者:User

cygwin編譯win7cocos2d-x android項目報"cc1plus.exe: fatal error: jni/hellocpp/main.cpp: Permission denied“錯誤,

           

                                                                                                              這是許可權問題,win7下用管理員身份運行cygwin,輸入工程目錄,如cd /cygdrive/D/Alex/tools/Android/cocos2d-x-2.1.4/cocos2d-x-2.1.4/MyfistCoco/proj.android,                                                                                                 

然後以管理元身份切換到windows命令台,指定工程目錄,

接著修改檔案和目錄的許可權,輸入:takeown /f * /a /r  ,

然後授權授權everyone組
,輸入:icacls * /t /grant:r everyone:f,

再切換到cygwin Terminal下,再次運行build_native.sh包,輸入:./build_native.sh,

看到上面的輸出說明就說明在正常編譯了,這個需要一段時間,一般幾分鐘到十幾分鐘不等,當出現這個輸出時,說明編譯成功,已經在項目裡面產生了.so檔案,

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.