2013-12-18 56 views
0

我想創建一個用於linux的firebreath插件,我已經在windows中構建,它在windows中工作。 我可以爲ubuntu使用相同的代碼嗎?如果是的話,怎麼樣?當我嘗試但失敗。 後來我試圖從開始創建相同的插件,而不是使用我的插件的Windows版本代碼,但我得到以下錯誤。任何解決方案在Ubuntu的firebreath插件中的問題

[email protected]:/home/roshan/fbprojects/PLSplugin# sh firebreath/prepmake.sh . build 
firebreath/prepmake.sh: 7: firebreath/prepmake.sh: source: not found 
firebreath/prepmake.sh: 9: firebreath/prepmake.sh: pushd: not found 
CMake Error at CMakeLists.txt:11 (Project): 
    project PROJECT called with incorrect number of arguments 
CMake Error at CMakeLists.txt:39 (include_platform): 
    Unknown CMake command "include_platform". 
-- Configuring incomplete, errors occurred! 
firebreath/prepmake.sh: 11: firebreath/prepmake.sh: popd: not found 
+0

順便說一句,真的是沒有需要以root身份開發事物。 –

+0

我只是試圖用root權限運行它,認爲它會運行。通常我不這樣做。 – Roshan

回答

0

不要使用sh(不具有sourcepushd & popd),使用bash - 或者更確切地說,只是直接運行該腳本:

firebreath/prepmake.sh . build 
+0

謝謝!我已經從谷歌集團得到同樣的答案,但有價值的答案。我是linux新手,所以不知道這些基礎知識。 – Roshan

+0

我不知道爲什麼firebreath教程說「sh premake.sh」。你能告訴我嗎? @Georg – Roshan

+0

不確定,你的意思是哪個教程? –