2012-05-15 76 views
0

我使用Ubuntu 12.04,试过32位和64位版本XTK构建错误Ubuntu

这就是我在试图构建xtk时得到的结果。请帮助如何解决这个问题

 
[email protected]:~/X4/utils$ ./build.py -b -t -e 
*-----------------------* 
Compiling Code 
/home/george/X4/lib/closure-library/closure/bin/build/closurebuilder.py: Scanning paths... 
/home/george/X4/lib/closure-library/closure/bin/build/closurebuilder.py: 936 sources scanned. 
/home/george/X4/lib/closure-library/closure/bin/build/closurebuilder.py: Building dependency tree.. 
Traceback (most recent call last): 
File "/home/george/X4/lib/closure-library/closure/bin/build/closurebuilder.py", line 256, in 
main() 
File "/home/george/X4/lib/closure-library/closure/bin/build/closurebuilder.py", line 241, in main 
options.compiler_flags) 
File "/home/george/X4/lib/closure-library/closure/bin/build/jscompiler.py", line 50, in Compile 
if not (distutils.version.LooseVersion(_GetJavaVersion()) >= 
File "/home/george/X4/lib/closure-library/closure/bin/build/jscompiler.py", line 31, in _GetJavaVersion 
proc = subprocess.Popen(['java', '-version'], stderr=subprocess.PIPE) 
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ 
errread, errwrite) 
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child 
raise child_exception 
OSError: [Errno 2] No such file or directory 
>> OUTPUT: xtk.js 
Code compiled 
*-----------------------* 
*-----------------------* 
Testing code 

======== GOOGLE CHROME RESULTS ======== 
Traceback (most recent call last): 
    File "./build.py", line 177, in 
    scripts.test.calculate(paths.xtkDir + '/testing/xtk_tests_build.html', paths.xtkLibDir) 
    File "/home/george/X4/utils/scripts/test.py", line 60, in calculate 
    display = Display(visible=0, size=(1024, 768)) 
    File "/home/george/X4/lib/PyVirtualDisplay/build/lib.linux-x86_64-2.7/pyvirtualdisplay/display.py", line 33, in __init__ 
    self._obj = self.display_class( 
    File "/home/george/X4/lib/PyVirtualDisplay/build/lib.linux-x86_64-2.7/pyvirtualdisplay/display.py", line 51, in display_class 
    cls.check_installed() 
    File "/home/george/X4/lib/PyVirtualDisplay/build/lib.linux-x86_64-2.7/pyvirtualdisplay/xvfb.py", line 33, in check_installed 
    EasyProcess([PROGRAM, '-help'], url=URL, ubuntu_package=PACKAGE).check_installed() 
    File "/home/george/X4/lib/EasyProcess/build/lib.linux-x86_64-2.7/easyprocess/__init__.py", line 201, in check_installed 
    raise EasyProcessCheckInstalledError(self) 
easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] 
OSError=[Errno 2] No such file or directory 
Program install error! 
You can install it in terminal: 
sudo apt-get install xvfb 
+0

你看了错误信息?它说什么?你有没有试图去做它建议的事情? – tripleee

+0

我已阅读错误消息,但不知道如何处理该问题。我没有编辑从xtk获得的任何文件。但只是试图建立。不知道如何处理这个问题。 –

回答

1

我也在我的Ubuntu的测试,并有SAMED错误并解决它(顺便说一句编译成功,但我没有尝试后的lib)在结束

看错误:

easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] 
OSError=[Errno 2] No such file or directory 
Program install error! 
You can install it in terminal: 
sudo apt-get install xvfb 

他们说,“xvfb的”缺失,所以我安装了“命令和apt-get安装xvfb的”,然后将其编译。它适合你吗?

编译后不过测试超时错误:

*-----------------------* 
Testing code 

======== GOOGLE CHROME RESULTS ======== 
RUNNING OFFSCREEN TESTING.. 
Traceback (most recent call last): 
File "./build.py", line 177, in <module> 
scripts.test.calculate(paths.xtkDir + '/testing/xtk_tests_build.html', paths.xtkLibDir) 
File "/home/fabien/X_3DNeo/utils/scripts/test.py", line 62, in calculate 
chrome_results = runTests(xtkTestFile, xtkLibDir, browserString) 
File "/home/fabien/X_3DNeo/utils/scripts/test.py", line 151, in runTests 
result = browser.execute_script('return window.G_testRunner.getReport(true);') 
File "/home/fabien/X_3DNeo/lib/selenium/selenium/webdriver/remote/webdriver.py", line 385, in execute_script 
{'script': script, 'args':converted_args})['value'] 
File "/home/fabien/X_3DNeo/lib/selenium/selenium/webdriver/remote/webdriver.py", line 153, in execute 
self.error_handler.check_response(response) 
File "/home/fabien/X_3DNeo/lib/selenium/selenium/webdriver/remote/errorhandler.py", line 147, in check_response 
raise exception_class(message, screen, stacktrace) 
selenium.common.exceptions.WebDriverException: Message: u"Script execution failed. Script: return window.G_testRunner.getReport(true);;\n Cannot call method 'getReport' of undefined" 
+1

非常感谢@ Ricola3D的提示。我安装了“xvfb”和“Java”,它的构建就像一阵微风。 –