2013-12-18 53 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

不确定,你的意思是哪个教程? –