關於Carbide編譯出現perl指令碼錯誤的解決方案

來源:互聯網
上載者:User

也是在另外一個部落格中看到的,不過現在在網上竟然搜不到了,還好我記錄了下來:

 

如果用Carbide編譯任意工程,都出現類似如下的錯誤:
===Build Command = /c abld build WINSCW UDEB -v===
C:/WINDOWS/system32/cmd.exe /c abld build WINSCW UDEB -v
  make -r  -f "/Symbian/9.1/S60_3rd_MR/EPOC32/BUILD/Symbian/Carbide/workspace/TestListBox/group/EXPORT.make" EXPORT
Nothing to do
  make -r  -f "/Symbian/9.1/S60_3rd_MR/EPOC32/BUILD/Symbian/Carbide/workspace/TestListBox/group/WINSCW.make" MAKEFILE
Bareword found where operator expected at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/params.pm line 461, near "New CParamItem"
    (Do you need to predeclare New?)
Bareword found where operator expected at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/params.pm line 466, near "New CParamItem"
    (Do you need to predeclare New?)
syntax error at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/params.pm line 461, near "New CParamItem"
syntax error at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/params.pm line 466, near "New CParamItem"
Compilation failed in require at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/args.pm line 19.
BEGIN failed--compilation aborted at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/perllib/args.pm line 19.
Compilation failed in require at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/cshlpcmp.pl line 58.
BEGIN failed--compilation aborted at C:/Symbian/9.1/S60_3rd_MR/epoc32/tools/cshlpcmp.pl line 58.
make[1]: *** [MAKMAKE] Error 255
make: *** [MAKEFILEBUILD_HELP] Error 2

解決方案有兩種:

1 安裝Activeperl 5.6.1,高版本的Perl編譯可能出現上面問題。

2 編輯檔案
/devices/S60_3rd_FP2_SDK/epoc32/tools/perllib/params.pm
和檔案
/devices/S60_3rd_FP2_SDK/epoc32/tools/perllib/args.pm
在它們開頭的use語句後分別加入:
#加入到params.pm中
sub CParamItem::New;
sub CParamsEntry::New;

#加入到args.pm中
sub CArgsSpec::New;

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.